proto library Client - Class ServiceDescriptorProto (v5.36.2)

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

Describes a service.

Generated from protobuf message google.protobuf.ServiceDescriptorProto

Namespace

Google \ Protobuf \ Internal

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string
↳ method array<MethodDescriptorProto>
↳ options ServiceOptions

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

getMethod

Generated from protobuf field repeated .google.protobuf.MethodDescriptorProto method = 2;

Returns
Type Description
Google\Protobuf\RepeatedField<MethodDescriptorProto>

setMethod

Generated from protobuf field repeated .google.protobuf.MethodDescriptorProto method = 2;

Parameter
Name Description
var array<MethodDescriptorProto>
Returns
Type Description
$this

getOptions

Generated from protobuf field optional .google.protobuf.ServiceOptions options = 3;

Returns
Type Description
ServiceOptions|null

hasOptions

clearOptions

setOptions

Generated from protobuf field optional .google.protobuf.ServiceOptions options = 3;

Parameter
Name Description
var ServiceOptions
Returns
Type Description
$this