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
Type Description
Descriptors.FileDescriptor
Overrides

getFullName()

public String getFullName()

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

Returns
Type Description
String
Overrides

getIndex()

public int getIndex()

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

Returns
Type Description
int

getInputType()

public Descriptors.Descriptor getInputType()

Get the method's input type.

Returns
Type Description
Descriptors.Descriptor

getName()

public String getName()

Get the method's unqualified name.

Returns
Type Description
String
Overrides

getOptions()

public DescriptorProtos.MethodOptions getOptions()

Get the MethodOptions, defined in descriptor.proto.

Returns
Type Description
DescriptorProtos.MethodOptions

getOutputType()

public Descriptors.Descriptor getOutputType()

Get the method's output type.

Returns
Type Description
Descriptors.Descriptor

getService()

public Descriptors.ServiceDescriptor getService()

Get the method's service type.

Returns
Type Description
Descriptors.ServiceDescriptor

isClientStreaming()

public boolean isClientStreaming()

Get whether or not the inputs are streaming.

Returns
Type Description
boolean

isServerStreaming()

public boolean isServerStreaming()

Get whether or not the outputs are streaming.

Returns
Type Description
boolean

toProto()

public DescriptorProtos.MethodDescriptorProto toProto()

Convert the descriptor to its protocol message representation.

Returns
Type Description
DescriptorProtos.MethodDescriptorProto
Overrides