Package com.google.protobuf
Class Descriptors.MethodDescriptor
java.lang.Object
com.google.protobuf.Descriptors.GenericDescriptor
com.google.protobuf.Descriptors.MethodDescriptor
- Enclosing class:
Descriptors
Describes one method within a service type.
-
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Get theDescriptors.FileDescriptor
containing this descriptor.Get the method's fully-qualified name.int
getIndex()
Get the index of this descriptor within its parent.Get the method's input type.getName()
Get the method's unqualified name.Get theMethodOptions
, defined indescriptor.proto
.Get the method's output type.Get the method's service type.boolean
Get whether or not the inputs are streaming.boolean
Get whether or not the outputs are streaming.toProto()
Convert the descriptor to its protocol message representation.
-
Method Details
-
getIndex
public int getIndex()Get the index of this descriptor within its parent. * @see Descriptors.Descriptor#getIndex() -
toProto
Convert the descriptor to its protocol message representation.- Specified by:
toProto
in classDescriptors.GenericDescriptor
-
getName
Get the method's unqualified name.- Specified by:
getName
in classDescriptors.GenericDescriptor
-
getFullName
Get the method's fully-qualified name.- Specified by:
getFullName
in classDescriptors.GenericDescriptor
- See Also:
-
getFile
Get theDescriptors.FileDescriptor
containing this descriptor.- Specified by:
getFile
in classDescriptors.GenericDescriptor
-
getService
Get the method's service type. -
getInputType
Get the method's input type. -
getOutputType
Get the method's output type. -
isClientStreaming
public boolean isClientStreaming()Get whether or not the inputs are streaming. -
isServerStreaming
public boolean isServerStreaming()Get whether or not the outputs are streaming. -
getOptions
Get theMethodOptions
, defined indescriptor.proto
.
-