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 classGeneratedMessage.GeneratedExtension<ContainingT extends Message, T>Type used to represent generated extensions.Classes in com.google.protobuf that implement MessageModifier and TypeClassDescriptionclassA partial implementation of theMessageinterface which implements as many methods of that interface as possible in terms of other methods.final classAn implementation ofMessagethat can represent arbitrary types, given aDescriptors.Descriptor.classAll generated protocol message classes extend this class.static classGeneratedMessage.ExtendableMessage<MessageT extends GeneratedMessage.ExtendableMessage<MessageT>>Generated message classes for message types that contain extension ranges subclass this.classDeprecated.This class is deprecated, and slated for removal in the next Java breaking change (5.x).static classGeneratedMessageV3.ExtendableMessage<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>Deprecated.This class is deprecated, and slated for removal in the next Java breaking change (5.x).static final classProtobuf typepb.JavaFeaturesstatic final classProtobuf typepb.JavaFeatures.NestInFileClassFeaturefinal classMapEntry<K,V> Implements MapEntry messages.Fields in com.google.protobuf declared as MessageModifier and TypeFieldDescriptionfinal MessageExtensionRegistry.ExtensionInfo.defaultInstanceA default instance of the extension's type, if it has a message type.private final MessageGeneratedMessage.FieldAccessorTable.MapFieldAccessor.mapEntryMessageDefaultInstanceprivate final MessageGeneratedMessage.GeneratedExtension.messageDefaultInstanceprivate MessageTextFormat.Printer.MapEntryAdapter.messageEntryprivate final MessageDescriptors.DescriptorValidationException.protoFields 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 anRpcCallbackaccepting a specific message type and convert it to anRpcCallback<Message>.(package private) static <T extends Message>
TGeneratorNames.getResolvedFileFeatures(GeneratedMessage.GeneratedExtension<DescriptorProtos.FeatureSet, T> ext, DescriptorProtos.FileDescriptorProtoOrBuilder file) Returns the resolved features for the given descriptor proto.static <ContainingT extends Message, T>
GeneratedMessage.GeneratedExtension<ContainingT, T> GeneratedMessage.newFileScopedGeneratedExtension(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, Class<?> singularType, Message defaultInstance) For use by generated code only.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) Used by generated code.protected static <M extends Message>
MGeneratedMessage.parseDelimitedWithIOException(Parser<M> parser, 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, InputStream input) Used by generated code.protected static <M extends Message>
MGeneratedMessage.parseWithIOException(Parser<M> parser, 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 anRpcCallbackaccepting a specific message type.Methods 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(Descriptors.MethodDescriptor, RpcController, Message, RpcCallback), except thatcallBlockingMethod()returns the result of the RPC or throws aServiceExceptionif there is a failure, rather than passing the information to a callback.private MessageGeneratedMessage.FieldAccessorTable.MapFieldAccessor.coerceType(Message value) MapField.Converter.convertKeyAndValueToMessage(K key, V value) private MessageMapField.convertKeyAndValueToMessage(K key, V value) MapField.ImmutableMessageConverter.convertKeyAndValueToMessage(K key, V value) private static MessageDescriptorMessageInfoFactory.getDefaultInstance(Class<?> messageType) GeneratedMessage.ExtendableMessageOrBuilder.getDefaultInstanceForType()MessageOrBuilder.getDefaultInstanceForType()(package private) MessageMapField.getMapEntryMessageDefaultInstance()Gets the default instance of the message stored in the list view of this map field.(package private) MessageMapFieldBuilder.getMapEntryMessageDefaultInstance()Gets the default instance of the message stored in the list view of this map field.(package private) abstract MessageMapFieldReflectionAccessor.getMapEntryMessageDefaultInstance()Gets the default instance of the message stored in the list view of this map field.abstract MessageExtension.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) Equivalent toService.getRequestPrototype(Descriptors.MethodDescriptor).Service.getRequestPrototype(Descriptors.MethodDescriptor method) callMethod()requires that the request passed in is of a particular subclass ofMessage.BlockingService.getResponsePrototype(Descriptors.MethodDescriptor method) Equivalent toService.getResponsePrototype(Descriptors.MethodDescriptor).Service.getResponsePrototype(Descriptors.MethodDescriptor method) LikegetRequestPrototype(), but gets a prototype of the response message.Descriptors.FileDescriptorTables.PackageDescriptor.toProto()abstract MessageDescriptors.GenericDescriptor.toProto()Methods in com.google.protobuf that return types with arguments of type MessageModifier and TypeMethodDescriptionMapField.convertMapToList(MapField.MutabilityAwareMap<K, V> mapData) MapFieldBuilder.ensureMessageList()static <Type extends Message>
RpcCallback<Message> RpcUtil.generalizeCallback(RpcCallback<Type> originalCallback, Class<Type> originalClass, Type defaultInstance) Take anRpcCallbackaccepting a specific message type and convert it to anRpcCallback<Message>.MapField.getList()Gets the content of this MapField as a read-only List.MapFieldBuilder.getList()Gets the content of this MapField as a read-only List.MapFieldReflectionAccessor.getList()Gets the content of this MapField as a list of read-only values.MapField.getMutableList()Gets a mutable List view of this MapField.MapFieldBuilder.getMutableList()Gets a mutable List view of this MapField.MapFieldReflectionAccessor.getMutableList()Gets a mutable List view of this MapField.Message.getParserForType()Methods in com.google.protobuf with parameters of type MessageModifier and TypeMethodDescriptionvoidExtensionRegistry.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(Descriptors.MethodDescriptor, RpcController, Message, RpcCallback), except thatcallBlockingMethod()returns the result of the RPC or throws aServiceExceptionif there is a failure, rather than passing the information to a callback.voidRpcChannel.callMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype, RpcCallback<Message> done) Call the given method of the remote service.voidService.callMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request, RpcCallback<Message> done) Call a method of the service specified by MethodDescriptor.private MessageGeneratedMessage.FieldAccessorTable.MapFieldAccessor.coerceType(Message value) voidMapField.Converter.convertMessageToKeyAndValue(Message message, Map<K, V> map) private voidMapField.convertMessageToKeyAndValue(Message message, Map<K, V> map) voidMapField.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 intMessageReflection.getSerializedSize(Message message, Map<Descriptors.FieldDescriptor, Object> fields) (package private) BuilderTypeAbstractMessage.Builder.mergeFrom(Message other, Map<Descriptors.FieldDescriptor, Object> allFields) Mergeotherinto the message being built.voidMessageReflection.BuilderAdapter.mergeGroup(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) voidMessageReflection.ExtensionAdapter.mergeGroup(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) voidMessageReflection.ExtensionBuilderAdapter.mergeGroup(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) voidMessageReflection.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.voidMessageReflection.BuilderAdapter.mergeMessage(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) voidMessageReflection.ExtensionAdapter.mergeMessage(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) voidMessageReflection.ExtensionBuilderAdapter.mergeMessage(CodedInputStream input, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) voidMessageReflection.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.BuilderDynamicMessage.newBuilder(Message prototype) Construct aMessage.Builderfor 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 <ContainingT extends Message, T>
GeneratedMessage.GeneratedExtension<ContainingT, T> GeneratedMessage.newFileScopedGeneratedExtension(Class<?> singularType, Message defaultInstance) For use by 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.BuilderMessageReflection.BuilderAdapter.newMessageFieldInstance(Descriptors.FieldDescriptor field, Message defaultInstance) static <ContainingT extends Message, T>
GeneratedMessage.GeneratedExtension<ContainingT, T> GeneratedMessage.newMessageScopedGeneratedExtension(Message scope, int descriptorIndex, Class<?> singularType, Message defaultInstance) For use by generated code only.protected static UninitializedMessageExceptionAbstractMessage.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 voidMessageReflection.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 TypeMethodDescriptionvoidRpcChannel.callMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype, RpcCallback<Message> done) Call the given method of the remote service.voidService.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(List<Message> listData) static <Type extends Message>
RpcCallback<Type> RpcUtil.specializeCallback(RpcCallback<Message> originalCallback) Take anRpcCallback<Message>and convert it to anRpcCallbackaccepting a specific message type.Constructors in com.google.protobuf with parameters of type MessageModifierConstructorDescriptionprivateExtensionInfo(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 classAn encoded CodeGeneratorRequest is written to the plugin's stdin.static final classThe plugin writes an encoded CodeGeneratorResponse to stdout.static final classRepresents a single generated file.static final classThe 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.static <P extends Message>
PFieldMaskUtil.trim(FieldMask mask, P source, FieldMaskUtil.TrimOptions options) Returns the result of keeping only the masked fields of the given proto with the specified trim options.Methods in com.google.protobuf.util with parameters of type MessageModifier and TypeMethodDescription(package private) voidFieldMaskTree.merge(Message source, Message.Builder destination, FieldMaskUtil.MergeOptions options) Merges all fields specified by this FieldMaskTree fromsourcetodestination.private static voidFieldMaskTree.merge(FieldMaskTree.Node node, Message source, Message.Builder destination, FieldMaskUtil.MergeOptions options) Merges all fields specified by a sub-tree fromsourcetodestination.static voidFieldMaskUtil.merge(FieldMask mask, Message source, Message.Builder destination) Merges fields specified by a FieldMask from one message to another.static voidFieldMaskUtil.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 FieldMaskFieldMaskUtil.fromFieldNumbers(Class<? extends Message> type, int... fieldNumbers) Constructs a FieldMask from the passed field numbers.static FieldMaskFieldMaskUtil.fromFieldNumbers(Class<? extends Message> type, Iterable<Integer> fieldNumbers) Constructs a FieldMask from the passed field numbers.static FieldMaskFieldMaskUtil.fromString(Class<? extends Message> type, String value) Parses from a string to a FieldMask and validates all field paths.static FieldMaskFieldMaskUtil.fromStringList(Class<? extends Message> type, Iterable<String> paths) Constructs a FieldMask for a list of field paths in a certain type.static booleanChecks whether paths in a given fields mask are valid.static booleanChecks whether a given field path is valid.