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