Package com.google.protobuf
Class Descriptors.MethodDescriptor
- java.lang.Object
-
- com.google.protobuf.Descriptors.GenericDescriptor
-
- com.google.protobuf.Descriptors.MethodDescriptor
-
- Enclosing class:
- Descriptors
public static final class Descriptors.MethodDescriptor extends Descriptors.GenericDescriptor
Describes one method within a service type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptors.FileDescriptorgetFile()Get theDescriptors.FileDescriptorcontaining this descriptor.java.lang.StringgetFullName()Get the method's fully-qualified name.intgetIndex()Get the index of this descriptor within its parent.Descriptors.DescriptorgetInputType()Get the method's input type.java.lang.StringgetName()Get the method's unqualified name.DescriptorProtos.MethodOptionsgetOptions()Get theMethodOptions, defined indescriptor.proto.Descriptors.DescriptorgetOutputType()Get the method's output type.Descriptors.ServiceDescriptorgetService()Get the method's service type.booleanisClientStreaming()Get whether or not the inputs are streaming.booleanisServerStreaming()Get whether or not the outputs are streaming.DescriptorProtos.MethodDescriptorPrototoProto()Convert the descriptor to its protocol message representation.
-
-
-
Method Detail
-
getIndex
public int getIndex()
Get the index of this descriptor within its parent. * @see Descriptors.Descriptor#getIndex()
-
toProto
public DescriptorProtos.MethodDescriptorProto toProto()
Convert the descriptor to its protocol message representation.- Specified by:
toProtoin classDescriptors.GenericDescriptor
-
getName
public java.lang.String getName()
Get the method's unqualified name.- Specified by:
getNamein classDescriptors.GenericDescriptor
-
getFullName
public java.lang.String getFullName()
Get the method's fully-qualified name.- Specified by:
getFullNamein classDescriptors.GenericDescriptor- See Also:
Descriptors.Descriptor.getFullName()
-
getFile
public Descriptors.FileDescriptor getFile()
Get theDescriptors.FileDescriptorcontaining this descriptor.- Specified by:
getFilein classDescriptors.GenericDescriptor
-
getService
public Descriptors.ServiceDescriptor getService()
Get the method's service type.
-
getInputType
public Descriptors.Descriptor getInputType()
Get the method's input type.
-
getOutputType
public Descriptors.Descriptor 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
public DescriptorProtos.MethodOptions getOptions()
Get theMethodOptions, defined indescriptor.proto.
-
-