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
@Generated public final class Method extends GeneratedMessageLite<Method,Method.Builder> implements MethodOrBuilder
Protobuf typegoogle.protobuf.Method
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMethod.BuilderProtobuf typegoogle.protobuf.Method-
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 intEDITION_FIELD_NUMBERstatic 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 Deprecated Methods Modifier and Type Method Description protected java.lang.ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.static MethodgetDefaultInstance()java.lang.StringgetEdition()Deprecated.google.protobuf.Method.edition is deprecated.ByteStringgetEditionBytes()Deprecated.google.protobuf.Method.edition is deprecated.java.lang.StringgetName()string name = 1 [json_name = "name"];ByteStringgetNameBytes()string name = 1 [json_name = "name"];OptiongetOptions(int index)repeated .google.protobuf.Option options = 6 [json_name = "options"];intgetOptionsCount()repeated .google.protobuf.Option options = 6 [json_name = "options"];java.util.List<Option>getOptionsList()repeated .google.protobuf.Option options = 6 [json_name = "options"];OptionOrBuildergetOptionsOrBuilder(int index)repeated .google.protobuf.Option options = 6 [json_name = "options"];java.util.List<? extends OptionOrBuilder>getOptionsOrBuilderList()repeated .google.protobuf.Option options = 6 [json_name = "options"];booleangetRequestStreaming()bool request_streaming = 3 [json_name = "requestStreaming"];java.lang.StringgetRequestTypeUrl()string request_type_url = 2 [json_name = "requestTypeUrl"];ByteStringgetRequestTypeUrlBytes()string request_type_url = 2 [json_name = "requestTypeUrl"];booleangetResponseStreaming()bool response_streaming = 5 [json_name = "responseStreaming"];java.lang.StringgetResponseTypeUrl()string response_type_url = 4 [json_name = "responseTypeUrl"];ByteStringgetResponseTypeUrlBytes()string response_type_url = 4 [json_name = "responseTypeUrl"];SyntaxgetSyntax()Deprecated.google.protobuf.Method.syntax is deprecated.intgetSyntaxValue()Deprecated.google.protobuf.Method.syntax is deprecated.static Method.BuildernewBuilder()static Method.BuildernewBuilder(Method prototype)static MethodparseDelimitedFrom(java.io.InputStream input)static MethodparseDelimitedFrom(java.io.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(java.io.InputStream input)static MethodparseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static MethodparseFrom(java.nio.ByteBuffer data)static MethodparseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<Method>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, 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, 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
-
EDITION_FIELD_NUMBER
public static final int EDITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceMethodOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceMethodOrBuilder- Returns:
- The bytes for name.
-
getRequestTypeUrl
public java.lang.String getRequestTypeUrl()
string request_type_url = 2 [json_name = "requestTypeUrl"];- Specified by:
getRequestTypeUrlin interfaceMethodOrBuilder- Returns:
- The requestTypeUrl.
-
getRequestTypeUrlBytes
public ByteString getRequestTypeUrlBytes()
string request_type_url = 2 [json_name = "requestTypeUrl"];- Specified by:
getRequestTypeUrlBytesin interfaceMethodOrBuilder- Returns:
- The bytes for requestTypeUrl.
-
getRequestStreaming
public boolean getRequestStreaming()
bool request_streaming = 3 [json_name = "requestStreaming"];- Specified by:
getRequestStreamingin interfaceMethodOrBuilder- Returns:
- The requestStreaming.
-
getResponseTypeUrl
public java.lang.String getResponseTypeUrl()
string response_type_url = 4 [json_name = "responseTypeUrl"];- Specified by:
getResponseTypeUrlin interfaceMethodOrBuilder- Returns:
- The responseTypeUrl.
-
getResponseTypeUrlBytes
public ByteString getResponseTypeUrlBytes()
string response_type_url = 4 [json_name = "responseTypeUrl"];- Specified by:
getResponseTypeUrlBytesin interfaceMethodOrBuilder- Returns:
- The bytes for responseTypeUrl.
-
getResponseStreaming
public boolean getResponseStreaming()
bool response_streaming = 5 [json_name = "responseStreaming"];- Specified by:
getResponseStreamingin interfaceMethodOrBuilder- Returns:
- The responseStreaming.
-
getOptionsList
public java.util.List<Option> getOptionsList()
repeated .google.protobuf.Option options = 6 [json_name = "options"];- Specified by:
getOptionsListin interfaceMethodOrBuilder
-
getOptionsOrBuilderList
public java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
repeated .google.protobuf.Option options = 6 [json_name = "options"];
-
getOptionsCount
public int getOptionsCount()
repeated .google.protobuf.Option options = 6 [json_name = "options"];- Specified by:
getOptionsCountin interfaceMethodOrBuilder
-
getOptions
public Option getOptions(int index)
repeated .google.protobuf.Option options = 6 [json_name = "options"];- Specified by:
getOptionsin interfaceMethodOrBuilder
-
getOptionsOrBuilder
public OptionOrBuilder getOptionsOrBuilder(int index)
repeated .google.protobuf.Option options = 6 [json_name = "options"];
-
getSyntaxValue
@Deprecated public int getSyntaxValue()
Deprecated.google.protobuf.Method.syntax is deprecated. See google/protobuf/api.proto;l=0.google.protobuf.Syntax syntax = 7 [json_name = "syntax", deprecated = true];- Specified by:
getSyntaxValuein interfaceMethodOrBuilder- Returns:
- The enum numeric value on the wire for syntax.
-
getSyntax
@Deprecated public Syntax getSyntax()
Deprecated.google.protobuf.Method.syntax is deprecated. See google/protobuf/api.proto;l=0.google.protobuf.Syntax syntax = 7 [json_name = "syntax", deprecated = true];- Specified by:
getSyntaxin interfaceMethodOrBuilder- Returns:
- The syntax.
-
getEdition
@Deprecated public java.lang.String getEdition()
Deprecated.google.protobuf.Method.edition is deprecated. See google/protobuf/api.proto;l=0string edition = 8 [json_name = "edition", deprecated = true];- Specified by:
getEditionin interfaceMethodOrBuilder- Returns:
- The edition.
-
getEditionBytes
@Deprecated public ByteString getEditionBytes()
Deprecated.google.protobuf.Method.edition is deprecated. See google/protobuf/api.proto;l=0string edition = 8 [json_name = "edition", deprecated = true];- Specified by:
getEditionBytesin interfaceMethodOrBuilder- Returns:
- The bytes for edition.
-
parseFrom
public static Method parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Method parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Method parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Method parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Method parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Method parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static Method.Builder newBuilder()
-
newBuilder
public static Method.Builder newBuilder(Method prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.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()
-
-