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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Descriptors.FileDescriptorprivate final Stringprivate final intprivate Descriptors.Descriptorprivate Descriptors.Descriptorprivate final Descriptors.ServiceDescriptor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMethodDescriptor(DescriptorProtos.MethodDescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.ServiceDescriptor parent, int index) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidgetFile()Get theDescriptors.FileDescriptorcontaining this descriptor.Get the method's fully-qualified name.intgetIndex()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.booleanGet whether or not the inputs are streaming.booleanGet whether or not the outputs are streaming.private voidtoProto()Convert the descriptor to its protocol message representation.
-
Field Details
-
index
private final int index -
proto
-
fullName
-
file
-
service
-
inputType
-
outputType
-
-
Constructor Details
-
MethodDescriptor
private MethodDescriptor(DescriptorProtos.MethodDescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.ServiceDescriptor parent, int index) throws Descriptors.DescriptorValidationException
-
-
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:
toProtoin classDescriptors.GenericDescriptor
-
getName
Get the method's unqualified name.- Specified by:
getNamein classDescriptors.GenericDescriptor
-
getFullName
Get the method's fully-qualified name.- Specified by:
getFullNamein classDescriptors.GenericDescriptor- See Also:
-
getFile
Get theDescriptors.FileDescriptorcontaining this descriptor.- Specified by:
getFilein 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. -
crossLink
-
setProto
-