class ServiceDescriptor
Defined at line 1614 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
Describes an RPC service. Use DescriptorPool to construct your own
descriptors.
Public Methods
void ServiceDescriptor (const ServiceDescriptor & )
Defined at line 1619 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
ServiceDescriptor & operator= (const ServiceDescriptor & )
Defined at line 1620 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
internal::DescriptorStringView name ()
The name of the service, not including its containing scope.
Defined at line 2612 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
internal::DescriptorStringView full_name ()
The fully-qualified name of the service, scope delimited by periods.
Defined at line 2612 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
int index ()
Index of this service within the file's services array.
Defined at line 2817 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
const FileDescriptor * file ()
The .proto file in which this service was defined. Never nullptr.
Defined at line 2613 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
const ServiceOptions & options ()
Get options for this service type. These are specified in the .proto file
by placing lines like "option foo = 1234;" in the service definition.
Allowed options are defined by ServiceOptions in descriptor.proto, and any
available extensions of that message.
Defined at line 2617 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
int method_count ()
The number of methods this service defines.
Defined at line 2614 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
const MethodDescriptor * method (int index)
Gets a MethodDescriptor by index, where 0
<
= index
<
method_count().
These are returned in the order they were defined in the .proto file.
Defined at line 2615 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
const MethodDescriptor * FindMethodByName (absl::string_view name)
Look up a MethodDescriptor by name.
void CopyTo (ServiceDescriptorProto * proto)
See Descriptor::CopyTo().
std::string DebugString ()
See Descriptor::DebugString().
std::string DebugStringWithOptions (const DebugStringOptions & options)
See Descriptor::DebugStringWithOptions().
bool GetSourceLocation (SourceLocation * out_location)
Updates |*out_location| to the source location of the complete
extent of this service declaration. Returns false and leaves
|*out_location| unchanged iff location information was not available.
Friends
class MethodDescriptor
class FileDescriptor
class DescriptorBuilder
class InternalFeatureHelper
class Formatter
class Printer
class Symbol
template <typename Sink>
void ServiceDescriptor (Sink & sinkconst ServiceDescriptor & d)