com.google.protobuf
Class Descriptors.ServiceDescriptor

java.lang.Object
  extended by com.google.protobuf.Descriptors.ServiceDescriptor
Enclosing class:
Descriptors

public static final class Descriptors.ServiceDescriptor
extends java.lang.Object

Describes a service type.


Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIndex

public int getIndex()
Get the index of this descriptor within its parent. * @see Descriptors.Descriptor#getIndex()


toProto

public DescriptorProtos.ServiceDescriptorProto toProto()
Convert the descriptor to its protocol message representation.


getName

public java.lang.String getName()
Get the type's unqualified name.


getFullName

public java.lang.String getFullName()
Get the type's fully-qualified name.

See Also:
Descriptor#getFullName()

getFile

public Descriptors.FileDescriptor getFile()
Get the Descriptors.FileDescriptor containing this descriptor.


getOptions

public DescriptorProtos.ServiceOptions getOptions()
Get the ServiceOptions, defined in descriptor.proto.


getMethods

public java.util.List<Descriptors.MethodDescriptor> getMethods()
Get a list of methods for this service.


findMethodByName

public Descriptors.MethodDescriptor findMethodByName(java.lang.String name)
Find a method by name.

Parameters:
name - The unqualified name of the method (e.g. "Foo").
Returns:
the method's decsriptor, or null if not found.


Copyright © 2008-2009 Google. All Rights Reserved.