Ydb.Topic.StreamReadMessage.FromClient */ class FromClient extends \Google\Protobuf\Internal\Message { protected $client_message; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Ydb\Topic\StreamReadMessage\InitRequest $init_request * Client requests. * @type \Ydb\Topic\StreamReadMessage\ReadRequest $read_request * @type \Ydb\Topic\StreamReadMessage\CommitOffsetRequest $commit_offset_request * @type \Ydb\Topic\StreamReadMessage\PartitionSessionStatusRequest $partition_session_status_request * @type \Ydb\Topic\UpdateTokenRequest $update_token_request * @type \Ydb\Topic\StreamReadMessage\StartPartitionSessionResponse $start_partition_session_response * Responses to respective server commands. * @type \Ydb\Topic\StreamReadMessage\StopPartitionSessionResponse $stop_partition_session_response * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTopic::initOnce(); parent::__construct($data); } /** * Client requests. * * Generated from protobuf field .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; * @return \Ydb\Topic\StreamReadMessage\InitRequest|null */ public function getInitRequest() { return $this->readOneof(1); } public function hasInitRequest() { return $this->hasOneof(1); } /** * Client requests. * * Generated from protobuf field .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; * @param \Ydb\Topic\StreamReadMessage\InitRequest $var * @return $this */ public function setInitRequest($var) { GPBUtil::checkMessage($var, \Ydb\Topic\StreamReadMessage\InitRequest::class); $this->writeOneof(1, $var); return $this; } /** * Generated from protobuf field .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; * @return \Ydb\Topic\StreamReadMessage\ReadRequest|null */ public function getReadRequest() { return $this->readOneof(2); } public function hasReadRequest() { return $this->hasOneof(2); } /** * Generated from protobuf field .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; * @param \Ydb\Topic\StreamReadMessage\ReadRequest $var * @return $this */ public function setReadRequest($var) { GPBUtil::checkMessage($var, \Ydb\Topic\StreamReadMessage\ReadRequest::class); $this->writeOneof(2, $var); return $this; } /** * Generated from protobuf field .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; * @return \Ydb\Topic\StreamReadMessage\CommitOffsetRequest|null */ public function getCommitOffsetRequest() { return $this->readOneof(3); } public function hasCommitOffsetRequest() { return $this->hasOneof(3); } /** * Generated from protobuf field .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; * @param \Ydb\Topic\StreamReadMessage\CommitOffsetRequest $var * @return $this */ public function setCommitOffsetRequest($var) { GPBUtil::checkMessage($var, \Ydb\Topic\StreamReadMessage\CommitOffsetRequest::class); $this->writeOneof(3, $var); return $this; } /** * Generated from protobuf field .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; * @return \Ydb\Topic\StreamReadMessage\PartitionSessionStatusRequest|null */ public function getPartitionSessionStatusRequest() { return $this->readOneof(4); } public function hasPartitionSessionStatusRequest() { return $this->hasOneof(4); } /** * Generated from protobuf field .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; * @param \Ydb\Topic\StreamReadMessage\PartitionSessionStatusRequest $var * @return $this */ public function setPartitionSessionStatusRequest($var) { GPBUtil::checkMessage($var, \Ydb\Topic\StreamReadMessage\PartitionSessionStatusRequest::class); $this->writeOneof(4, $var); return $this; } /** * Generated from protobuf field .Ydb.Topic.UpdateTokenRequest update_token_request = 5; * @return \Ydb\Topic\UpdateTokenRequest|null */ public function getUpdateTokenRequest() { return $this->readOneof(5); } public function hasUpdateTokenRequest() { return $this->hasOneof(5); } /** * Generated from protobuf field .Ydb.Topic.UpdateTokenRequest update_token_request = 5; * @param \Ydb\Topic\UpdateTokenRequest $var * @return $this */ public function setUpdateTokenRequest($var) { GPBUtil::checkMessage($var, \Ydb\Topic\UpdateTokenRequest::class); $this->writeOneof(5, $var); return $this; } /** * Responses to respective server commands. * * Generated from protobuf field .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; * @return \Ydb\Topic\StreamReadMessage\StartPartitionSessionResponse|null */ public function getStartPartitionSessionResponse() { return $this->readOneof(6); } public function hasStartPartitionSessionResponse() { return $this->hasOneof(6); } /** * Responses to respective server commands. * * Generated from protobuf field .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; * @param \Ydb\Topic\StreamReadMessage\StartPartitionSessionResponse $var * @return $this */ public function setStartPartitionSessionResponse($var) { GPBUtil::checkMessage($var, \Ydb\Topic\StreamReadMessage\StartPartitionSessionResponse::class); $this->writeOneof(6, $var); return $this; } /** * Generated from protobuf field .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; * @return \Ydb\Topic\StreamReadMessage\StopPartitionSessionResponse|null */ public function getStopPartitionSessionResponse() { return $this->readOneof(7); } public function hasStopPartitionSessionResponse() { return $this->hasOneof(7); } /** * Generated from protobuf field .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; * @param \Ydb\Topic\StreamReadMessage\StopPartitionSessionResponse $var * @return $this */ public function setStopPartitionSessionResponse($var) { GPBUtil::checkMessage($var, \Ydb\Topic\StreamReadMessage\StopPartitionSessionResponse::class); $this->writeOneof(7, $var); return $this; } /** * @return string */ public function getClientMessage() { return $this->whichOneof("client_message"); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(FromClient::class, \Ydb\Topic\StreamReadMessage_FromClient::class);