Class Method
- All Implemented Interfaces:
MessageLite, MessageLiteOrBuilder, MethodOrBuilder
@Generated
public final class Method
extends GeneratedMessageLite<Method, Method.Builder>
implements MethodOrBuilder
Method represents a method of an API interface. New usages of this message as an alternative to MethodDescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.Protobuf type
google.protobuf.Method-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMethod represents a method of an API interface.Nested classes/interfaces inherited from class GeneratedMessageLite
GeneratedMessageLite.DefaultInstanceBasedParser<T>, GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType, BuilderType>, GeneratedMessageLite.ExtensionDescriptor, GeneratedMessageLite.GeneratedExtension<ContainingType, Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedFormNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Methodprivate Stringstatic final intprivate Stringstatic final intprivate Internal.ProtobufList<Option> static final intstatic final intstatic final intprivate booleanprivate Stringstatic final intstatic final intprivate booleanprivate Stringprivate intstatic final intFields inherited from class GeneratedMessageLite
UNINITIALIZED_HASH_CODE, UNINITIALIZED_SERIALIZED_SIZE, unknownFieldsFields inherited from class AbstractMessageLite
memoizedHashCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAllOptions(Iterable<? extends Option> values) Any metadata attached to the method.private voidaddOptions(int index, Option value) Any metadata attached to the method.private voidaddOptions(Option value) Any metadata attached to the method.private voidThe source edition string, only valid when syntax is SYNTAX_EDITIONS.private voidThe simple name of this method.private voidAny metadata attached to the method.private voidIf true, the request is streamed.private voidA URL of the input message type.private voidIf true, the response is streamed.private voidThe URL of the output message type.private voidThe source syntax of this method.protected final ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.private voidstatic MethodDeprecated.google.protobuf.Method.edition is deprecated.Deprecated.google.protobuf.Method.edition is deprecated.getName()The simple name of this method.The simple name of this method.getOptions(int index) Any metadata attached to the method.intAny metadata attached to the method.Any metadata attached to the method.getOptionsOrBuilder(int index) Any metadata attached to the method.List<? extends OptionOrBuilder> Any metadata attached to the method.booleanIf true, the request is streamed.A URL of the input message type.A URL of the input message type.booleanIf true, the response is streamed.The URL of the output message type.The URL of the output message type.Deprecated.google.protobuf.Method.syntax is deprecated.intDeprecated.google.protobuf.Method.syntax is deprecated.static Method.Builderstatic 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) parser()private voidremoveOptions(int index) Any metadata attached to the method.private voidsetEdition(String value) The source edition string, only valid when syntax is SYNTAX_EDITIONS.private voidsetEditionBytes(ByteString value) The source edition string, only valid when syntax is SYNTAX_EDITIONS.private voidThe simple name of this method.private voidsetNameBytes(ByteString value) The simple name of this method.private voidsetOptions(int index, Option value) Any metadata attached to the method.private voidsetRequestStreaming(boolean value) If true, the request is streamed.private voidsetRequestTypeUrl(String value) A URL of the input message type.private voidsetRequestTypeUrlBytes(ByteString value) A URL of the input message type.private voidsetResponseStreaming(boolean value) If true, the response is streamed.private voidsetResponseTypeUrl(String value) The URL of the output message type.private voidThe URL of the output message type.private voidThe source syntax of this method.private voidsetSyntaxValue(int value) The source syntax of this method.Methods inherited from class GeneratedMessageLite
buildMessageInfo, clearMemoizedHashCode, clearMemoizedSerializedSize, computeHashCode, createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstance, getDefaultInstanceForType, getMemoizedHashCode, getMemoizedSerializedSize, getMethodOrDie, getParserForType, getSerializedSize, getSerializedSize, hashCode, hashCodeIsNotMemoized, invokeOrDie, isInitialized, isMutable, makeImmutable, markImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newMutableInstance, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, setMemoizedHashCode, setMemoizedSerializedSize, toBuilder, toString, writeToMethods inherited from class AbstractMessageLite
addAll, checkByteStringIsUtf8, newUninitializedMessageException, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
name_
-
REQUEST_TYPE_URL_FIELD_NUMBER
public static final int REQUEST_TYPE_URL_FIELD_NUMBER- See Also:
-
requestTypeUrl_
-
REQUEST_STREAMING_FIELD_NUMBER
public static final int REQUEST_STREAMING_FIELD_NUMBER- See Also:
-
requestStreaming_
private boolean requestStreaming_ -
RESPONSE_TYPE_URL_FIELD_NUMBER
public static final int RESPONSE_TYPE_URL_FIELD_NUMBER- See Also:
-
responseTypeUrl_
-
RESPONSE_STREAMING_FIELD_NUMBER
public static final int RESPONSE_STREAMING_FIELD_NUMBER- See Also:
-
responseStreaming_
private boolean responseStreaming_ -
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER- See Also:
-
options_
-
SYNTAX_FIELD_NUMBER
public static final int SYNTAX_FIELD_NUMBER- See Also:
-
syntax_
private int syntax_ -
EDITION_FIELD_NUMBER
public static final int EDITION_FIELD_NUMBER- See Also:
-
edition_
-
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
Method
private Method()
-
-
Method Details
-
getName
The simple name of this method.
string name = 1;- Specified by:
getNamein interfaceMethodOrBuilder- Returns:
- The name.
-
getNameBytes
The simple name of this method.
string name = 1;- Specified by:
getNameBytesin interfaceMethodOrBuilder- Returns:
- The bytes for name.
-
setName
The simple name of this method.
string name = 1;- Parameters:
value- The name to set.
-
clearName
private void clearName()The simple name of this method.
string name = 1; -
setNameBytes
The simple name of this method.
string name = 1;- Parameters:
value- The bytes for name to set.
-
getRequestTypeUrl
A URL of the input message type.
string request_type_url = 2;- Specified by:
getRequestTypeUrlin interfaceMethodOrBuilder- Returns:
- The requestTypeUrl.
-
getRequestTypeUrlBytes
A URL of the input message type.
string request_type_url = 2;- Specified by:
getRequestTypeUrlBytesin interfaceMethodOrBuilder- Returns:
- The bytes for requestTypeUrl.
-
setRequestTypeUrl
A URL of the input message type.
string request_type_url = 2;- Parameters:
value- The requestTypeUrl to set.
-
clearRequestTypeUrl
private void clearRequestTypeUrl()A URL of the input message type.
string request_type_url = 2; -
setRequestTypeUrlBytes
A URL of the input message type.
string request_type_url = 2;- Parameters:
value- The bytes for requestTypeUrl to set.
-
getRequestStreaming
public boolean getRequestStreaming()If true, the request is streamed.
bool request_streaming = 3;- Specified by:
getRequestStreamingin interfaceMethodOrBuilder- Returns:
- The requestStreaming.
-
setRequestStreaming
private void setRequestStreaming(boolean value) If true, the request is streamed.
bool request_streaming = 3;- Parameters:
value- The requestStreaming to set.
-
clearRequestStreaming
private void clearRequestStreaming()If true, the request is streamed.
bool request_streaming = 3; -
getResponseTypeUrl
The URL of the output message type.
string response_type_url = 4;- Specified by:
getResponseTypeUrlin interfaceMethodOrBuilder- Returns:
- The responseTypeUrl.
-
getResponseTypeUrlBytes
The URL of the output message type.
string response_type_url = 4;- Specified by:
getResponseTypeUrlBytesin interfaceMethodOrBuilder- Returns:
- The bytes for responseTypeUrl.
-
setResponseTypeUrl
The URL of the output message type.
string response_type_url = 4;- Parameters:
value- The responseTypeUrl to set.
-
clearResponseTypeUrl
private void clearResponseTypeUrl()The URL of the output message type.
string response_type_url = 4; -
setResponseTypeUrlBytes
The URL of the output message type.
string response_type_url = 4;- Parameters:
value- The bytes for responseTypeUrl to set.
-
getResponseStreaming
public boolean getResponseStreaming()If true, the response is streamed.
bool response_streaming = 5;- Specified by:
getResponseStreamingin interfaceMethodOrBuilder- Returns:
- The responseStreaming.
-
setResponseStreaming
private void setResponseStreaming(boolean value) If true, the response is streamed.
bool response_streaming = 5;- Parameters:
value- The responseStreaming to set.
-
clearResponseStreaming
private void clearResponseStreaming()If true, the response is streamed.
bool response_streaming = 5; -
getOptionsList
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;- Specified by:
getOptionsListin interfaceMethodOrBuilder
-
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
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;- Specified by:
getOptionsin interfaceMethodOrBuilder
-
getOptionsOrBuilder
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6; -
ensureOptionsIsMutable
private void ensureOptionsIsMutable() -
setOptions
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6; -
addOptions
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6; -
addOptions
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6; -
addAllOptions
-
clearOptions
private void clearOptions()Any metadata attached to the method.
repeated .google.protobuf.Option options = 6; -
removeOptions
private void removeOptions(int index) Any metadata attached to the method.
repeated .google.protobuf.Option options = 6; -
getSyntaxValue
Deprecated.google.protobuf.Method.syntax is deprecated. See google/protobuf/api.proto;l=134The source syntax of this method. This field should be ignored, instead the syntax should be inherited from Api. This is similar to Field and EnumValue.
.google.protobuf.Syntax syntax = 7 [deprecated = true];- Specified by:
getSyntaxValuein interfaceMethodOrBuilder- Returns:
- The enum numeric value on the wire for syntax.
-
getSyntax
Deprecated.google.protobuf.Method.syntax is deprecated. See google/protobuf/api.proto;l=134The source syntax of this method. This field should be ignored, instead the syntax should be inherited from Api. This is similar to Field and EnumValue.
.google.protobuf.Syntax syntax = 7 [deprecated = true];- Specified by:
getSyntaxin interfaceMethodOrBuilder- Returns:
- The syntax.
-
setSyntaxValue
private void setSyntaxValue(int value) The source syntax of this method. This field should be ignored, instead the syntax should be inherited from Api. This is similar to Field and EnumValue.
.google.protobuf.Syntax syntax = 7 [deprecated = true];- Parameters:
value- The enum numeric value on the wire for syntax to set.
-
setSyntax
The source syntax of this method. This field should be ignored, instead the syntax should be inherited from Api. This is similar to Field and EnumValue.
.google.protobuf.Syntax syntax = 7 [deprecated = true];- Parameters:
value- The syntax to set.
-
clearSyntax
private void clearSyntax()The source syntax of this method. This field should be ignored, instead the syntax should be inherited from Api. This is similar to Field and EnumValue.
.google.protobuf.Syntax syntax = 7 [deprecated = true]; -
getEdition
Deprecated.google.protobuf.Method.edition is deprecated. See google/protobuf/api.proto;l=140The source edition string, only valid when syntax is SYNTAX_EDITIONS. This field should be ignored, instead the edition should be inherited from Api. This is similar to Field and EnumValue.
string edition = 8 [deprecated = true];- Specified by:
getEditionin interfaceMethodOrBuilder- Returns:
- The edition.
-
getEditionBytes
Deprecated.google.protobuf.Method.edition is deprecated. See google/protobuf/api.proto;l=140The source edition string, only valid when syntax is SYNTAX_EDITIONS. This field should be ignored, instead the edition should be inherited from Api. This is similar to Field and EnumValue.
string edition = 8 [deprecated = true];- Specified by:
getEditionBytesin interfaceMethodOrBuilder- Returns:
- The bytes for edition.
-
setEdition
The source edition string, only valid when syntax is SYNTAX_EDITIONS. This field should be ignored, instead the edition should be inherited from Api. This is similar to Field and EnumValue.
string edition = 8 [deprecated = true];- Parameters:
value- The edition to set.
-
clearEdition
private void clearEdition()The source edition string, only valid when syntax is SYNTAX_EDITIONS. This field should be ignored, instead the edition should be inherited from Api. This is similar to Field and EnumValue.
string edition = 8 [deprecated = true]; -
setEditionBytes
The source edition string, only valid when syntax is SYNTAX_EDITIONS. This field should be ignored, instead the edition should be inherited from Api. This is similar to Field and EnumValue.
string edition = 8 [deprecated = true];- Parameters:
value- The bytes for edition to set.
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Method parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Method parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Method parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Method parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
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
-
parser
-