com.google.protobuf.type

Members list

Type members

Classlikes

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

Enum type definition.

Enum type definition.

Value parameters

enumvalue

Enum value definitions.

name

Enum type name.

options

Protocol buffer options.

sourceContext

The source context.

syntax

The source syntax.

Attributes

Companion
object
Supertypes
trait Updatable[Enum]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait JavaProtoSupport[Enum, Enum]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Enum.type
final case class EnumValue(name: String, number: Int, options: Seq[OptionProto], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[EnumValue]

Enum value definition.

Enum value definition.

Value parameters

name

Enum value name.

number

Enum value number.

options

Protocol buffer options.

Attributes

Companion
object
Supertypes
trait Updatable[EnumValue]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait JavaProtoSupport[EnumValue, EnumValue]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
EnumValue.type
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, Updatable[Field]

A single field of a message type.

A single field of a message type.

Value parameters

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".

Attributes

Companion
object
Supertypes
trait Updatable[Field]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait JavaProtoSupport[Field, Field]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Field.type
final case class OptionProto(name: String, value: Option[Any], unknownFields: UnknownFieldSet) extends GeneratedMessage, 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 parameters

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.

Attributes

Companion
object
Supertypes
trait Updatable[OptionProto]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait JavaProtoSupport[OptionProto, Option]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
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.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Recognized
object SYNTAX_PROTO2.type
object SYNTAX_PROTO3.type
class Unrecognized

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Syntax.type
final case class Type(name: String, fields: Seq[Field], oneofs: Seq[String], options: Seq[OptionProto], sourceContext: Option[SourceContext], syntax: Syntax, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Type]

A protocol buffer message type.

A protocol buffer message type.

Value parameters

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.

Attributes

Companion
object
Supertypes
trait Updatable[Type]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait JavaProtoSupport[Type, Type]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Type.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
TypeProto.type