Stubs

Module

stubs/wellknowntypes

The Protobuf well-known types (google/protobuf/*.proto), from Google's protobuf releases.

OfficialPublic

Package

google.protobuf

Messages

  • Any`Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.
  • ApiApi is a light-weight descriptor for an API Interface.
  • BoolValueWrapper message for `bool`.
  • BytesValueWrapper message for `bytes`.
  • DescriptorProtoDescribes a message type.
  • DoubleValueWrapper message for `double`.
  • DurationA Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". It is related to Timestamp in that the difference between two Timestamp values is a Duration and it can be added or subtracted from a Timestamp. Range is approximately +-10,000 years.
  • EmptyA generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
  • EnumEnum type definition.
  • EnumDescriptorProtoDescribes an enum type.
  • EnumOptions
  • EnumValueEnum value definition.
  • EnumValueDescriptorProtoDescribes a value within an enum.
  • EnumValueOptions
  • ExtensionRangeOptions
  • FeatureSetTODO Enums in C++ gencode (and potentially other languages) are not well scoped. This means that each of the feature enums below can clash with each other. The short names we've chosen maximize call-site readability, but leave us very open to this scenario. A future feature will be designed and implemented to handle this, hopefully before we ever hit a conflict here.
  • FeatureSetDefaultsA compiled specification for the defaults of a set of features. These messages are generated from FeatureSet extensions and can be used to seed feature resolution. The resolution with this object becomes a simple search for the closest matching edition, followed by proto merges.
  • FieldA single field of a message type.
  • FieldDescriptorProtoDescribes a field within a message.
  • FieldMask`FieldMask` represents a set of symbolic field paths, for example:
  • FieldOptions
  • FileDescriptorProtoDescribes a complete .proto file.
  • FileDescriptorSetThe protocol compiler can output a FileDescriptorSet containing the .proto files it parses.
  • FileOptions
  • FloatValueWrapper message for `float`.
  • GeneratedCodeInfoDescribes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files.
  • Int32ValueWrapper message for `int32`.
  • Int64ValueWrapper message for `int64`.
  • ListValueRepresents a JSON array.
  • MessageOptions
  • MethodMethod represents a method of an API interface.
  • MethodDescriptorProtoDescribes a method of a service.
  • MethodOptions
  • MixinDeclares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows:
  • OneofDescriptorProtoDescribes a oneof.
  • OneofOptions
  • OptionA protocol buffer option, which can be attached to a message, field, enumeration, etc.
  • ServiceDescriptorProtoDescribes a service.
  • ServiceOptions
  • SourceCodeInfoEncapsulates information about the original source file from which a FileDescriptorProto was generated.
  • SourceContext`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.
  • StringValueWrapper message for `string`.
  • StructRepresents a JSON object.
  • TimestampA Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.
  • TypeA protocol buffer message type.
  • UInt32ValueWrapper message for `uint32`.
  • UInt64ValueWrapper message for `uint64`.
  • UninterpretedOptionA message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.
  • ValueRepresents a JSON value.

Enums

  • EditionThe full set of known editions.
  • NullValueRepresents a JSON `null`.
  • SymbolVisibilityDescribes the 'visibility' of a symbol with respect to the proto import system. Symbols can only be imported when the visibility rules do not prevent it (ex: local symbols cannot be imported). Visibility modifiers can only set on `message` and `enum` as they are the only types available to be referenced from other files.
  • SyntaxThe syntax in which a protocol buffer element is defined.

Files