Package com.google.protobuf
Class DescriptorProtos.MethodDescriptorProto
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.DescriptorProtos.MethodDescriptorProto
-
- All Implemented Interfaces:
DescriptorProtos.MethodDescriptorProtoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.MethodDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements DescriptorProtos.MethodDescriptorProtoOrBuilder
Describes a method of a service.
Protobuf typegoogle.protobuf.MethodDescriptorProto- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDescriptorProtos.MethodDescriptorProto.BuilderDescribes a method of a service.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCLIENT_STREAMING_FIELD_NUMBERstatic intINPUT_TYPE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intOPTIONS_FIELD_NUMBERstatic intOUTPUT_TYPE_FIELD_NUMBERstatic com.google.protobuf.Parser<DescriptorProtos.MethodDescriptorProto>PARSERDeprecated.static intSERVER_STREAMING_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetClientStreaming()Identifies if client streams multiple client messagesstatic DescriptorProtos.MethodDescriptorProtogetDefaultInstance()DescriptorProtos.MethodDescriptorProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetInputType()Input and output type names.com.google.protobuf.ByteStringgetInputTypeBytes()Input and output type names.java.lang.StringgetName()optional string name = 1;com.google.protobuf.ByteStringgetNameBytes()optional string name = 1;DescriptorProtos.MethodOptionsgetOptions()optional .google.protobuf.MethodOptions options = 4;DescriptorProtos.MethodOptionsOrBuildergetOptionsOrBuilder()optional .google.protobuf.MethodOptions options = 4;java.lang.StringgetOutputType()optional string output_type = 3;com.google.protobuf.ByteStringgetOutputTypeBytes()optional string output_type = 3;com.google.protobuf.Parser<DescriptorProtos.MethodDescriptorProto>getParserForType()intgetSerializedSize()booleangetServerStreaming()Identifies if server streams multiple server messagesbooleanhasClientStreaming()Identifies if client streams multiple client messagesinthashCode()booleanhasInputType()Input and output type names.booleanhasName()optional string name = 1;booleanhasOptions()optional .google.protobuf.MethodOptions options = 4;booleanhasOutputType()optional string output_type = 3;booleanhasServerStreaming()Identifies if server streams multiple server messagesprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DescriptorProtos.MethodDescriptorProto.BuildernewBuilder()static DescriptorProtos.MethodDescriptorProto.BuildernewBuilder(DescriptorProtos.MethodDescriptorProto prototype)DescriptorProtos.MethodDescriptorProto.BuildernewBuilderForType()protected DescriptorProtos.MethodDescriptorProto.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DescriptorProtos.MethodDescriptorProtoparseDelimitedFrom(java.io.InputStream input)static DescriptorProtos.MethodDescriptorProtoparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.MethodDescriptorProtoparseFrom(byte[] data)static DescriptorProtos.MethodDescriptorProtoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.MethodDescriptorProtoparseFrom(com.google.protobuf.ByteString data)static DescriptorProtos.MethodDescriptorProtoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.MethodDescriptorProtoparseFrom(com.google.protobuf.CodedInputStream input)static DescriptorProtos.MethodDescriptorProtoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.MethodDescriptorProtoparseFrom(java.io.InputStream input)static DescriptorProtos.MethodDescriptorProtoparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.MethodDescriptorProtoparseFrom(java.nio.ByteBuffer data)static DescriptorProtos.MethodDescriptorProtoparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DescriptorProtos.MethodDescriptorProto>parser()DescriptorProtos.MethodDescriptorProto.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
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
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INPUT_TYPE_FIELD_NUMBER
public static final int INPUT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_TYPE_FIELD_NUMBER
public static final int OUTPUT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLIENT_STREAMING_FIELD_NUMBER
public static final int CLIENT_STREAMING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVER_STREAMING_FIELD_NUMBER
public static final int SERVER_STREAMING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<DescriptorProtos.MethodDescriptorProto> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasName
public boolean hasName()
optional string name = 1;- Specified by:
hasNamein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1;- Specified by:
getNamein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
optional string name = 1;- 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;- Specified by:
hasInputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the inputType field is set.
-
getInputType
public java.lang.String 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;- 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;- Specified by:
getInputTypeBytesin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The bytes for inputType.
-
hasOutputType
public boolean hasOutputType()
optional string output_type = 3;- Specified by:
hasOutputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the outputType field is set.
-
getOutputType
public java.lang.String getOutputType()
optional string output_type = 3;- Specified by:
getOutputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The outputType.
-
getOutputTypeBytes
public com.google.protobuf.ByteString getOutputTypeBytes()
optional string output_type = 3;- Specified by:
getOutputTypeBytesin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The bytes for outputType.
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.MethodOptions options = 4;- Specified by:
hasOptionsin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.MethodOptions getOptions()
optional .google.protobuf.MethodOptions options = 4;- Specified by:
getOptionsin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The options.
-
getOptionsOrBuilder
public DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.MethodOptions options = 4;- Specified by:
getOptionsOrBuilderin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder
-
hasClientStreaming
public boolean hasClientStreaming()
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];- 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];- 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];- 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];- Specified by:
getServerStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The serverStreaming.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.MethodDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DescriptorProtos.MethodDescriptorProto.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DescriptorProtos.MethodDescriptorProto.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.MethodDescriptorProto.Builder newBuilder(DescriptorProtos.MethodDescriptorProto prototype)
-
toBuilder
public DescriptorProtos.MethodDescriptorProto.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DescriptorProtos.MethodDescriptorProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DescriptorProtos.MethodDescriptorProto getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DescriptorProtos.MethodDescriptorProto> parser()
-
getParserForType
public com.google.protobuf.Parser<DescriptorProtos.MethodDescriptorProto> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-