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 DescriptorProtos.MethodOptionsprivate Descriptors.Descriptorprivate final Descriptors.ServiceDescriptorFields inherited from class com.google.protobuf.Descriptors.GenericDescriptor
features, parent -
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 voidSee.invalid reference
FileDescriptor#resolveAllFeaturesprivate voidtoProto()Convert the descriptor to its protocol message representation.Methods inherited from class com.google.protobuf.Descriptors.GenericDescriptor
getFeatures, hasInferredLegacyProtoFeatures, inferLegacyProtoFeatures, resolveFeatures, validateFeatures
-
Field Details
-
index
private final int index -
proto
-
options
-
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. -
resolveAllFeatures
See.invalid reference
FileDescriptor#resolveAllFeatures -
crossLink
-
setProto
private void setProto(DescriptorProtos.MethodDescriptorProto proto) throws Descriptors.DescriptorValidationException
-