google.cloud.audit.RequestMetadata */ class RequestMetadata extends \Google\Protobuf\Internal\Message { /** * The IP address of the caller. * * Generated from protobuf field string caller_ip = 1; */ private $caller_ip = ''; /** * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: * The request was made by the Google Cloud SDK CLI (gcloud). * + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: * The request was made from the `my-project` App Engine app. * * Generated from protobuf field string caller_supplied_user_agent = 2; */ private $caller_supplied_user_agent = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $caller_ip * The IP address of the caller. * @type string $caller_supplied_user_agent * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: * The request was made by the Google Cloud SDK CLI (gcloud). * + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: * The request was made from the `my-project` App Engine app. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Audit\AuditLog::initOnce(); parent::__construct($data); } /** * The IP address of the caller. * * Generated from protobuf field string caller_ip = 1; * @return string */ public function getCallerIp() { return $this->caller_ip; } /** * The IP address of the caller. * * Generated from protobuf field string caller_ip = 1; * @param string $var * @return $this */ public function setCallerIp($var) { GPBUtil::checkString($var, True); $this->caller_ip = $var; return $this; } /** * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: * The request was made by the Google Cloud SDK CLI (gcloud). * + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: * The request was made from the `my-project` App Engine app. * * Generated from protobuf field string caller_supplied_user_agent = 2; * @return string */ public function getCallerSuppliedUserAgent() { return $this->caller_supplied_user_agent; } /** * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: * The request was made by the Google Cloud SDK CLI (gcloud). * + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: * The request was made from the `my-project` App Engine app. * * Generated from protobuf field string caller_supplied_user_agent = 2; * @param string $var * @return $this */ public function setCallerSuppliedUserAgent($var) { GPBUtil::checkString($var, True); $this->caller_supplied_user_agent = $var; return $this; } }