Package | Description |
---|---|
com.google.protobuf | |
com.google.protobuf.compiler |
Modifier and Type | Class and Description |
---|---|
class |
AbstractParser<MessageType extends MessageLite>
A partial implementation of the
Parser interface which implements
as many methods of that interface as possible in terms of other methods. |
class |
Extension<ContainingType extends MessageLite,Type>
Interface that generated extensions implement.
|
class |
ExtensionLite<ContainingType extends MessageLite,Type>
Lite interface that generated extensions implement.
|
static class |
GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
Lite equivalent to
GeneratedMessage.GeneratedExtension . |
Modifier and Type | Interface and Description |
---|---|
interface |
Message
Abstract interface implemented by Protocol Message objects.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMessage
A partial implementation of the
Message interface which implements
as many methods of that interface as possible in terms of other methods. |
class |
AbstractMessageLite<MessageType extends AbstractMessageLite<MessageType,BuilderType>,BuilderType extends AbstractMessageLite.Builder<MessageType,BuilderType>>
A partial implementation of the
MessageLite interface which
implements as many methods of that interface as possible in terms of other
methods. |
class |
Any
`Any` contains an arbitrary serialized protocol buffer message along with a
URL that describes the type of the serialized message.
|
class |
Api
Api is a light-weight descriptor for a protocol buffer service.
|
class |
BoolValue
Wrapper message for `bool`.
|
class |
BytesValue
Wrapper message for `bytes`.
|
static class |
DescriptorProtos.DescriptorProto
Describes a message type.
|
static class |
DescriptorProtos.DescriptorProto.ExtensionRange
Protobuf type
google.protobuf.DescriptorProto.ExtensionRange |
static class |
DescriptorProtos.DescriptorProto.ReservedRange
Range of reserved tag numbers.
|
static class |
DescriptorProtos.EnumDescriptorProto
Describes an enum type.
|
static class |
DescriptorProtos.EnumOptions
Protobuf type
google.protobuf.EnumOptions |
static class |
DescriptorProtos.EnumValueDescriptorProto
Describes a value within an enum.
|
static class |
DescriptorProtos.EnumValueOptions
Protobuf type
google.protobuf.EnumValueOptions |
static class |
DescriptorProtos.FieldDescriptorProto
Describes a field within a message.
|
static class |
DescriptorProtos.FieldOptions
Protobuf type
google.protobuf.FieldOptions |
static class |
DescriptorProtos.FileDescriptorProto
Describes a complete .proto file.
|
static class |
DescriptorProtos.FileDescriptorSet
The protocol compiler can output a FileDescriptorSet containing the .proto
files it parses.
|
static class |
DescriptorProtos.FileOptions
Protobuf type
google.protobuf.FileOptions |
static class |
DescriptorProtos.GeneratedCodeInfo
Describes the relationship between generated code and its original source
file.
|
static class |
DescriptorProtos.GeneratedCodeInfo.Annotation
Protobuf type
google.protobuf.GeneratedCodeInfo.Annotation |
static class |
DescriptorProtos.MessageOptions
Protobuf type
google.protobuf.MessageOptions |
static class |
DescriptorProtos.MethodDescriptorProto
Describes a method of a service.
|
static class |
DescriptorProtos.MethodOptions
Protobuf type
google.protobuf.MethodOptions |
static class |
DescriptorProtos.OneofDescriptorProto
Describes a oneof.
|
static class |
DescriptorProtos.OneofOptions
Protobuf type
google.protobuf.OneofOptions |
static class |
DescriptorProtos.ServiceDescriptorProto
Describes a service.
|
static class |
DescriptorProtos.ServiceOptions
Protobuf type
google.protobuf.ServiceOptions |
static class |
DescriptorProtos.SourceCodeInfo
Encapsulates information about the original source file from which a
FileDescriptorProto was generated.
|
static class |
DescriptorProtos.SourceCodeInfo.Location
Protobuf type
google.protobuf.SourceCodeInfo.Location |
static class |
DescriptorProtos.UninterpretedOption
A message representing a option the parser does not recognize.
|
static class |
DescriptorProtos.UninterpretedOption.NamePart
The name of the uninterpreted option.
|
class |
DoubleValue
Wrapper message for `double`.
|
class |
Duration
A Duration represents a signed, fixed-length span of time represented
as a count of seconds and fractions of seconds at nanosecond
resolution.
|
class |
DynamicMessage
An implementation of
Message that can represent arbitrary types,
given a Descriptors.Descriptor . |
class |
Empty
A generic empty message that you can re-use to avoid defining duplicated
empty messages in your APIs.
|
class |
Enum
Enum type definition.
|
class |
EnumValue
Enum value definition.
|
class |
Field
A single field of a message type.
|
class |
FieldMask
`FieldMask` represents a set of symbolic field paths, for example:
paths: "f.a"
paths: "f.b.d"
Here `f` represents a field in some root message, `a` and `b`
fields in the message found in `f`, and `d` a field found in the
message in `f.b`.
|
class |
FloatValue
Wrapper message for `float`.
|
class |
GeneratedMessage
All generated protocol message classes extend this class.
|
static class |
GeneratedMessage.ExtendableMessage<MessageType extends GeneratedMessage.ExtendableMessage>
Generated message classes for message types that contain extension ranges
subclass this.
|
class |
GeneratedMessageLite<MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>>
Lite version of
GeneratedMessage . |
static class |
GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>
Lite equivalent of
GeneratedMessage.ExtendableMessage . |
class |
GeneratedMessageV3
All generated protocol message classes extend this class.
|
static class |
GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>
Generated message classes for message types that contain extension ranges
subclass this.
|
class |
Int32Value
Wrapper message for `int32`.
|
class |
Int64Value
Wrapper message for `int64`.
|
class |
ListValue
`ListValue` is a wrapper around a repeated field of values.
|
class |
MapEntry<K,V>
Implements MapEntry messages.
|
class |
Method
Method represents a method of an api.
|
class |
Mixin
Declares an API to be included in this API.
|
class |
Option
A protocol buffer option, which can be attached to a message, field,
enumeration, etc.
|
class |
SourceContext
`SourceContext` represents information about the source of a
protobuf element, like the file in which it is defined.
|
class |
StringValue
Wrapper message for `string`.
|
class |
Struct
`Struct` represents a structured data value, consisting of fields
which map to dynamically typed values.
|
class |
Timestamp
A Timestamp represents a point in time independent of any time zone
or calendar, represented as seconds and fractions of seconds at
nanosecond resolution in UTC Epoch time.
|
class |
Type
A protocol buffer message type.
|
class |
UInt32Value
Wrapper message for `uint32`.
|
class |
UInt64Value
Wrapper message for `uint64`.
|
class |
UnknownFieldSet
UnknownFieldSet is used to keep track of fields which were seen when
parsing a protocol message but whose field numbers or types are unrecognized. |
class |
Value
`Value` represents a dynamically typed value which can be either
null, a number, a string, a boolean, a recursive struct value, or a
list of values.
|
Modifier and Type | Field and Description |
---|---|
protected MessageLite |
LazyFieldLite.value
The parsed value.
|
Modifier and Type | Method and Description |
---|---|
<ContainingType extends MessageLite> |
ExtensionRegistryLite.findLiteExtensionByNumber(ContainingType containingTypeDefaultInstance,
int fieldNumber)
Find an extension by containing type and field number.
|
static <T extends MessageLite> |
Internal.getDefaultInstance(Class<T> clazz) |
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
boolean isPacked,
Class singularType)
For use by generated code only.
|
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance,
Type defaultValue,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
Class singularType)
For use by generated code only.
|
protected <MessageType extends MessageLite> |
GeneratedMessageLite.ExtendableMessage.parseUnknownField(MessageType defaultInstance,
CodedInputStream input,
ExtensionRegistryLite extensionRegistry,
int tag)
Parse an unknown field or an extension.
|
<T extends MessageLite> |
CodedInputStream.readGroup(int fieldNumber,
Parser<T> parser,
ExtensionRegistryLite extensionRegistry)
Read a
group field value from the stream. |
<T extends MessageLite> |
CodedInputStream.readMessage(Parser<T> parser,
ExtensionRegistryLite extensionRegistry)
Read an embedded message field value from the stream.
|
<T extends MessageLite> |
GeneratedMessageLite.Visitor.visitMessage(T mine,
T other)
Message fields use null sentinals.
|
<T extends MessageLite> |
GeneratedMessageLite.MergeFromVisitor.visitMessage(T mine,
T other) |
Modifier and Type | Method and Description |
---|---|
MessageLite |
MessageLite.Builder.build()
Constructs the message based on the state of the Builder.
|
MessageLite |
MessageLite.Builder.buildPartial()
Like
MessageLite.Builder.build() , but does not throw an exception if the message
is missing required fields. |
MessageLite |
MessageLiteOrBuilder.getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
abstract MessageLite |
ExtensionLite.getMessageDefaultInstance()
Returns the default instance of the extension field, if it's a message
extension.
|
MessageLite |
GeneratedMessageLite.GeneratedExtension.getMessageDefaultInstance()
If the extension is an embedded message or group, returns the default
instance of the message.
|
MessageLite |
InvalidProtocolBufferException.getUnfinishedMessage()
Returns the unfinished message attached to the exception, or null if
no message is attached.
|
MessageLite |
LazyField.getValue() |
MessageLite |
LazyFieldLite.getValue(MessageLite defaultInstance)
Returns message instance.
|
MessageLite |
LazyFieldLite.setValue(MessageLite value)
Sets the value of the instance and returns the old value without delay parsing anything.
|
Modifier and Type | Method and Description |
---|---|
Parser<? extends MessageLite> |
MessageLite.getParserForType()
Gets the parser for a message of the same type as this message.
|
Modifier and Type | Method and Description |
---|---|
static int |
CodedOutputStream.computeGroupSize(int fieldNumber,
MessageLite value)
Deprecated.
groups are deprecated.
|
static int |
CodedOutputStream.computeGroupSizeNoTag(MessageLite value)
Deprecated.
|
static int |
CodedOutputStream.computeMessageSetExtensionSize(int fieldNumber,
MessageLite value)
Compute the number of bytes that would be needed to encode a
MessageSet extension to the stream.
|
static int |
CodedOutputStream.computeMessageSize(int fieldNumber,
MessageLite value)
Compute the number of bytes that would be needed to encode an
embedded message field, including tag.
|
static int |
CodedOutputStream.computeMessageSizeNoTag(MessageLite value)
Compute the number of bytes that would be needed to encode an embedded
message field.
|
protected void |
LazyFieldLite.ensureInitialized(MessageLite defaultInstance)
Might lazily parse the bytes that were previously passed in.
|
static LazyFieldLite |
LazyFieldLite.fromValue(MessageLite value)
Constructs a LazyFieldLite instance with a value.
|
MessageLite |
LazyFieldLite.getValue(MessageLite defaultInstance)
Returns message instance.
|
MessageLite.Builder |
Descriptors.FieldDescriptor.internalMergeFrom(MessageLite.Builder to,
MessageLite from)
For internal use only.
|
MessageLite.Builder |
MessageLite.Builder.mergeFrom(MessageLite other)
Merge
other into the message being built. |
BuilderType |
AbstractMessageLite.Builder.mergeFrom(MessageLite other) |
UnknownFieldSet.Builder |
UnknownFieldSet.Builder.mergeFrom(MessageLite m) |
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
boolean isPacked,
Class singularType)
For use by generated code only.
|
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance,
Type defaultValue,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
Class singularType)
For use by generated code only.
|
protected static UninitializedMessageException |
AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite message)
Construct an UninitializedMessageException reporting missing fields in
the given message.
|
static GeneratedMessageLite.SerializedForm |
GeneratedMessageLite.SerializedForm.of(MessageLite message) |
InvalidProtocolBufferException |
InvalidProtocolBufferException.setUnfinishedMessage(MessageLite unfinishedMessage)
Attaches an unfinished message to the exception to support best-effort
parsing in
Parser interface. |
MessageLite |
LazyFieldLite.setValue(MessageLite value)
Sets the value of the instance and returns the old value without delay parsing anything.
|
void |
CodedOutputStream.writeGroup(int fieldNumber,
MessageLite value)
Deprecated.
groups are deprecated.
|
void |
CodedOutputStream.writeGroupNoTag(MessageLite value)
Deprecated.
groups are deprecated.
|
abstract void |
CodedOutputStream.writeMessage(int fieldNumber,
MessageLite value)
Write an embedded message field, including tag, to the stream.
|
abstract void |
CodedOutputStream.writeMessageNoTag(MessageLite value)
Write an embedded message field to the stream.
|
abstract void |
CodedOutputStream.writeMessageSetExtension(int fieldNumber,
MessageLite value)
Write a MessageSet extension field to the stream.
|
Constructor and Description |
---|
LazyField(MessageLite defaultInstance,
ExtensionRegistryLite extensionRegistry,
ByteString bytes) |
UninitializedMessageException(MessageLite message) |
Modifier and Type | Class and Description |
---|---|
static class |
PluginProtos.CodeGeneratorRequest
An encoded CodeGeneratorRequest is written to the plugin's stdin.
|
static class |
PluginProtos.CodeGeneratorResponse
The plugin writes an encoded CodeGeneratorResponse to stdout.
|
static class |
PluginProtos.CodeGeneratorResponse.File
Represents a single generated file.
|
Copyright © 2008–2016 Google. All rights reserved.