public static final class Descriptors.ServiceDescriptor extends Descriptors.GenericDescriptor
| Modifier and Type | Method and Description |
|---|---|
Descriptors |
findMethodByName(String
Find a method by name.
|
Descriptors |
getFile()
Get the
Descriptors.FileDescriptor containing this descriptor.
|
String |
getFullName()
Get the type's fully-qualified name.
|
int |
getIndex()
Get the index of this descriptor within its parent.
|
List |
getMethods()
Get a list of methods for this service.
|
String |
getName()
Get the type's unqualified name.
|
DescriptorProtos |
getOptions()
Get the
ServiceOptions, defined in
descriptor.proto.
|
DescriptorProtos |
toProto()
Convert the descriptor to its protocol message representation.
|
public int getIndex()
public DescriptorProtos.ServiceDescriptorProto toProto()
public StringgetName()
public StringgetFullName()
getFullName in class
Descriptors.GenericDescriptor
Descriptors.Descriptor.getFullName()
public Descriptors.FileDescriptor getFile()
Descriptors.FileDescriptor containing this descriptor.
public DescriptorProtos.ServiceOptions getOptions()
ServiceOptions, defined in
descriptor.proto.
public List<Descriptors .MethodDescriptor > getMethods()
public Descriptors.MethodDescriptor findMethodByName(String name)
name - The unqualified name of the method (e.g. "Foo").
null if not found.