Uses of Interface
com.google.protobuf.Message
-
Packages that use Message Package Description com.google.protobuf com.google.protobuf.compiler com.google.protobuf.util -
-
Uses of Message in com.google.protobuf
Classes in com.google.protobuf with type parameters of type Message Modifier and Type Class Description static class
GeneratedMessage.GeneratedExtension<ContainingT extends Message,T>
Type used to represent generated extensions.Classes in com.google.protobuf that implement Message Modifier and Type Class Description class
AbstractMessage
A partial implementation of theMessage
interface which implements as many methods of that interface as possible in terms of other methods.class
DynamicMessage
An implementation ofMessage
that can represent arbitrary types, given aDescriptors.Descriptor
.class
GeneratedMessage
All generated protocol message classes extend this class.static class
GeneratedMessage.ExtendableMessage<MessageT extends GeneratedMessage.ExtendableMessage<MessageT>>
Generated message classes for message types that contain extension ranges subclass this.class
GeneratedMessageV3
Deprecated.This class is deprecated, and slated for removal in the next Java breaking change (5.x).static class
GeneratedMessageV3.ExtendableMessage<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>
Deprecated.This class is deprecated, and slated for removal in the next Java breaking change (5.x).static class
JavaFeaturesProto.JavaFeatures
Protobuf typepb.JavaFeatures
class
MapEntry<K,V>
Implements MapEntry messages.Fields in com.google.protobuf declared as Message Modifier and Type Field Description Message
ExtensionRegistry.ExtensionInfo. defaultInstance
A default instance of the extension's type, if it has a message type.private Message
GeneratedMessage.FieldAccessorTable.MapFieldAccessor. mapEntryMessageDefaultInstance
private Message
GeneratedMessage.GeneratedExtension. messageDefaultInstance
private Message
Descriptors.DescriptorValidationException. proto
Fields in com.google.protobuf with type parameters of type Message Modifier and Type Field Description private java.util.List<Message>
MapField. listData
(package private) java.util.List<Message>
MapFieldBuilder. messageList
nullableMethods in com.google.protobuf with type parameters of type Message Modifier and Type Method Description private 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, java.lang.Class<Type> originalClass, Type defaultInstance)
Take anRpcCallback
accepting a specific message type and convert it to anRpcCallback<Message>
.static <ContainingT extends Message,T>
GeneratedMessage.GeneratedExtension<ContainingT,T>GeneratedMessage. newFileScopedGeneratedExtension(java.lang.Class<?> singularType, Message defaultInstance)
For use by generated code only.static <ContainingT extends Message,T>
GeneratedMessage.GeneratedExtension<ContainingT,T>GeneratedMessage. newMessageScopedGeneratedExtension(Message scope, int descriptorIndex, java.lang.Class<?> singularType, Message defaultInstance)
For use by generated code only.static <T extends Message>
TTextFormat. parse(java.lang.CharSequence input, ExtensionRegistry extensionRegistry, java.lang.Class<T> protoClass)
Parse a text-format message frominput
.static <T extends Message>
TTextFormat. parse(java.lang.CharSequence input, java.lang.Class<T> protoClass)
Parse a text-format message frominput
.protected static <M extends Message>
MGeneratedMessage. parseDelimitedWithIOException(Parser<M> parser, java.io.InputStream input)
Used by generated code.protected static <M extends Message>
MGeneratedMessage. parseDelimitedWithIOException(Parser<M> parser, java.io.InputStream input, ExtensionRegistryLite extensions)
Used by generated code.protected static <M extends Message>
MGeneratedMessage. parseWithIOException(Parser<M> parser, CodedInputStream input)
Used by generated code.protected static <M extends Message>
MGeneratedMessage. parseWithIOException(Parser<M> parser, CodedInputStream input, ExtensionRegistryLite extensions)
Used by generated code.protected static <M extends Message>
MGeneratedMessage. parseWithIOException(Parser<M> parser, java.io.InputStream input)
Used by generated code.protected static <M extends Message>
MGeneratedMessage. parseWithIOException(Parser<M> parser, java.io.InputStream input, ExtensionRegistryLite extensions)
Used by generated code.static <Type extends Message>
RpcCallback<Type>RpcUtil. specializeCallback(RpcCallback<Message> originalCallback)
Take anRpcCallback<Message>
and convert it to anRpcCallback
accepting a specific message type.static <T extends Message>
Parser<T>DiscardUnknownFieldsParser. wrap(Parser<T> parser)
Methods in com.google.protobuf that return Message Modifier and Type Method Description Message
Message.Builder. build()
Message
Message.Builder. buildPartial()
Message
BlockingRpcChannel. callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype)
Call the given method of the remote service and blocks until it returns.Message
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
GeneratedMessage.FieldAccessorTable.MapFieldAccessor. coerceType(Message value)
Message
MapField.Converter. convertKeyAndValueToMessage(K key, V value)
private Message
MapField. convertKeyAndValueToMessage(K key, V value)
Message
MapField.ImmutableMessageConverter. convertKeyAndValueToMessage(K key, V value)
private static Message
DescriptorMessageInfoFactory. getDefaultInstance(java.lang.Class<?> messageType)
Message
GeneratedMessage.ExtendableMessageOrBuilder. getDefaultInstanceForType()
Message
MessageOrBuilder. getDefaultInstanceForType()
(package private) Message
MapField. getMapEntryMessageDefaultInstance()
Gets the default instance of the message stored in the list view of this map field.(package private) Message
MapFieldBuilder. getMapEntryMessageDefaultInstance()
Gets the default instance of the message stored in the list view of this map field.(package private) abstract Message
MapFieldReflectionAccessor. 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.Message
GeneratedMessage.GeneratedExtension. getMessageDefaultInstance()
If the extension is an embedded message or group, returns the default instance of the message.Message
MapField.Converter. getMessageDefaultInstance()
Message
MapField.ImmutableMessageConverter. getMessageDefaultInstance()
Message
Descriptors.DescriptorValidationException. getProblemProto()
Gets the protocol message representation of the invalid descriptor.Message
BlockingService. getRequestPrototype(Descriptors.MethodDescriptor method)
Message
Service. getRequestPrototype(Descriptors.MethodDescriptor method)
callMethod()
requires that the request passed in is of a particular subclass ofMessage
.Message
BlockingService. getResponsePrototype(Descriptors.MethodDescriptor method)
Message
Service. getResponsePrototype(Descriptors.MethodDescriptor method)
LikegetRequestPrototype()
, but gets a prototype of the response message.Message
Descriptors.DescriptorPool.PackageDescriptor. toProto()
abstract Message
Descriptors.GenericDescriptor. toProto()
Methods in com.google.protobuf that return types with arguments of type Message Modifier and Type Method Description private java.util.List<Message>
MapField. convertMapToList(MapField.MutabilityAwareMap<K,V> mapData)
java.util.List<Message>
MapFieldBuilder. ensureMessageList()
static <Type extends Message>
RpcCallback<Message>RpcUtil. generalizeCallback(RpcCallback<Type> originalCallback, java.lang.Class<Type> originalClass, Type defaultInstance)
Take anRpcCallback
accepting a specific message type and convert it to anRpcCallback<Message>
.(package private) java.util.List<Message>
MapField. getList()
Gets the content of this MapField as a read-only List.(package private) java.util.List<Message>
MapFieldBuilder. getList()
Gets the content of this MapField as a read-only List.(package private) abstract java.util.List<Message>
MapFieldReflectionAccessor. getList()
Gets the content of this MapField as a list of read-only values.(package private) java.util.List<Message>
MapField. getMutableList()
Gets a mutable List view of this MapField.(package private) java.util.List<Message>
MapFieldBuilder. getMutableList()
Gets a mutable List view of this MapField.(package private) abstract java.util.List<Message>
MapFieldReflectionAccessor. getMutableList()
Gets a mutable List view of this MapField.Parser<? extends Message>
Message. getParserForType()
Methods in com.google.protobuf with parameters of type Message Modifier and Type Method Description void
ExtensionRegistry. add(Descriptors.FieldDescriptor type, Message defaultInstance)
Add a message-type extension to the registry by descriptor.Message
BlockingRpcChannel. callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype)
Call the given method of the remote service and blocks until it returns.Message
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
GeneratedMessage.FieldAccessorTable.MapFieldAccessor. coerceType(Message value)
void
MapField.Converter. convertMessageToKeyAndValue(Message message, java.util.Map<K,V> map)
private void
MapField. convertMessageToKeyAndValue(Message message, java.util.Map<K,V> map)
void
MapField.ImmutableMessageConverter. convertMessageToKeyAndValue(Message message, java.util.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, java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> fields)
BuilderType
AbstractMessage.Builder. mergeFrom(Message other)
(package private) BuilderType
AbstractMessage.Builder. mergeFrom(Message other, java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> allFields)
DynamicMessage.Builder
DynamicMessage.Builder. mergeFrom(Message other)
JavaFeaturesProto.JavaFeatures.Builder
JavaFeaturesProto.JavaFeatures.Builder. mergeFrom(Message other)
Message.Builder
Message.Builder. mergeFrom(Message other)
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.MergeTarget
MessageReflection.BuilderAdapter. newEmptyTargetForField(Descriptors.FieldDescriptor field, Message defaultInstance)
MessageReflection.MergeTarget
MessageReflection.ExtensionAdapter. newEmptyTargetForField(Descriptors.FieldDescriptor descriptor, Message defaultInstance)
MessageReflection.MergeTarget
MessageReflection.ExtensionBuilderAdapter. newEmptyTargetForField(Descriptors.FieldDescriptor descriptor, Message defaultInstance)
MessageReflection.MergeTarget
MessageReflection.MergeTarget. newEmptyTargetForField(Descriptors.FieldDescriptor descriptor, Message defaultInstance)
Returns an empty merge target for a sub-field.static <ContainingT extends Message,T>
GeneratedMessage.GeneratedExtension<ContainingT,T>GeneratedMessage. newFileScopedGeneratedExtension(java.lang.Class<?> singularType, Message defaultInstance)
For use by generated code only.MessageReflection.MergeTarget
MessageReflection.BuilderAdapter. newMergeTargetForField(Descriptors.FieldDescriptor field, Message defaultInstance)
MessageReflection.MergeTarget
MessageReflection.ExtensionAdapter. newMergeTargetForField(Descriptors.FieldDescriptor descriptor, Message defaultInstance)
MessageReflection.MergeTarget
MessageReflection.ExtensionBuilderAdapter. newMergeTargetForField(Descriptors.FieldDescriptor descriptor, Message defaultInstance)
MessageReflection.MergeTarget
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 <ContainingT extends Message,T>
GeneratedMessage.GeneratedExtension<ContainingT,T>GeneratedMessage. newMessageScopedGeneratedExtension(Message scope, int descriptorIndex, java.lang.Class<?> singularType, Message defaultInstance)
For use by generated code only.protected static UninitializedMessageException
AbstractMessage.Builder. newUninitializedMessageException(Message message)
Construct an UninitializedMessageException reporting missing fields in the given message.java.lang.Object
MessageReflection.BuilderAdapter. parseGroup(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
MessageReflection.ExtensionAdapter. parseGroup(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
MessageReflection.ExtensionBuilderAdapter. parseGroup(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
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.java.lang.Object
MessageReflection.BuilderAdapter. parseMessage(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
MessageReflection.ExtensionAdapter. parseMessage(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
MessageReflection.ExtensionBuilderAdapter. parseMessage(CodedInputStream input, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
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.java.lang.Object
MessageReflection.BuilderAdapter. parseMessageFromBytes(ByteString bytes, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
MessageReflection.ExtensionAdapter. parseMessageFromBytes(ByteString bytes, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
MessageReflection.ExtensionBuilderAdapter. parseMessageFromBytes(ByteString bytes, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance)
java.lang.Object
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, java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> fields, CodedOutputStream output, boolean alwaysWriteRequiredFields)
Method parameters in com.google.protobuf with type arguments of type Message Modifier and Type Method Description 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 MapField.MutabilityAwareMap<K,V>
MapField. convertListToMap(java.util.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 Message Constructor Description ExtensionInfo(Descriptors.FieldDescriptor descriptor, Message defaultInstance)
GeneratedExtension(GeneratedMessage.ExtensionDescriptorRetriever descriptorRetriever, java.lang.Class<?> singularType, Message messageDefaultInstance, Extension.ExtensionType extensionType)
-
Uses of Message in com.google.protobuf.compiler
Classes in com.google.protobuf.compiler that implement Message Modifier and Type Class 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.static class
PluginProtos.Version
The version number of protocol compiler.Methods in com.google.protobuf.compiler with parameters of type Message Modifier and Type Method Description PluginProtos.CodeGeneratorRequest.Builder
PluginProtos.CodeGeneratorRequest.Builder. mergeFrom(Message other)
PluginProtos.CodeGeneratorResponse.Builder
PluginProtos.CodeGeneratorResponse.Builder. mergeFrom(Message other)
PluginProtos.CodeGeneratorResponse.File.Builder
PluginProtos.CodeGeneratorResponse.File.Builder. mergeFrom(Message other)
PluginProtos.Version.Builder
PluginProtos.Version.Builder. mergeFrom(Message other)
-
Uses of Message in com.google.protobuf.util
Methods in com.google.protobuf.util with type parameters of type Message Modifier and Type Method Description static <P extends Message>
PFieldMaskUtil. trim(FieldMask mask, P source)
Returns the result of keeping only the masked fields of the given proto.Methods in com.google.protobuf.util with parameters of type Message Modifier and Type Method Description (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, 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 Message Modifier and Type Method Description static FieldMask
FieldMaskUtil. fromFieldNumbers(java.lang.Class<? extends Message> type, int... fieldNumbers)
Constructs a FieldMask from the passed field numbers.static FieldMask
FieldMaskUtil. fromFieldNumbers(java.lang.Class<? extends Message> type, java.lang.Iterable<java.lang.Integer> fieldNumbers)
Constructs a FieldMask from the passed field numbers.static FieldMask
FieldMaskUtil. fromString(java.lang.Class<? extends Message> type, java.lang.String value)
Parses from a string to a FieldMask and validates all field paths.static FieldMask
FieldMaskUtil. fromStringList(java.lang.Class<? extends Message> type, java.lang.Iterable<java.lang.String> paths)
Constructs a FieldMask for a list of field paths in a certain type.static boolean
FieldMaskUtil. isValid(java.lang.Class<? extends Message> type, FieldMask fieldMask)
Checks whether paths in a given fields mask are valid.static boolean
FieldMaskUtil. isValid(java.lang.Class<? extends Message> type, java.lang.String path)
Checks whether a given field path is valid.
-