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 |
DynamicMessage
An implementation of
Message that can represent arbitrary types,
given a Descriptors.Descriptor . |
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.
|
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 |
Service.getRequestPrototype(Descriptors.MethodDescriptor method)
callMethod() requires that the request passed in is of a
particular subclass of Message . |
Message |
BlockingService.getRequestPrototype(Descriptors.MethodDescriptor method)
|
Message |
Service.getResponsePrototype(Descriptors.MethodDescriptor method)
Like
getRequestPrototype() , but gets a prototype of the response
message. |
Message |
BlockingService.getResponsePrototype(Descriptors.MethodDescriptor method)
|
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.
|
DynamicMessage.Builder |
DynamicMessage.Builder.mergeFrom(Message other) |
BuilderType |
AbstractMessage.Builder.mergeFrom(Message other) |
Message.Builder |
Message.Builder.mergeFrom(Message other)
Merge
other into the message being built. |
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-2014 Google. All Rights Reserved.