Field

com.google.protobuf.type.Field
See theField companion object
final case class Field(kind: Kind, cardinality: Cardinality, number: Int, name: String, typeUrl: String, oneofIndex: Int, packed: Boolean, options: Seq[OptionProto], jsonName: String, defaultValue: String, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Field]

A single field of a message type.

Attributes

cardinality

The field cardinality.

defaultValue

The string value of the default value of this field. Proto2 syntax only.

jsonName

The field JSON name.

kind

The field type.

name

The field name.

number

The field number.

oneofIndex

The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

options

The protocol buffer options.

packed

Whether to use alternative packed wire representation.

typeUrl

The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".

Companion:
object
Graph
Supertypes
trait Updatable[Field]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def addAllOptions(`__vs`: Iterable[OptionProto]): Field
def companion: Field.type
def getFieldByNumber(`__fieldNumber`: Int): Any
override def serializedSize: Int

Attributes

Definition Classes
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns:

human-readable representation of this message.

def withDefaultValue(`__v`: String): Field
def withJsonName(`__v`: String): Field
def withKind(`__v`: Kind): Field
def withName(`__v`: String): Field
def withNumber(`__v`: Int): Field
def withOneofIndex(`__v`: Int): Field
def withOptions(`__v`: Seq[OptionProto]): Field
def withPacked(`__v`: Boolean): Field
def withTypeUrl(`__v`: String): Field
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
def update(ms: Lens[Field, Field] => () => Field*): A

Attributes

Inherited from:
Updatable
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage