Class Descriptors.MethodDescriptor (3.19.4)

public static final class Descriptors.MethodDescriptor extends Descriptors.GenericDescriptor

Describes one method within a service type.

Inheritance

java.lang.Object > Descriptors.GenericDescriptor > Descriptors.MethodDescriptor

Methods

getFile()

public Descriptors.FileDescriptor getFile()

Get the FileDescriptor containing this descriptor.

Returns
TypeDescription
Descriptors.FileDescriptor
Overrides

getFullName()

public String getFullName()

Get the method's fully-qualified name. See Also: Descriptors.Descriptor#getFullName()

Returns
TypeDescription
String
Overrides

getIndex()

public int getIndex()

Get the index of this descriptor within its parent. * @see Descriptors.Descriptor#getIndex()

Returns
TypeDescription
int

getInputType()

public Descriptors.Descriptor getInputType()

Get the method's input type.

Returns
TypeDescription
Descriptors.Descriptor

getName()

public String getName()

Get the method's unqualified name.

Returns
TypeDescription
String
Overrides

getOptions()

public DescriptorProtos.MethodOptions getOptions()

Get the MethodOptions, defined in descriptor.proto.

Returns
TypeDescription
DescriptorProtos.MethodOptions

getOutputType()

public Descriptors.Descriptor getOutputType()

Get the method's output type.

Returns
TypeDescription
Descriptors.Descriptor

getService()

public Descriptors.ServiceDescriptor getService()

Get the method's service type.

Returns
TypeDescription
Descriptors.ServiceDescriptor

isClientStreaming()

public boolean isClientStreaming()

Get whether or not the inputs are streaming.

Returns
TypeDescription
boolean

isServerStreaming()

public boolean isServerStreaming()

Get whether or not the outputs are streaming.

Returns
TypeDescription
boolean

toProto()

public DescriptorProtos.MethodDescriptorProto toProto()

Convert the descriptor to its protocol message representation.

Returns
TypeDescription
DescriptorProtos.MethodDescriptorProto
Overrides