public static final class Descriptors.MethodDescriptor extends Descriptors.GenericDescriptor
Modifier and Type | Method and Description |
---|---|
Descriptors.FileDescriptor |
getFile()
Get the
Descriptors.FileDescriptor containing this descriptor. |
java.lang.String |
getFullName()
Get the method's fully-qualified name.
|
int |
getIndex()
Get the index of this descriptor within its parent.
|
Descriptors.Descriptor |
getInputType()
Get the method's input type.
|
java.lang.String |
getName()
Get the method's unqualified name.
|
DescriptorProtos.MethodOptions |
getOptions()
Get the
MethodOptions , defined in descriptor.proto . |
Descriptors.Descriptor |
getOutputType()
Get the method's output type.
|
Descriptors.ServiceDescriptor |
getService()
Get the method's service type.
|
boolean |
isClientStreaming()
Get whether or not the inputs are streaming.
|
boolean |
isServerStreaming()
Get whether or not the outputs are streaming.
|
DescriptorProtos.MethodDescriptorProto |
toProto()
Convert the descriptor to its protocol message representation.
|
public int getIndex()
public DescriptorProtos.MethodDescriptorProto toProto()
toProto
in class Descriptors.GenericDescriptor
public java.lang.String getName()
getName
in class Descriptors.GenericDescriptor
public java.lang.String getFullName()
getFullName
in class Descriptors.GenericDescriptor
Descriptors.Descriptor.getFullName()
public Descriptors.FileDescriptor getFile()
Descriptors.FileDescriptor
containing this descriptor.getFile
in class Descriptors.GenericDescriptor
public Descriptors.ServiceDescriptor getService()
public Descriptors.Descriptor getInputType()
public Descriptors.Descriptor getOutputType()
public boolean isClientStreaming()
public boolean isServerStreaming()
public DescriptorProtos.MethodOptions getOptions()
MethodOptions
, defined in descriptor.proto
.