Package com.google.protobuf
Class Descriptors.ServiceDescriptor
java.lang.Object
com.google.protobuf.Descriptors.GenericDescriptor
com.google.protobuf.Descriptors.ServiceDescriptor
- Enclosing class:
- Descriptors
Describes a service type.
-
Method Summary
Modifier and TypeMethodDescriptionfindMethodByName(String name) Find a method by name.getFile()Get theDescriptors.FileDescriptorcontaining this descriptor.Get the type's fully-qualified name.intgetIndex()Get the index of this descriptor within its parent.Get a list of methods for this service.getName()Get the type's unqualified name.Get theServiceOptions, defined indescriptor.proto.toProto()Convert the descriptor to its protocol message representation.
-
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 type's unqualified name.- Specified by:
getNamein classDescriptors.GenericDescriptor
-
getFullName
Get the type's fully-qualified name.- Specified by:
getFullNamein classDescriptors.GenericDescriptor- See Also:
-
getFile
Get theDescriptors.FileDescriptorcontaining this descriptor.- Specified by:
getFilein classDescriptors.GenericDescriptor
-
getOptions
Get theServiceOptions, defined indescriptor.proto. -
getMethods
Get a list of methods for this service. -
findMethodByName
Find a method by name.- Parameters:
name- The unqualified name of the method (e.g. "Foo").- Returns:
- the method's descriptor, or
nullif not found.
-