Modifier and Type | Class and Description |
---|---|
static class |
GeneratedMessage.GeneratedExtension<ContainingType extends Message,Type>
Type used to represent generated extensions.
|
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 |
Any
Protobuf type
google.protobuf.Any |
class |
Api
Protobuf type
google.protobuf.Api |
class |
BoolValue
Protobuf type
google.protobuf.BoolValue |
class |
BytesValue
Protobuf type
google.protobuf.BytesValue |
static class |
DescriptorProtos.DescriptorProto
Protobuf type
google.protobuf.DescriptorProto |
static class |
DescriptorProtos.DescriptorProto.ExtensionRange
Protobuf type
google.protobuf.DescriptorProto.ExtensionRange |
static class |
DescriptorProtos.DescriptorProto.ReservedRange
Protobuf type
google.protobuf.DescriptorProto.ReservedRange |
static class |
DescriptorProtos.EnumDescriptorProto
Protobuf type
google.protobuf.EnumDescriptorProto |
static class |
DescriptorProtos.EnumOptions
Protobuf type
google.protobuf.EnumOptions |
static class |
DescriptorProtos.EnumValueDescriptorProto
Protobuf type
google.protobuf.EnumValueDescriptorProto |
static class |
DescriptorProtos.EnumValueOptions
Protobuf type
google.protobuf.EnumValueOptions |
static class |
DescriptorProtos.FieldDescriptorProto
Protobuf type
google.protobuf.FieldDescriptorProto |
static class |
DescriptorProtos.FieldOptions
Protobuf type
google.protobuf.FieldOptions |
static class |
DescriptorProtos.FileDescriptorProto
Protobuf type
google.protobuf.FileDescriptorProto |
static class |
DescriptorProtos.FileDescriptorSet
Protobuf type
google.protobuf.FileDescriptorSet |
static class |
DescriptorProtos.FileOptions
Protobuf type
google.protobuf.FileOptions |
static class |
DescriptorProtos.MessageOptions
Protobuf type
google.protobuf.MessageOptions |
static class |
DescriptorProtos.MethodDescriptorProto
Protobuf type
google.protobuf.MethodDescriptorProto |
static class |
DescriptorProtos.MethodOptions
Protobuf type
google.protobuf.MethodOptions |
static class |
DescriptorProtos.OneofDescriptorProto
Protobuf type
google.protobuf.OneofDescriptorProto |
static class |
DescriptorProtos.ServiceDescriptorProto
Protobuf type
google.protobuf.ServiceDescriptorProto |
static class |
DescriptorProtos.ServiceOptions
Protobuf type
google.protobuf.ServiceOptions |
static class |
DescriptorProtos.SourceCodeInfo
Protobuf type
google.protobuf.SourceCodeInfo |
static class |
DescriptorProtos.SourceCodeInfo.Location
Protobuf type
google.protobuf.SourceCodeInfo.Location |
static class |
DescriptorProtos.UninterpretedOption
Protobuf type
google.protobuf.UninterpretedOption |
static class |
DescriptorProtos.UninterpretedOption.NamePart
Protobuf type
google.protobuf.UninterpretedOption.NamePart |
class |
DoubleValue
Protobuf type
google.protobuf.DoubleValue |
class |
Duration
Protobuf type
google.protobuf.Duration |
class |
DynamicMessage
An implementation of
Message that can represent arbitrary types,
given a Descriptors.Descriptor . |
class |
Empty
Protobuf type
google.protobuf.Empty |
class |
Enum
Protobuf type
google.protobuf.Enum |
class |
EnumValue
Protobuf type
google.protobuf.EnumValue |
class |
Field
Protobuf type
google.protobuf.Field |
class |
FieldMask
Protobuf type
google.protobuf.FieldMask |
class |
FloatValue
Protobuf type
google.protobuf.FloatValue |
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 |
Int32Value
Protobuf type
google.protobuf.Int32Value |
class |
Int64Value
Protobuf type
google.protobuf.Int64Value |
class |
ListValue
Protobuf type
google.protobuf.ListValue |
class |
MapEntry<K,V>
Implements MapEntry messages.
|
class |
Method
Protobuf type
google.protobuf.Method |
class |
Option
Protobuf type
google.protobuf.Option |
class |
SourceContext
Protobuf type
google.protobuf.SourceContext |
class |
StringValue
Protobuf type
google.protobuf.StringValue |
class |
Struct
Protobuf type
google.protobuf.Struct |
class |
Timestamp
Protobuf type
google.protobuf.Timestamp |
class |
Type
Protobuf type
google.protobuf.Type |
class |
UInt32Value
Protobuf type
google.protobuf.UInt32Value |
class |
UInt64Value
Protobuf type
google.protobuf.UInt64Value |
class |
Value
Protobuf type
google.protobuf.Value |
Modifier and Type | Field and Description |
---|---|
Message |
ExtensionRegistry.ExtensionInfo.defaultInstance
A default instance of the extension's type, if it has a message type.
|
Modifier and Type | Method and Description |
---|---|
static <Type extends Message> |
RpcUtil.generalizeCallback(RpcCallback<Type> originalCallback,
Class<Type> originalClass,
Type defaultInstance)
Take an
RpcCallback accepting a specific message type and convert
it to an RpcCallback<Message> . |
static <ContainingType extends Message,Type> |
GeneratedMessage.newFileScopedGeneratedExtension(Class singularType,
Message defaultInstance)
For use by generated code only.
|
static <ContainingType extends Message,Type> |
GeneratedMessage.newFileScopedGeneratedExtension(Class singularType,
Message defaultInstance,
String descriptorOuterClass,
String extensionName)
Used in proto1 generated code only.
|
static <ContainingType extends Message,Type> |
GeneratedMessage.newMessageScopedGeneratedExtension(Message scope,
int descriptorIndex,
Class singularType,
Message defaultInstance)
For use by generated code only.
|
static <ContainingType extends Message,Type> |
GeneratedMessage.newMessageScopedGeneratedExtension(Message scope,
String name,
Class singularType,
Message defaultInstance)
Used in proto1 generated code only.
|
static <Type extends Message> |
RpcUtil.specializeCallback(RpcCallback<Message> originalCallback)
Take an
RpcCallback<Message> and convert it to an
RpcCallback accepting a specific message type. |
Modifier and Type | Method and Description |
---|---|
Message |
Message.Builder.build() |
Message |
Message.Builder.buildPartial() |
Message |
BlockingService.callBlockingMethod(Descriptors.MethodDescriptor method,
RpcController controller,
Message request)
Equivalent to
Service.callMethod(com.google.protobuf.Descriptors.MethodDescriptor, com.google.protobuf.RpcController, com.google.protobuf.Message, com.google.protobuf.RpcCallback<com.google.protobuf.Message>) , except that
callBlockingMethod() returns the result of the RPC or throws a
ServiceException if there is a failure, rather than passing the
information to a callback. |
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 |
MessageOrBuilder.getDefaultInstanceForType() |
Message |
GeneratedMessage.ExtendableMessageOrBuilder.getDefaultInstanceForType() |
Message |
GeneratedMessage.GeneratedExtension.getMessageDefaultInstance()
If the extension is an embedded message or group, returns the default
instance of the message.
|
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 of Message . |
Message |
BlockingService.getResponsePrototype(Descriptors.MethodDescriptor method)
|
Message |
Service.getResponsePrototype(Descriptors.MethodDescriptor method)
Like
getRequestPrototype() , but gets a prototype of the response
message. |
abstract Message |
Descriptors.GenericDescriptor.toProto() |
Modifier and Type | Method and Description |
---|---|
static <Type extends Message> |
RpcUtil.generalizeCallback(RpcCallback<Type> originalCallback,
Class<Type> originalClass,
Type defaultInstance)
Take an
RpcCallback accepting a specific message type and convert
it to an RpcCallback<Message> . |
Parser<? extends Message> |
Message.getParserForType() |
Modifier and Type | Method and Description |
---|---|
void |
ExtensionRegistry.add(Descriptors.FieldDescriptor type,
Message defaultInstance)
Add a message-type extension to the registry by descriptor.
|
Message |
BlockingService.callBlockingMethod(Descriptors.MethodDescriptor method,
RpcController controller,
Message request)
Equivalent to
Service.callMethod(com.google.protobuf.Descriptors.MethodDescriptor, com.google.protobuf.RpcController, com.google.protobuf.Message, com.google.protobuf.RpcCallback<com.google.protobuf.Message>) , except that
callBlockingMethod() returns the result of the RPC or throws a
ServiceException if there is a failure, rather than passing the
information to a callback. |
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.
|
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.
|
Field.Builder |
Field.Builder.mergeFrom(Message other) |
Api.Builder |
Api.Builder.mergeFrom(Message other) |
Message.Builder |
Message.Builder.mergeFrom(Message other)
Merge
other into the message being built. |
StringValue.Builder |
StringValue.Builder.mergeFrom(Message other) |
BuilderType |
AbstractMessage.Builder.mergeFrom(Message other) |
Duration.Builder |
Duration.Builder.mergeFrom(Message other) |
BoolValue.Builder |
BoolValue.Builder.mergeFrom(Message other) |
UInt64Value.Builder |
UInt64Value.Builder.mergeFrom(Message other) |
Int32Value.Builder |
Int32Value.Builder.mergeFrom(Message other) |
Struct.Builder |
Struct.Builder.mergeFrom(Message other) |
Value.Builder |
Value.Builder.mergeFrom(Message other) |
SourceContext.Builder |
SourceContext.Builder.mergeFrom(Message other) |
FieldMask.Builder |
FieldMask.Builder.mergeFrom(Message other) |
Int64Value.Builder |
Int64Value.Builder.mergeFrom(Message other) |
Timestamp.Builder |
Timestamp.Builder.mergeFrom(Message other) |
Empty.Builder |
Empty.Builder.mergeFrom(Message other) |
UInt32Value.Builder |
UInt32Value.Builder.mergeFrom(Message other) |
Enum.Builder |
Enum.Builder.mergeFrom(Message other) |
DescriptorProtos.FileDescriptorSet.Builder |
DescriptorProtos.FileDescriptorSet.Builder.mergeFrom(Message other) |
DescriptorProtos.FileDescriptorProto.Builder |
DescriptorProtos.FileDescriptorProto.Builder.mergeFrom(Message other) |
DescriptorProtos.DescriptorProto.ExtensionRange.Builder |
DescriptorProtos.DescriptorProto.ExtensionRange.Builder.mergeFrom(Message other) |
DescriptorProtos.DescriptorProto.ReservedRange.Builder |
DescriptorProtos.DescriptorProto.ReservedRange.Builder.mergeFrom(Message other) |
DescriptorProtos.DescriptorProto.Builder |
DescriptorProtos.DescriptorProto.Builder.mergeFrom(Message other) |
DescriptorProtos.FieldDescriptorProto.Builder |
DescriptorProtos.FieldDescriptorProto.Builder.mergeFrom(Message other) |
DescriptorProtos.OneofDescriptorProto.Builder |
DescriptorProtos.OneofDescriptorProto.Builder.mergeFrom(Message other) |
DescriptorProtos.EnumDescriptorProto.Builder |
DescriptorProtos.EnumDescriptorProto.Builder.mergeFrom(Message other) |
DescriptorProtos.EnumValueDescriptorProto.Builder |
DescriptorProtos.EnumValueDescriptorProto.Builder.mergeFrom(Message other) |
DescriptorProtos.ServiceDescriptorProto.Builder |
DescriptorProtos.ServiceDescriptorProto.Builder.mergeFrom(Message other) |
DescriptorProtos.MethodDescriptorProto.Builder |
DescriptorProtos.MethodDescriptorProto.Builder.mergeFrom(Message other) |
DescriptorProtos.FileOptions.Builder |
DescriptorProtos.FileOptions.Builder.mergeFrom(Message other) |
DescriptorProtos.MessageOptions.Builder |
DescriptorProtos.MessageOptions.Builder.mergeFrom(Message other) |
DescriptorProtos.FieldOptions.Builder |
DescriptorProtos.FieldOptions.Builder.mergeFrom(Message other) |
DescriptorProtos.EnumOptions.Builder |
DescriptorProtos.EnumOptions.Builder.mergeFrom(Message other) |
DescriptorProtos.EnumValueOptions.Builder |
DescriptorProtos.EnumValueOptions.Builder.mergeFrom(Message other) |
DescriptorProtos.ServiceOptions.Builder |
DescriptorProtos.ServiceOptions.Builder.mergeFrom(Message other) |
DescriptorProtos.MethodOptions.Builder |
DescriptorProtos.MethodOptions.Builder.mergeFrom(Message other) |
DescriptorProtos.UninterpretedOption.NamePart.Builder |
DescriptorProtos.UninterpretedOption.NamePart.Builder.mergeFrom(Message other) |
DescriptorProtos.UninterpretedOption.Builder |
DescriptorProtos.UninterpretedOption.Builder.mergeFrom(Message other) |
DescriptorProtos.SourceCodeInfo.Location.Builder |
DescriptorProtos.SourceCodeInfo.Location.Builder.mergeFrom(Message other) |
DescriptorProtos.SourceCodeInfo.Builder |
DescriptorProtos.SourceCodeInfo.Builder.mergeFrom(Message other) |
ListValue.Builder |
ListValue.Builder.mergeFrom(Message other) |
BytesValue.Builder |
BytesValue.Builder.mergeFrom(Message other) |
Type.Builder |
Type.Builder.mergeFrom(Message other) |
Method.Builder |
Method.Builder.mergeFrom(Message other) |
EnumValue.Builder |
EnumValue.Builder.mergeFrom(Message other) |
FloatValue.Builder |
FloatValue.Builder.mergeFrom(Message other) |
DoubleValue.Builder |
DoubleValue.Builder.mergeFrom(Message other) |
Option.Builder |
Option.Builder.mergeFrom(Message other) |
DynamicMessage.Builder |
DynamicMessage.Builder.mergeFrom(Message other) |
Any.Builder |
Any.Builder.mergeFrom(Message other) |
static DynamicMessage.Builder |
DynamicMessage.newBuilder(Message prototype)
Construct a
Message.Builder for a message of the same type as
prototype , and initialize it with prototype 's contents. |
static <ContainingType extends Message,Type> |
GeneratedMessage.newFileScopedGeneratedExtension(Class singularType,
Message defaultInstance)
For use by generated code only.
|
static <ContainingType extends Message,Type> |
GeneratedMessage.newFileScopedGeneratedExtension(Class singularType,
Message defaultInstance,
String descriptorOuterClass,
String extensionName)
Used in proto1 generated code only.
|
static <ContainingType extends Message,Type> |
GeneratedMessage.newMessageScopedGeneratedExtension(Message scope,
int descriptorIndex,
Class singularType,
Message defaultInstance)
For use by generated code only.
|
static <ContainingType extends Message,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.
|
Modifier and Type | Method and 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.
|
static <Type extends Message> |
RpcUtil.specializeCallback(RpcCallback<Message> originalCallback)
Take an
RpcCallback<Message> and convert it to an
RpcCallback accepting a specific message type. |
Copyright © 2008–2015 Google. All rights reserved.