protobuf library
The Google Cloud client for the Core Protobuf Types.
Core Protobuf types used by most services.
Classes
- Any
-
Anycontains an arbitrary serialized message along with a URL that describes the type of the serialized message. - Api
- Api is a light-weight descriptor for an API Interface.
- BoolValue
-
Wrapper message for
bool. - BytesValue
-
Wrapper message for
bytes. - DoubleValue
-
Wrapper message for
double. - Duration
- A 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.
- Empty
- A 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:
- Enum
- Enum type definition.
- EnumValue
- Enum value definition.
- Field
- A single field of a message type.
- Field_Cardinality
- Whether a field is optional, required, or repeated.
- Field_Kind
- Basic field types.
- FieldMask
-
FieldMaskrepresents a set of symbolic field paths, for example: - FloatValue
-
Wrapper message for
float. - Int32Value
-
Wrapper message for
int32. - Int64Value
-
Wrapper message for
int64. - JsonEncodable
- An abstract class that can return a JSON representation of itself.
- ListValue
-
ListValueis a wrapper around a repeated field of values. - Method
- Method represents a method of an API interface.
- Mixin
- Declares 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:
- NullValue
-
NullValueis a singleton enumeration to represent the null value for theValuetype union. - Option
- A protocol buffer option, which can be attached to a message, field, enumeration, etc.
- ProtoEnum
- The abstract common superclass of all enum values.
- ProtoMessage
- The abstract common superclass of all messages.
- SourceContext
-
SourceContextrepresents information about the source of a protobuf element, like the file in which it is defined. - StringValue
-
Wrapper message for
string. - Struct
-
Structrepresents a structured data value, consisting of fields which map to dynamically typed values. In some languages,Structmight be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. - Syntax
- The syntax in which a protocol buffer element is defined.
- Timestamp
- A 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.
- Type
- A protocol buffer message type.
- Uint32Value
-
Wrapper message for
uint32. - Uint64Value
-
Wrapper message for
uint64. - Value
-
Valuerepresents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.
Extensions
- DurationExtension on Duration
- Called from the Duration constructor to validate the construction parameters.
- TimestampExtension on Timestamp
- Called from the Timestamp constructor to validate construction parameters.