* Describes a method of a service.
*
*
* Protobuf type google.protobuf.MethodDescriptorProto
*/
class MethodDescriptorProto extends \Google\Protobuf\Internal\Message
{
/**
* optional string name = 1;
*/
private $name = '';
private $has_name = false;
/**
*
* Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. ** *
optional string input_type = 2;
*/
private $input_type = '';
private $has_input_type = false;
/**
* optional string output_type = 3;
*/
private $output_type = '';
private $has_output_type = false;
/**
* optional .google.protobuf.MethodOptions options = 4;
*/
private $options = null;
private $has_options = false;
/**
* * Identifies if client streams multiple client messages ** *
optional bool client_streaming = 5 [default = false];
*/
private $client_streaming = false;
private $has_client_streaming = false;
/**
* * Identifies if server streams multiple server messages ** *
optional bool server_streaming = 6 [default = false];
*/
private $server_streaming = false;
private $has_server_streaming = false;
public function __construct() {
\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
parent::__construct();
}
/**
* optional string name = 1;
*/
public function getName()
{
return $this->name;
}
/**
* optional string name = 1;
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
$this->has_name = true;
}
public function hasName()
{
return $this->has_name;
}
/**
* * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. ** *
optional string input_type = 2;
*/
public function getInputType()
{
return $this->input_type;
}
/**
* * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. ** *
optional string input_type = 2;
*/
public function setInputType($var)
{
GPBUtil::checkString($var, True);
$this->input_type = $var;
$this->has_input_type = true;
}
public function hasInputType()
{
return $this->has_input_type;
}
/**
* optional string output_type = 3;
*/
public function getOutputType()
{
return $this->output_type;
}
/**
* optional string output_type = 3;
*/
public function setOutputType($var)
{
GPBUtil::checkString($var, True);
$this->output_type = $var;
$this->has_output_type = true;
}
public function hasOutputType()
{
return $this->has_output_type;
}
/**
* optional .google.protobuf.MethodOptions options = 4;
*/
public function getOptions()
{
return $this->options;
}
/**
* optional .google.protobuf.MethodOptions options = 4;
*/
public function setOptions(&$var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MethodOptions::class);
$this->options = $var;
$this->has_options = true;
}
public function hasOptions()
{
return $this->has_options;
}
/**
* * Identifies if client streams multiple client messages ** *
optional bool client_streaming = 5 [default = false];
*/
public function getClientStreaming()
{
return $this->client_streaming;
}
/**
* * Identifies if client streams multiple client messages ** *
optional bool client_streaming = 5 [default = false];
*/
public function setClientStreaming($var)
{
GPBUtil::checkBool($var);
$this->client_streaming = $var;
$this->has_client_streaming = true;
}
public function hasClientStreaming()
{
return $this->has_client_streaming;
}
/**
* * Identifies if server streams multiple server messages ** *
optional bool server_streaming = 6 [default = false];
*/
public function getServerStreaming()
{
return $this->server_streaming;
}
/**
* * Identifies if server streams multiple server messages ** *
optional bool server_streaming = 6 [default = false];
*/
public function setServerStreaming($var)
{
GPBUtil::checkBool($var);
$this->server_streaming = $var;
$this->has_server_streaming = true;
}
public function hasServerStreaming()
{
return $this->has_server_streaming;
}
}