com.google.protobuf.type

Type members

Classlikes

@SerialVersionUID(0L)
final case class Enum(name: String, enumvalue: Seq[EnumValue], options: Seq[OptionProto], sourceContext: Option[SourceContext], syntax: Syntax, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Enum]

Enum type definition.

Enum type definition.

Value Params
enumvalue

Enum value definitions.

name

Enum type name.

options

Protocol buffer options.

sourceContext

The source context.

syntax

The source syntax.

Companion
object
Companion
class
@SerialVersionUID(0L)
final case class EnumValue(name: String, number: Int, options: Seq[OptionProto], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[EnumValue]

Enum value definition.

Enum value definition.

Value Params
name

Enum value name.

number

Enum value number.

options

Protocol buffer options.

Companion
object
@SerialVersionUID(0L)
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.

A single field of a message type.

Value Params
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
Companion
class
@SerialVersionUID(0L)
final case class OptionProto(name: String, value: Option[Any], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[OptionProto]

A protocol buffer option, which can be attached to a message, field, enumeration, etc.

A protocol buffer option, which can be attached to a message, field, enumeration, etc.

Value Params
name

The option's name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example, "map_entry". For custom options, it should be the fully-qualified name. For example, "google.api.http".

value

The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type.

Companion
object
sealed abstract class Syntax(val value: Int) extends GeneratedEnum

The syntax in which a protocol buffer element is defined.

The syntax in which a protocol buffer element is defined.

Companion
object
Companion
class
@SerialVersionUID(0L)
final case class Type(name: String, fields: Seq[Field], oneofs: Seq[String], options: Seq[OptionProto], sourceContext: Option[SourceContext], syntax: Syntax, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Type]

A protocol buffer message type.

A protocol buffer message type.

Value Params
fields

The list of fields.

name

The fully qualified message name.

oneofs

The list of types appearing in oneof definitions in this type.

options

The protocol buffer options.

sourceContext

The source context.

syntax

The source syntax.

Companion
object
Companion
class