Package com.google.protobuf
Class Method
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Method,Method.Builder>
-
- com.google.protobuf.Method
-
- All Implemented Interfaces:
MessageLite,MessageLiteOrBuilder,MethodOrBuilder
public final class Method extends GeneratedMessageLite<Method,Method.Builder> implements MethodOrBuilder
Method represents a method of an API interface.
Protobuf typegoogle.protobuf.Method
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMethod.BuilderMethod represents a method of an API interface.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static intNAME_FIELD_NUMBERstatic intOPTIONS_FIELD_NUMBERstatic intREQUEST_STREAMING_FIELD_NUMBERstatic intREQUEST_TYPE_URL_FIELD_NUMBERstatic intRESPONSE_STREAMING_FIELD_NUMBERstatic intRESPONSE_TYPE_URL_FIELD_NUMBERstatic intSYNTAX_FIELD_NUMBER-
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.static MethodgetDefaultInstance()StringgetName()The simple name of this method.ByteStringgetNameBytes()The simple name of this method.OptiongetOptions(int index)Any metadata attached to the method.intgetOptionsCount()Any metadata attached to the method.List<Option>getOptionsList()Any metadata attached to the method.OptionOrBuildergetOptionsOrBuilder(int index)Any metadata attached to the method.List<? extends OptionOrBuilder>getOptionsOrBuilderList()Any metadata attached to the method.booleangetRequestStreaming()If true, the request is streamed.StringgetRequestTypeUrl()A URL of the input message type.ByteStringgetRequestTypeUrlBytes()A URL of the input message type.booleangetResponseStreaming()If true, the response is streamed.StringgetResponseTypeUrl()The URL of the output message type.ByteStringgetResponseTypeUrlBytes()The URL of the output message type.SyntaxgetSyntax()The source syntax of this method.intgetSyntaxValue()The source syntax of this method.static Method.BuildernewBuilder()static Method.BuildernewBuilder(Method prototype)static MethodparseDelimitedFrom(InputStream input)static MethodparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static MethodparseFrom(byte[] data)static MethodparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static MethodparseFrom(ByteString data)static MethodparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static MethodparseFrom(CodedInputStream input)static MethodparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static MethodparseFrom(InputStream input)static MethodparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static MethodparseFrom(ByteBuffer data)static MethodparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<Method>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_TYPE_URL_FIELD_NUMBER
public static final int REQUEST_TYPE_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_STREAMING_FIELD_NUMBER
public static final int REQUEST_STREAMING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_TYPE_URL_FIELD_NUMBER
public static final int RESPONSE_TYPE_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_STREAMING_FIELD_NUMBER
public static final int RESPONSE_STREAMING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNTAX_FIELD_NUMBER
public static final int SYNTAX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
The simple name of this method.
string name = 1;- Specified by:
getNamein interfaceMethodOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
The simple name of this method.
string name = 1;- Specified by:
getNameBytesin interfaceMethodOrBuilder- Returns:
- The bytes for name.
-
getRequestTypeUrl
public String getRequestTypeUrl()
A URL of the input message type.
string request_type_url = 2;- Specified by:
getRequestTypeUrlin interfaceMethodOrBuilder- Returns:
- The requestTypeUrl.
-
getRequestTypeUrlBytes
public ByteString getRequestTypeUrlBytes()
A URL of the input message type.
string request_type_url = 2;- Specified by:
getRequestTypeUrlBytesin interfaceMethodOrBuilder- Returns:
- The bytes for requestTypeUrl.
-
getRequestStreaming
public boolean getRequestStreaming()
If true, the request is streamed.
bool request_streaming = 3;- Specified by:
getRequestStreamingin interfaceMethodOrBuilder- Returns:
- The requestStreaming.
-
getResponseTypeUrl
public String getResponseTypeUrl()
The URL of the output message type.
string response_type_url = 4;- Specified by:
getResponseTypeUrlin interfaceMethodOrBuilder- Returns:
- The responseTypeUrl.
-
getResponseTypeUrlBytes
public ByteString getResponseTypeUrlBytes()
The URL of the output message type.
string response_type_url = 4;- Specified by:
getResponseTypeUrlBytesin interfaceMethodOrBuilder- Returns:
- The bytes for responseTypeUrl.
-
getResponseStreaming
public boolean getResponseStreaming()
If true, the response is streamed.
bool response_streaming = 5;- Specified by:
getResponseStreamingin interfaceMethodOrBuilder- Returns:
- The responseStreaming.
-
getOptionsList
public List<Option> getOptionsList()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;- Specified by:
getOptionsListin interfaceMethodOrBuilder
-
getOptionsOrBuilderList
public List<? extends OptionOrBuilder> getOptionsOrBuilderList()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
-
getOptionsCount
public int getOptionsCount()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;- Specified by:
getOptionsCountin interfaceMethodOrBuilder
-
getOptions
public Option getOptions(int index)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;- Specified by:
getOptionsin interfaceMethodOrBuilder
-
getOptionsOrBuilder
public OptionOrBuilder getOptionsOrBuilder(int index)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
-
getSyntaxValue
public int getSyntaxValue()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;- Specified by:
getSyntaxValuein interfaceMethodOrBuilder- Returns:
- The enum numeric value on the wire for syntax.
-
getSyntax
public Syntax getSyntax()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;- Specified by:
getSyntaxin interfaceMethodOrBuilder- Returns:
- The syntax.
-
parseFrom
public static Method parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Method parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Method parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Method parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Method parseFrom(CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Method parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilder
public static Method.Builder newBuilder()
-
newBuilder
public static Method.Builder newBuilder(Method prototype)
-
dynamicMethod
protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
Description copied from class:GeneratedMessageLiteA method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.NEW_INSTANCEreturns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE.IS_INITIALIZEDreturnsnullfor false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZEDreturns the memoizedisInitializedbyte value.SET_MEMOIZED_IS_INITIALIZEDsets the memoizedisInitializedbyte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDERreturns aBuilderTypeinstance.
For use by generated code only.
- Specified by:
dynamicMethodin classGeneratedMessageLite<Method,Method.Builder>
-
getDefaultInstance
public static Method getDefaultInstance()
-
-