proto library Client - Class MethodDescriptorProto (v5.36.2)

Reference documentation and code samples for the proto library Client class MethodDescriptorProto.

Describes a method of a service.

Generated from protobuf message google.protobuf.MethodDescriptorProto

Namespace

Google \ Protobuf \ Internal

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string
↳ input_type string

Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.

↳ output_type string
↳ options MethodOptions
↳ client_streaming bool

Identifies if client streams multiple client messages

↳ server_streaming bool

Identifies if server streams multiple server messages

getName

Generated from protobuf field optional string name = 1;

Returns
Type Description
string

hasName

clearName

setName

Generated from protobuf field optional string name = 1;

Parameter
Name Description
var string
Returns
Type Description
$this

getInputType

Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.

Returns
Type Description
string

hasInputType

clearInputType

setInputType

Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.

Parameter
Name Description
var string
Returns
Type Description
$this

getOutputType

Generated from protobuf field optional string output_type = 3;

Returns
Type Description
string

hasOutputType

clearOutputType

setOutputType

Generated from protobuf field optional string output_type = 3;

Parameter
Name Description
var string
Returns
Type Description
$this

getOptions

Generated from protobuf field optional .google.protobuf.MethodOptions options = 4;

Returns
Type Description
MethodOptions|null

hasOptions

clearOptions

setOptions

Generated from protobuf field optional .google.protobuf.MethodOptions options = 4;

Parameter
Name Description
var MethodOptions
Returns
Type Description
$this

getClientStreaming

Identifies if client streams multiple client messages

Returns
Type Description
bool

hasClientStreaming

clearClientStreaming

setClientStreaming

Identifies if client streams multiple client messages

Parameter
Name Description
var bool
Returns
Type Description
$this

getServerStreaming

Identifies if server streams multiple server messages

Returns
Type Description
bool

hasServerStreaming

clearServerStreaming

setServerStreaming

Identifies if server streams multiple server messages

Parameter
Name Description
var bool
Returns
Type Description
$this