public final class Method extends GeneratedMessage implements MethodOrBuilder
google.protobuf.Method
Method represents a method of an api.
Modifier and Type | Class and Description |
---|---|
static class |
Method.Builder
Protobuf type
google.protobuf.Method |
GeneratedMessage.BuilderParent, GeneratedMessage.ExtendableBuilder<MessageType extends GeneratedMessage.ExtendableMessage,BuilderType extends GeneratedMessage.ExtendableBuilder>, GeneratedMessage.ExtendableMessage<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.FieldAccessorTable, GeneratedMessage.GeneratedExtension<ContainingType extends Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
NAME_FIELD_NUMBER |
static int |
OPTIONS_FIELD_NUMBER |
static Parser<Method> |
PARSER |
static int |
REQUEST_STREAMING_FIELD_NUMBER |
static int |
REQUEST_TYPE_URL_FIELD_NUMBER |
static int |
RESPONSE_STREAMING_FIELD_NUMBER |
static int |
RESPONSE_TYPE_URL_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
static Method |
getDefaultInstance() |
Method |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
String |
getName()
optional string name = 1; |
ByteString |
getNameBytes()
optional string name = 1; |
Option |
getOptions(int index)
repeated .google.protobuf.Option options = 6; |
int |
getOptionsCount()
repeated .google.protobuf.Option options = 6; |
List<Option> |
getOptionsList()
repeated .google.protobuf.Option options = 6; |
OptionOrBuilder |
getOptionsOrBuilder(int index)
repeated .google.protobuf.Option options = 6; |
List<? extends OptionOrBuilder> |
getOptionsOrBuilderList()
repeated .google.protobuf.Option options = 6; |
Parser<Method> |
getParserForType()
Gets the parser for a message of the same type as this message.
|
boolean |
getRequestStreaming()
optional bool request_streaming = 3; |
String |
getRequestTypeUrl()
optional string request_type_url = 2; |
ByteString |
getRequestTypeUrlBytes()
optional string request_type_url = 2; |
boolean |
getResponseStreaming()
optional bool response_streaming = 5; |
String |
getResponseTypeUrl()
optional string response_type_url = 4; |
ByteString |
getResponseTypeUrlBytes()
optional string response_type_url = 4; |
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
UnknownFieldSet |
getUnknownFields()
Get the
UnknownFieldSet for this message. |
protected GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type.
|
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded
messages are set, false otherwise.
|
static Method.Builder |
newBuilder() |
static Method.Builder |
newBuilder(Method prototype) |
Method.Builder |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
protected Method.Builder |
newBuilderForType(GeneratedMessage.BuilderParent parent) |
static Method |
parseDelimitedFrom(InputStream input) |
static Method |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Method |
parseFrom(byte[] data) |
static Method |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Method |
parseFrom(ByteString data) |
static Method |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Method |
parseFrom(CodedInputStream input) |
static Method |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Method |
parseFrom(InputStream input) |
static Method |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
Method.Builder |
toBuilder()
Constructs a builder initialized with the current message.
|
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output . |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField, writeReplace
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int REQUEST_TYPE_URL_FIELD_NUMBER
public static final int REQUEST_STREAMING_FIELD_NUMBER
public static final int RESPONSE_TYPE_URL_FIELD_NUMBER
public static final int RESPONSE_STREAMING_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
MessageOrBuilder
UnknownFieldSet
for this message.getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessage
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage
internalGetFieldAccessorTable
in class GeneratedMessage
public String getName()
optional string name = 1;
The simple name of this method.
getName
in interface MethodOrBuilder
public ByteString getNameBytes()
optional string name = 1;
The simple name of this method.
getNameBytes
in interface MethodOrBuilder
public String getRequestTypeUrl()
optional string request_type_url = 2;
A URL of the input message type.
getRequestTypeUrl
in interface MethodOrBuilder
public ByteString getRequestTypeUrlBytes()
optional string request_type_url = 2;
A URL of the input message type.
getRequestTypeUrlBytes
in interface MethodOrBuilder
public boolean getRequestStreaming()
optional bool request_streaming = 3;
If true, the request is streamed.
getRequestStreaming
in interface MethodOrBuilder
public String getResponseTypeUrl()
optional string response_type_url = 4;
The URL of the output message type.
getResponseTypeUrl
in interface MethodOrBuilder
public ByteString getResponseTypeUrlBytes()
optional string response_type_url = 4;
The URL of the output message type.
getResponseTypeUrlBytes
in interface MethodOrBuilder
public boolean getResponseStreaming()
optional bool response_streaming = 5;
If true, the response is streamed.
getResponseStreaming
in interface MethodOrBuilder
public List<Option> getOptionsList()
repeated .google.protobuf.Option options = 6;
Any metadata attached to the method.
getOptionsList
in interface MethodOrBuilder
public List<? extends OptionOrBuilder> getOptionsOrBuilderList()
repeated .google.protobuf.Option options = 6;
Any metadata attached to the method.
getOptionsOrBuilderList
in interface MethodOrBuilder
public int getOptionsCount()
repeated .google.protobuf.Option options = 6;
Any metadata attached to the method.
getOptionsCount
in interface MethodOrBuilder
public Option getOptions(int index)
repeated .google.protobuf.Option options = 6;
Any metadata attached to the method.
getOptions
in interface MethodOrBuilder
public OptionOrBuilder getOptionsOrBuilder(int index)
repeated .google.protobuf.Option options = 6;
Any metadata attached to the method.
getOptionsOrBuilder
in interface MethodOrBuilder
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessage
public void writeTo(CodedOutputStream output) throws IOException
MessageLite
output
. This does not
flush or close the stream.writeTo
in interface MessageLite
writeTo
in class GeneratedMessage
IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessage
public static Method parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Method parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Method parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Method parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Method parseFrom(InputStream input) throws IOException
IOException
public static Method parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Method parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Method parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Method parseFrom(CodedInputStream input) throws IOException
IOException
public static Method parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Method.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Method.Builder newBuilder()
public static Method.Builder newBuilder(Method prototype)
public Method.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Method.Builder newBuilderForType(GeneratedMessage.BuilderParent parent)
newBuilderForType
in class GeneratedMessage
public static Method getDefaultInstance()
public Parser<Method> getParserForType()
MessageLite
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessage
public Method getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance()
method of generated message classes in that
this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific
class. They return the same thing.getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2008–2015 Google. All rights reserved.