google.longrunning.OperationInfo
*/
class OperationInfo extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
{
/**
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
* Note: Altering this value constitutes a breaking change.
*
* Generated from protobuf field string response_type = 1;
*/
private $response_type = '';
/**
* Required. The message name of the metadata type for this long-running
* operation.
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
* Note: Altering this value constitutes a breaking change.
*
* Generated from protobuf field string metadata_type = 2;
*/
private $metadata_type = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $response_type
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
* Note: Altering this value constitutes a breaking change.
* @type string $metadata_type
* Required. The message name of the metadata type for this long-running
* operation.
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
* Note: Altering this value constitutes a breaking change.
* }
*/
public function __construct($data = NULL)
{
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Longrunning\Operations::initOnce();
parent::__construct($data);
}
/**
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
* Note: Altering this value constitutes a breaking change.
*
* Generated from protobuf field string response_type = 1;
* @return string
*/
public function getResponseType()
{
return $this->response_type;
}
/**
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
* Note: Altering this value constitutes a breaking change.
*
* Generated from protobuf field string response_type = 1;
* @param string $var
* @return $this
*/
public function setResponseType($var)
{
GPBUtil::checkString($var, True);
$this->response_type = $var;
return $this;
}
/**
* Required. The message name of the metadata type for this long-running
* operation.
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
* Note: Altering this value constitutes a breaking change.
*
* Generated from protobuf field string metadata_type = 2;
* @return string
*/
public function getMetadataType()
{
return $this->metadata_type;
}
/**
* Required. The message name of the metadata type for this long-running
* operation.
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
* Note: Altering this value constitutes a breaking change.
*
* Generated from protobuf field string metadata_type = 2;
* @param string $var
* @return $this
*/
public function setMetadataType($var)
{
GPBUtil::checkString($var, True);
$this->metadata_type = $var;
return $this;
}
}