class MethodDescriptor

Defined at line 1718 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

Describes an individual service method. To obtain a MethodDescriptor given

a service, first get its ServiceDescriptor, then call

ServiceDescriptor::FindMethodByName(). Use DescriptorPool to construct your

own descriptors.

Public Methods

void MethodDescriptor (const MethodDescriptor & )

Defined at line 1723 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

MethodDescriptor & operator= (const MethodDescriptor & )

Defined at line 1724 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

internal::DescriptorStringView name ()

Name of this method, not including containing scope.

Defined at line 2619 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

internal::DescriptorStringView full_name ()

The fully-qualified name of the method, scope delimited by periods.

Defined at line 2619 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

int index ()

Index within the service's Descriptor.

Defined at line 2825 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

const FileDescriptor * file ()

The .proto file in which this method was defined. Never nullptr.

Defined at line 2821 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

const ServiceDescriptor * service ()

Gets the service to which this method belongs. Never nullptr.

Defined at line 2620 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

const Descriptor * input_type ()

Gets the type of protocol message which this method accepts as input.

const Descriptor * output_type ()

Gets the type of protocol message which this message produces as output.

bool client_streaming ()

Gets whether the client streams multiple requests.

Defined at line 2622 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

bool server_streaming ()

Gets whether the server streams multiple responses.

Defined at line 2623 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

const MethodOptions & options ()

Get options for this method. These are specified in the .proto file by

placing lines like "option foo = 1234;" in curly-braces after a method

declaration. Allowed options are defined by MethodOptions in

descriptor.proto, and any available extensions of that message.

Defined at line 2621 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h

void CopyTo (MethodDescriptorProto * 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 method declaration. Returns false and leaves

|*out_location| unchanged iff location information was not available.

Friends

class ServiceDescriptor
class DescriptorBuilder
class InternalFeatureHelper
class Formatter
class Printer
class Symbol
template <typename Sink>
void MethodDescriptor (Sink & sinkconst MethodDescriptor & d)