Package com.google.protobuf
Class DescriptorProtos.MethodDescriptorProto
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<DescriptorProtos.MethodDescriptorProto,DescriptorProtos.MethodDescriptorProto.Builder>
com.google.protobuf.DescriptorProtos.MethodDescriptorProto
- All Implemented Interfaces:
DescriptorProtos.MethodDescriptorProtoOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.MethodDescriptorProto
extends com.google.protobuf.GeneratedMessageLite<DescriptorProtos.MethodDescriptorProto,DescriptorProtos.MethodDescriptorProto.Builder>
implements DescriptorProtos.MethodDescriptorProtoOrBuilder
Describes a method of a service.Protobuf type
google.protobuf.MethodDescriptorProto-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes a method of a service.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) booleanIdentifies if client streams multiple client messagesInput and output type names.com.google.protobuf.ByteStringInput and output type names.getName()optional string name = 1 [json_name = "name"];com.google.protobuf.ByteStringoptional string name = 1 [json_name = "name"];optional .google.protobuf.MethodOptions options = 4 [json_name = "options"];optional string output_type = 3 [json_name = "outputType"];com.google.protobuf.ByteStringoptional string output_type = 3 [json_name = "outputType"];booleanIdentifies if server streams multiple server messagesbooleanIdentifies if client streams multiple client messagesbooleanInput and output type names.booleanhasName()optional string name = 1 [json_name = "name"];booleanoptional .google.protobuf.MethodOptions options = 4 [json_name = "options"];booleanoptional string output_type = 3 [json_name = "outputType"];booleanIdentifies if server streams multiple server messagesnewBuilder(DescriptorProtos.MethodDescriptorProto prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DescriptorProtos.MethodDescriptorProto>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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
INPUT_TYPE_FIELD_NUMBER
public static final int INPUT_TYPE_FIELD_NUMBER- See Also:
-
OUTPUT_TYPE_FIELD_NUMBER
public static final int OUTPUT_TYPE_FIELD_NUMBER- See Also:
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER- See Also:
-
CLIENT_STREAMING_FIELD_NUMBER
public static final int CLIENT_STREAMING_FIELD_NUMBER- See Also:
-
SERVER_STREAMING_FIELD_NUMBER
public static final int SERVER_STREAMING_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasName
public boolean hasName()optional string name = 1 [json_name = "name"];- Specified by:
hasNamein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
optional string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()optional string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
hasInputType
public boolean hasInputType()Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2 [json_name = "inputType"];- Specified by:
hasInputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the inputType field is set.
-
getInputType
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2 [json_name = "inputType"];- Specified by:
getInputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The inputType.
-
getInputTypeBytes
public com.google.protobuf.ByteString getInputTypeBytes()Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2 [json_name = "inputType"];- Specified by:
getInputTypeBytesin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The bytes for inputType.
-
hasOutputType
public boolean hasOutputType()optional string output_type = 3 [json_name = "outputType"];- Specified by:
hasOutputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the outputType field is set.
-
getOutputType
optional string output_type = 3 [json_name = "outputType"];- Specified by:
getOutputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The outputType.
-
getOutputTypeBytes
public com.google.protobuf.ByteString getOutputTypeBytes()optional string output_type = 3 [json_name = "outputType"];- Specified by:
getOutputTypeBytesin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The bytes for outputType.
-
hasOptions
public boolean hasOptions()optional .google.protobuf.MethodOptions options = 4 [json_name = "options"];- Specified by:
hasOptionsin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
optional .google.protobuf.MethodOptions options = 4 [json_name = "options"];- Specified by:
getOptionsin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The options.
-
hasClientStreaming
public boolean hasClientStreaming()Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false, json_name = "clientStreaming"];- Specified by:
hasClientStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the clientStreaming field is set.
-
getClientStreaming
public boolean getClientStreaming()Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false, json_name = "clientStreaming"];- Specified by:
getClientStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The clientStreaming.
-
hasServerStreaming
public boolean hasServerStreaming()Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false, json_name = "serverStreaming"];- Specified by:
hasServerStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the serverStreaming field is set.
-
getServerStreaming
public boolean getServerStreaming()Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false, json_name = "serverStreaming"];- Specified by:
getServerStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The serverStreaming.
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static DescriptorProtos.MethodDescriptorProto.Builder newBuilder(DescriptorProtos.MethodDescriptorProto prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<DescriptorProtos.MethodDescriptorProto,DescriptorProtos.MethodDescriptorProto.Builder>
-
getDefaultInstance
-
parser
-