Uses of Interface
com.google.protobuf.Message
Packages that use Message
-
Uses of Message in com.google.protobuf
Classes in com.google.protobuf with type parameters of type MessageModifier and TypeClassDescriptionstatic class
GeneratedMessage.GeneratedExtension<ContainingType extends Message,
Type> Type used to represent generated extensions.Classes in com.google.protobuf that implement MessageModifier and TypeClassDescriptionclass
A partial implementation of theMessage
interface which implements as many methods of that interface as possible in terms of other methods.final class
`Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.final class
Api is a light-weight descriptor for an API Interface.final class
Wrapper message for `bool`.final class
Wrapper message for `bytes`.static final class
Describes a message type.static final class
Protobuf typegoogle.protobuf.DescriptorProto.ExtensionRange
static final class
Range of reserved tag numbers.static final class
Describes an enum type.static final class
Range of reserved numeric values.static final class
Protobuf typegoogle.protobuf.EnumOptions
static final class
Describes a value within an enum.static final class
Protobuf typegoogle.protobuf.EnumValueOptions
static final class
Protobuf typegoogle.protobuf.ExtensionRangeOptions
static final class
Describes a field within a message.static final class
Protobuf typegoogle.protobuf.FieldOptions
static final class
Describes a complete .proto file.static final class
The protocol compiler can output a FileDescriptorSet containing the .proto files it parses.static final class
Protobuf typegoogle.protobuf.FileOptions
static final class
Describes the relationship between generated code and its original source file.static final class
Protobuf typegoogle.protobuf.GeneratedCodeInfo.Annotation
static final class
Protobuf typegoogle.protobuf.MessageOptions
static final class
Describes a method of a service.static final class
Protobuf typegoogle.protobuf.MethodOptions
static final class
Describes a oneof.static final class
Protobuf typegoogle.protobuf.OneofOptions
static final class
Describes a service.static final class
Protobuf typegoogle.protobuf.ServiceOptions
static final class
Encapsulates information about the original source file from which a FileDescriptorProto was generated.static final class
Protobuf typegoogle.protobuf.SourceCodeInfo.Location
static final class
A message representing a option the parser does not recognize.static final class
The name of the uninterpreted option.final class
Wrapper message for `double`.final class
A Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution.final class
An implementation ofMessage
that can represent arbitrary types, given aDescriptors.Descriptor
.final class
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.final class
Enum type definition.final class
Enum value definition.final class
A single field of a message type.final class
`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`.final class
Wrapper message for `float`.class
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
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.final class
Wrapper message for `int32`.final class
Wrapper message for `int64`.final class
`ListValue` is a wrapper around a repeated field of values.final class
MapEntry<K,
V> Implements MapEntry messages.final class
Method represents a method of an API interface.final class
Declares an API Interface to be included in this interface.final class
A protocol buffer option, which can be attached to a message, field, enumeration, etc.final class
`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.final class
Wrapper message for `string`.final class
`Struct` represents a structured data value, consisting of fields which map to dynamically typed values.final class
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.final class
A protocol buffer message type.final class
Wrapper message for `uint32`.final class
Wrapper message for `uint64`.final class
`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.Fields in com.google.protobuf declared as MessageModifier and TypeFieldDescriptionprivate Message
final Message
ExtensionRegistry.ExtensionInfo.defaultInstance
A default instance of the extension's type, if it has a message type.private final Message
GeneratedMessage.FieldAccessorTable.MapFieldAccessor.mapEntryMessageDefaultInstance
private final Message
GeneratedMessageV3.FieldAccessorTable.MapFieldAccessor.mapEntryMessageDefaultInstance
private final Message
GeneratedMessage.GeneratedExtension.messageDefaultInstance
private final Message
Descriptors.DescriptorValidationException.proto
Fields in com.google.protobuf with type parameters of type MessageMethods in com.google.protobuf with type parameters of type MessageModifier and TypeMethodDescriptionprivate static <Type extends Message>
TypeRpcUtil.copyAsType
(Type typeDefaultInstance, Message source) Creates a new message of type "Type" which is a copy of "source".static <Type extends Message>
RpcCallback<Message> RpcUtil.generalizeCallback
(RpcCallback<Type> originalCallback, Class<Type> originalClass, Type defaultInstance) Take anRpcCallback
accepting a specific message type and convert it to anRpcCallback<Message>
.<T extends Message>
booleanstatic <ContainingType extends Message,
Type>
GeneratedMessage.GeneratedExtension<ContainingType, Type> GeneratedMessage.newFileScopedGeneratedExtension
(Class singularType, Message defaultInstance) For use by generated code only.static <ContainingType extends Message,
Type>
GeneratedMessage.GeneratedExtension<ContainingType, Type> GeneratedMessage.newFileScopedGeneratedExtension
(Class singularType, Message defaultInstance, String descriptorOuterClass, String extensionName) Used in proto1 generated code only.static <ContainingType extends Message,
Type>
GeneratedMessage.GeneratedExtension<ContainingType, Type> GeneratedMessage.newMessageScopedGeneratedExtension
(Message scope, int descriptorIndex, Class singularType, Message defaultInstance) For use by generated code only.static <ContainingType extends Message,
Type>
GeneratedMessage.GeneratedExtension<ContainingType, Type> GeneratedMessage.newMessageScopedGeneratedExtension
(Message scope, String name, Class singularType, Message defaultInstance) Used in proto1 generated code only.Any.pack
(T message) Packs a message using the given type URL prefix.static <T extends Message>
TTextFormat.parse
(CharSequence input, ExtensionRegistry extensionRegistry, Class<T> protoClass) Parse a text-format message frominput
.static <T extends Message>
TTextFormat.parse
(CharSequence input, Class<T> protoClass) Parse a text-format message frominput
.protected static <M extends Message>
MGeneratedMessage.parseDelimitedWithIOException
(Parser<M> parser, InputStream input) protected static <M extends Message>
MGeneratedMessage.parseDelimitedWithIOException
(Parser<M> parser, InputStream input, ExtensionRegistryLite extensions) protected static <M extends Message>
MGeneratedMessageV3.parseDelimitedWithIOException
(Parser<M> parser, InputStream input) protected static <M extends Message>
MGeneratedMessageV3.parseDelimitedWithIOException
(Parser<M> parser, InputStream input, ExtensionRegistryLite extensions) protected static <M extends Message>
MGeneratedMessage.parseWithIOException
(Parser<M> parser, CodedInputStream input) protected static <M extends Message>
MGeneratedMessage.parseWithIOException
(Parser<M> parser, CodedInputStream input, ExtensionRegistryLite extensions) protected static <M extends Message>
MGeneratedMessage.parseWithIOException
(Parser<M> parser, InputStream input) protected static <M extends Message>
MGeneratedMessage.parseWithIOException
(Parser<M> parser, InputStream input, ExtensionRegistryLite extensions) protected static <M extends Message>
MGeneratedMessageV3.parseWithIOException
(Parser<M> parser, CodedInputStream input) protected static <M extends Message>
MGeneratedMessageV3.parseWithIOException
(Parser<M> parser, CodedInputStream input, ExtensionRegistryLite extensions) protected static <M extends Message>
MGeneratedMessageV3.parseWithIOException
(Parser<M> parser, InputStream input) protected static <M extends Message>
MGeneratedMessageV3.parseWithIOException
(Parser<M> parser, InputStream input, ExtensionRegistryLite extensions) static <Type extends Message>
RpcCallback<Type> RpcUtil.specializeCallback
(RpcCallback<Message> originalCallback) Take anRpcCallback<Message>
and convert it to anRpcCallback
accepting a specific message type.<T extends Message>
TMethods in com.google.protobuf that return MessageModifier and TypeMethodDescriptionMessage.Builder.build()
Message.Builder.buildPartial()
BlockingRpcChannel.callBlockingMethod
(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype) Call the given method of the remote service and blocks until it returns.BlockingService.callBlockingMethod
(Descriptors.MethodDescriptor method, RpcController controller, Message request) Equivalent toService.callMethod(com.google.protobuf.Descriptors.MethodDescriptor, com.google.protobuf.RpcController, com.google.protobuf.Message, com.google.protobuf.RpcCallback<com.google.protobuf.Message>)
, except thatcallBlockingMethod()
returns the result of the RPC or throws aServiceException
if there is a failure, rather than passing the information to a callback.private Message
GeneratedMessageV3.FieldAccessorTable.MapFieldAccessor.coerceType
(Message value) MapField.Converter.convertKeyAndValueToMessage
(K key, V value) private Message
MapField.convertKeyAndValueToMessage
(K key, V value) MapField.ImmutableMessageConverter.convertKeyAndValueToMessage
(K key, V value) private static Message
DescriptorMessageInfoFactory.getDefaultInstance
(Class<?> messageType) GeneratedMessage.ExtendableMessageOrBuilder.getDefaultInstanceForType()
GeneratedMessageV3.ExtendableMessageOrBuilder.getDefaultInstanceForType()
MessageOrBuilder.getDefaultInstanceForType()
(package private) Message
MapField.getMapEntryMessageDefaultInstance()
Gets the default instance of the message stored in the list view of this map field.abstract Message
Extension.getMessageDefaultInstance()
Returns the default instance of the extension field, if it's a message extension.GeneratedMessage.GeneratedExtension.getMessageDefaultInstance()
If the extension is an embedded message or group, returns the default instance of the message.MapField.Converter.getMessageDefaultInstance()
MapField.ImmutableMessageConverter.getMessageDefaultInstance()
Descriptors.DescriptorValidationException.getProblemProto()
Gets the protocol message representation of the invalid descriptor.BlockingService.getRequestPrototype
(Descriptors.MethodDescriptor method) Service.getRequestPrototype
(Descriptors.MethodDescriptor method) callMethod()
requires that the request passed in is of a particular subclass ofMessage
.BlockingService.getResponsePrototype
(Descriptors.MethodDescriptor method) Service.getResponsePrototype
(Descriptors.MethodDescriptor method) LikegetRequestPrototype()
, but gets a prototype of the response message.Descriptors.DescriptorPool.PackageDescriptor.toProto()
abstract Message
Descriptors.GenericDescriptor.toProto()
Methods in com.google.protobuf that return types with arguments of type MessageModifier and TypeMethodDescriptionMapField.convertMapToList
(MapField.MutatabilityAwareMap<K, V> mapData) static <Type extends Message>
RpcCallback<Message> RpcUtil.generalizeCallback
(RpcCallback<Type> originalCallback, Class<Type> originalClass, Type defaultInstance) Take anRpcCallback
accepting a specific message type and convert it to anRpcCallback<Message>
.MapField.getList()
Gets the content of this MapField as a read-only List.MapField.getMutableList()
Gets a mutable List view of this MapField.Message.getParserForType()
Methods in com.google.protobuf with parameters of type MessageModifier and TypeMethodDescriptionvoid
ExtensionRegistry.add
(Descriptors.FieldDescriptor type, Message defaultInstance) Add a message-type extension to the registry by descriptor.BlockingRpcChannel.callBlockingMethod
(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype) Call the given method of the remote service and blocks until it returns.BlockingService.callBlockingMethod
(Descriptors.MethodDescriptor method, RpcController controller, Message request) Equivalent toService.callMethod(com.google.protobuf.Descriptors.MethodDescriptor, com.google.protobuf.RpcController, com.google.protobuf.Message, com.google.protobuf.RpcCallback<com.google.protobuf.Message>)
, except thatcallBlockingMethod()
returns the result of the RPC or throws aServiceException
if there is a failure, rather than passing the information to a callback.void
RpcChannel.callMethod
(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype, RpcCallback<Message> done) Call the given method of the remote service.void
Service.callMethod
(Descriptors.MethodDescriptor method, RpcController controller, Message request, RpcCallback<Message> done) Call a method of the service specified by MethodDescriptor.private Message
GeneratedMessageV3.FieldAccessorTable.MapFieldAccessor.coerceType
(Message value) void
MapField.Converter.convertMessageToKeyAndValue
(Message message, Map<K, V> map) private void
MapField.convertMessageToKeyAndValue
(Message message, Map<K, V> map) void
MapField.ImmutableMessageConverter.convertMessageToKeyAndValue
(Message message, Map<K, V> map) private static <Type extends Message>
TypeRpcUtil.copyAsType
(Type typeDefaultInstance, Message source) Creates a new message of type "Type" which is a copy of "source".(package private) static int
MessageReflection.getSerializedSize
(Message message, Map<Descriptors.FieldDescriptor, Object> fields) (package private) BuilderType
AbstractMessage.Builder.mergeFrom
(Message other, Map<Descriptors.FieldDescriptor, Object> allFields) Mergeother
into the message being built.void
MessageReflection.BuilderAdapter.mergeGroup
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) void
MessageReflection.ExtensionAdapter.mergeGroup
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) void
MessageReflection.ExtensionBuilderAdapter.mergeGroup
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) void
MessageReflection.MergeTarget.mergeGroup
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) Read the given group field from the wire, merging with the existing field if it is already present.void
MessageReflection.BuilderAdapter.mergeMessage
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) void
MessageReflection.ExtensionAdapter.mergeMessage
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) void
MessageReflection.ExtensionBuilderAdapter.mergeMessage
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) void
MessageReflection.MergeTarget.mergeMessage
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) Read the given message field from the wire, merging with the existing field if it is already present.static DynamicMessage.Builder
DynamicMessage.newBuilder
(Message prototype) Construct aMessage.Builder
for a message of the same type asprototype
, and initialize it withprototype
's contents.MessageReflection.BuilderAdapter.newEmptyTargetForField
(Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionAdapter.newEmptyTargetForField
(Descriptors.FieldDescriptor descriptor, Message defaultInstance) MessageReflection.ExtensionBuilderAdapter.newEmptyTargetForField
(Descriptors.FieldDescriptor descriptor, Message defaultInstance) MessageReflection.MergeTarget.newEmptyTargetForField
(Descriptors.FieldDescriptor descriptor, Message defaultInstance) Returns an empty merge target for a sub-field.static <ContainingType extends Message,
Type>
GeneratedMessage.GeneratedExtension<ContainingType, Type> GeneratedMessage.newFileScopedGeneratedExtension
(Class singularType, Message defaultInstance) For use by generated code only.static <ContainingType extends Message,
Type>
GeneratedMessage.GeneratedExtension<ContainingType, Type> GeneratedMessage.newFileScopedGeneratedExtension
(Class singularType, Message defaultInstance, String descriptorOuterClass, String extensionName) Used in proto1 generated code only.MessageReflection.BuilderAdapter.newMergeTargetForField
(Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionAdapter.newMergeTargetForField
(Descriptors.FieldDescriptor descriptor, Message defaultInstance) MessageReflection.ExtensionBuilderAdapter.newMergeTargetForField
(Descriptors.FieldDescriptor descriptor, Message defaultInstance) MessageReflection.MergeTarget.newMergeTargetForField
(Descriptors.FieldDescriptor descriptor, Message defaultInstance) Returns a new merge target for a sub-field.private Message.Builder
MessageReflection.BuilderAdapter.newMessageFieldInstance
(Descriptors.FieldDescriptor field, Message defaultInstance) static <ContainingType extends Message,
Type>
GeneratedMessage.GeneratedExtension<ContainingType, Type> GeneratedMessage.newMessageScopedGeneratedExtension
(Message scope, int descriptorIndex, Class singularType, Message defaultInstance) For use by generated code only.static <ContainingType extends Message,
Type>
GeneratedMessage.GeneratedExtension<ContainingType, Type> GeneratedMessage.newMessageScopedGeneratedExtension
(Message scope, String name, Class singularType, Message defaultInstance) Used in proto1 generated code only.protected static UninitializedMessageException
AbstractMessage.Builder.newUninitializedMessageException
(Message message) Construct an UninitializedMessageException reporting missing fields in the given message.MessageReflection.BuilderAdapter.parseGroup
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionAdapter.parseGroup
(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionBuilderAdapter.parseGroup
(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.MergeTarget.parseGroup
(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor descriptor, Message defaultInstance) Parse the input stream into a sub field group defined based on either FieldDescriptor or the default instance.MessageReflection.BuilderAdapter.parseMessage
(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionAdapter.parseMessage
(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionBuilderAdapter.parseMessage
(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.MergeTarget.parseMessage
(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor descriptor, Message defaultInstance) Parse the input stream into a sub field message defined based on either FieldDescriptor or the default instance.MessageReflection.BuilderAdapter.parseMessageFromBytes
(ByteString bytes, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionAdapter.parseMessageFromBytes
(ByteString bytes, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionBuilderAdapter.parseMessageFromBytes
(ByteString bytes, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.MergeTarget.parseMessageFromBytes
(ByteString bytes, ExtensionRegistryLite registry, Descriptors.FieldDescriptor descriptor, Message defaultInstance) Parse from a ByteString into a sub field message defined based on either FieldDescriptor or the default instance.(package private) static void
MessageReflection.writeMessageTo
(Message message, Map<Descriptors.FieldDescriptor, Object> fields, CodedOutputStream output, boolean alwaysWriteRequiredFields) Method parameters in com.google.protobuf with type arguments of type MessageModifier and TypeMethodDescriptionvoid
RpcChannel.callMethod
(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype, RpcCallback<Message> done) Call the given method of the remote service.void
Service.callMethod
(Descriptors.MethodDescriptor method, RpcController controller, Message request, RpcCallback<Message> done) Call a method of the service specified by MethodDescriptor.private MapField.MutatabilityAwareMap
<K, V> MapField.convertListToMap
(List<Message> listData) static <Type extends Message>
RpcCallback<Type> RpcUtil.specializeCallback
(RpcCallback<Message> originalCallback) Take anRpcCallback<Message>
and convert it to anRpcCallback
accepting a specific message type.Constructors in com.google.protobuf with parameters of type MessageModifierConstructorDescriptionprivate
ExtensionInfo
(Descriptors.FieldDescriptor descriptor, Message defaultInstance) (package private)
GeneratedExtension
(GeneratedMessage.ExtensionDescriptorRetriever descriptorRetriever, Class singularType, Message messageDefaultInstance, Extension.ExtensionType extensionType) -
Uses of Message in com.google.protobuf.compiler
Classes in com.google.protobuf.compiler that implement MessageModifier and TypeClassDescriptionstatic final class
An encoded CodeGeneratorRequest is written to the plugin's stdin.static final class
The plugin writes an encoded CodeGeneratorResponse to stdout.static final class
Represents a single generated file.static final class
The version number of protocol compiler.Methods in com.google.protobuf.compiler with parameters of type MessageModifier and TypeMethodDescription -
Uses of Message in com.google.protobuf.util
Methods in com.google.protobuf.util with type parameters of type MessageModifier and TypeMethodDescriptionstatic <P extends Message>
PReturns the result of keeping only the masked fields of the given proto.Methods in com.google.protobuf.util with parameters of type MessageModifier and TypeMethodDescription(package private) void
FieldMaskTree.merge
(Message source, Message.Builder destination, FieldMaskUtil.MergeOptions options) Merges all fields specified by this FieldMaskTree fromsource
todestination
.private static void
FieldMaskTree.merge
(FieldMaskTree.Node node, String path, Message source, Message.Builder destination, FieldMaskUtil.MergeOptions options) Merges all fields specified by a sub-tree fromsource
todestination
.static void
FieldMaskUtil.merge
(FieldMask mask, Message source, Message.Builder destination) Merges fields specified by a FieldMask from one message to another.static void
FieldMaskUtil.merge
(FieldMask mask, Message source, Message.Builder destination, FieldMaskUtil.MergeOptions options) Merges fields specified by a FieldMask from one message to another with the specified merge options.Method parameters in com.google.protobuf.util with type arguments of type MessageModifier and TypeMethodDescriptionstatic FieldMask
FieldMaskUtil.fromFieldNumbers
(Class<? extends Message> type, int... fieldNumbers) Constructs a FieldMask from the passed field numbers.static FieldMask
FieldMaskUtil.fromFieldNumbers
(Class<? extends Message> type, Iterable<Integer> fieldNumbers) Constructs a FieldMask from the passed field numbers.static FieldMask
FieldMaskUtil.fromString
(Class<? extends Message> type, String value) Parses from a string to a FieldMask and validates all field paths.static FieldMask
FieldMaskUtil.fromStringList
(Class<? extends Message> type, Iterable<String> paths) Constructs a FieldMask for a list of field paths in a certain type.static boolean
Checks whether paths in a given fields mask are valid.static boolean
Checks whether a given field path is valid.