code
stringlengths
17
296k
docstring
stringlengths
30
30.3k
func_name
stringlengths
1
89
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
153
url
stringlengths
51
209
license
stringclasses
4 values
public function setReservedSpaceGib($var) { GPBUtil::checkInt64($var); $this->reserved_space_gib = $var; return $this; }
The space on this storage volume reserved for snapshots, shown in GiB. Generated from protobuf field <code>int64 reserved_space_gib = 1;</code> @param int|string $var @return $this
setReservedSpaceGib
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function getReservedSpaceUsedPercent() { return $this->reserved_space_used_percent; }
The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume. Generated from protobuf field <code>int32 reserved_space_used_percent = 2;</code> @return int
getReservedSpaceUsedPercent
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function setReservedSpaceUsedPercent($var) { GPBUtil::checkInt32($var); $this->reserved_space_used_percent = $var; return $this; }
The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume. Generated from protobuf field <code>int32 reserved_space_used_percent = 2;</code> @param int $var @return $this
setReservedSpaceUsedPercent
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function getReservedSpaceRemainingGib() { return $this->reserved_space_remaining_gib; }
The amount, in GiB, of available space in this storage volume's reserved snapshot space. Generated from protobuf field <code>int64 reserved_space_remaining_gib = 3;</code> @return int|string
getReservedSpaceRemainingGib
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function setReservedSpaceRemainingGib($var) { GPBUtil::checkInt64($var); $this->reserved_space_remaining_gib = $var; return $this; }
The amount, in GiB, of available space in this storage volume's reserved snapshot space. Generated from protobuf field <code>int64 reserved_space_remaining_gib = 3;</code> @param int|string $var @return $this
setReservedSpaceRemainingGib
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function getReservedSpacePercent() { return $this->reserved_space_percent; }
Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true. Generated from protobuf field <code>int32 reserved_space_percent = 4;</code> @return int
getReservedSpacePercent
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function setReservedSpacePercent($var) { GPBUtil::checkInt32($var); $this->reserved_space_percent = $var; return $this; }
Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true. Generated from protobuf field <code>int32 reserved_space_percent = 4;</code> @param int $var @return $this
setReservedSpacePercent
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function getResource() { return $this->resource; }
Generated from protobuf field <code>optional .google.cloud.compute.v1.RoutePolicy resource = 195806222;</code> @return \Google\Cloud\Compute\V1\RoutePolicy|null
getResource
php
googleapis/google-cloud-php
Compute/src/V1/RoutersGetRoutePolicyResponse.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/RoutersGetRoutePolicyResponse.php
Apache-2.0
public function setResource($var) { GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\RoutePolicy::class); $this->resource = $var; return $this; }
Generated from protobuf field <code>optional .google.cloud.compute.v1.RoutePolicy resource = 195806222;</code> @param \Google\Cloud\Compute\V1\RoutePolicy $var @return $this
setResource
php
googleapis/google-cloud-php
Compute/src/V1/RoutersGetRoutePolicyResponse.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/RoutersGetRoutePolicyResponse.php
Apache-2.0
public function getId() { return isset($this->id) ? $this->id : ''; }
REST ID of the product, in the form of `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate on products take this as their `name` parameter. Required in the `SELECT` clause. Generated from protobuf field <code>optional string id = 1;</code> @return string
getId
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; }
REST ID of the product, in the form of `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate on products take this as their `name` parameter. Required in the `SELECT` clause. Generated from protobuf field <code>optional string id = 1;</code> @param string $var @return $this
setId
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getChannel() { return isset($this->channel) ? $this->channel : 0; }
Channel of the product. Can be `ONLINE` or `LOCAL`. Generated from protobuf field <code>optional .google.shopping.type.Channel.ChannelEnum channel = 28;</code> @return int
getChannel
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setChannel($var) { GPBUtil::checkEnum($var, \Google\Shopping\Type\Channel\ChannelEnum::class); $this->channel = $var; return $this; }
Channel of the product. Can be `ONLINE` or `LOCAL`. Generated from protobuf field <code>optional .google.shopping.type.Channel.ChannelEnum channel = 28;</code> @param int $var @return $this
setChannel
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getLanguageCode() { return isset($this->language_code) ? $this->language_code : ''; }
Language code of the product in BCP 47 format. Generated from protobuf field <code>optional string language_code = 2;</code> @return string
getLanguageCode
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setLanguageCode($var) { GPBUtil::checkString($var, True); $this->language_code = $var; return $this; }
Language code of the product in BCP 47 format. Generated from protobuf field <code>optional string language_code = 2;</code> @param string $var @return $this
setLanguageCode
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getFeedLabel() { return isset($this->feed_label) ? $this->feed_label : ''; }
Feed label of the product. Generated from protobuf field <code>optional string feed_label = 3;</code> @return string
getFeedLabel
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setFeedLabel($var) { GPBUtil::checkString($var, True); $this->feed_label = $var; return $this; }
Feed label of the product. Generated from protobuf field <code>optional string feed_label = 3;</code> @param string $var @return $this
setFeedLabel
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getOfferId() { return isset($this->offer_id) ? $this->offer_id : ''; }
Merchant-provided id of the product. Generated from protobuf field <code>optional string offer_id = 4;</code> @return string
getOfferId
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setOfferId($var) { GPBUtil::checkString($var, True); $this->offer_id = $var; return $this; }
Merchant-provided id of the product. Generated from protobuf field <code>optional string offer_id = 4;</code> @param string $var @return $this
setOfferId
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getTitle() { return isset($this->title) ? $this->title : ''; }
Title of the product. Generated from protobuf field <code>optional string title = 5;</code> @return string
getTitle
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setTitle($var) { GPBUtil::checkString($var, True); $this->title = $var; return $this; }
Title of the product. Generated from protobuf field <code>optional string title = 5;</code> @param string $var @return $this
setTitle
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getBrand() { return isset($this->brand) ? $this->brand : ''; }
Brand of the product. Generated from protobuf field <code>optional string brand = 6;</code> @return string
getBrand
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setBrand($var) { GPBUtil::checkString($var, True); $this->brand = $var; return $this; }
Brand of the product. Generated from protobuf field <code>optional string brand = 6;</code> @param string $var @return $this
setBrand
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL1() { return isset($this->category_l1) ? $this->category_l1 : ''; }
Product category (1st level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l1 = 7;</code> @return string
getCategoryL1
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL1($var) { GPBUtil::checkString($var, True); $this->category_l1 = $var; return $this; }
Product category (1st level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l1 = 7;</code> @param string $var @return $this
setCategoryL1
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL2() { return isset($this->category_l2) ? $this->category_l2 : ''; }
Product category (2nd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l2 = 8;</code> @return string
getCategoryL2
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL2($var) { GPBUtil::checkString($var, True); $this->category_l2 = $var; return $this; }
Product category (2nd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l2 = 8;</code> @param string $var @return $this
setCategoryL2
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL3() { return isset($this->category_l3) ? $this->category_l3 : ''; }
Product category (3rd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l3 = 9;</code> @return string
getCategoryL3
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL3($var) { GPBUtil::checkString($var, True); $this->category_l3 = $var; return $this; }
Product category (3rd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l3 = 9;</code> @param string $var @return $this
setCategoryL3
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL4() { return isset($this->category_l4) ? $this->category_l4 : ''; }
Product category (4th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l4 = 10;</code> @return string
getCategoryL4
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL4($var) { GPBUtil::checkString($var, True); $this->category_l4 = $var; return $this; }
Product category (4th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l4 = 10;</code> @param string $var @return $this
setCategoryL4
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL5() { return isset($this->category_l5) ? $this->category_l5 : ''; }
Product category (5th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l5 = 11;</code> @return string
getCategoryL5
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL5($var) { GPBUtil::checkString($var, True); $this->category_l5 = $var; return $this; }
Product category (5th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l5 = 11;</code> @param string $var @return $this
setCategoryL5
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getProductTypeL1() { return isset($this->product_type_l1) ? $this->product_type_l1 : ''; }
Product type (1st level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l1 = 12;</code> @return string
getProductTypeL1
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setProductTypeL1($var) { GPBUtil::checkString($var, True); $this->product_type_l1 = $var; return $this; }
Product type (1st level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l1 = 12;</code> @param string $var @return $this
setProductTypeL1
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getProductTypeL2() { return isset($this->product_type_l2) ? $this->product_type_l2 : ''; }
Product type (2nd level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l2 = 13;</code> @return string
getProductTypeL2
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setProductTypeL2($var) { GPBUtil::checkString($var, True); $this->product_type_l2 = $var; return $this; }
Product type (2nd level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l2 = 13;</code> @param string $var @return $this
setProductTypeL2
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getProductTypeL3() { return isset($this->product_type_l3) ? $this->product_type_l3 : ''; }
Product type (3rd level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l3 = 14;</code> @return string
getProductTypeL3
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setProductTypeL3($var) { GPBUtil::checkString($var, True); $this->product_type_l3 = $var; return $this; }
Product type (3rd level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l3 = 14;</code> @param string $var @return $this
setProductTypeL3
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getProductTypeL4() { return isset($this->product_type_l4) ? $this->product_type_l4 : ''; }
Product type (4th level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l4 = 15;</code> @return string
getProductTypeL4
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setProductTypeL4($var) { GPBUtil::checkString($var, True); $this->product_type_l4 = $var; return $this; }
Product type (4th level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l4 = 15;</code> @param string $var @return $this
setProductTypeL4
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getProductTypeL5() { return isset($this->product_type_l5) ? $this->product_type_l5 : ''; }
Product type (5th level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l5 = 16;</code> @return string
getProductTypeL5
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setProductTypeL5($var) { GPBUtil::checkString($var, True); $this->product_type_l5 = $var; return $this; }
Product type (5th level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). Generated from protobuf field <code>optional string product_type_l5 = 16;</code> @param string $var @return $this
setProductTypeL5
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getPrice() { return $this->price; }
Product price. Absent if the information about the price of the product is not available. Generated from protobuf field <code>.google.shopping.type.Price price = 17;</code> @return \Google\Shopping\Type\Price|null
getPrice
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setPrice($var) { GPBUtil::checkMessage($var, \Google\Shopping\Type\Price::class); $this->price = $var; return $this; }
Product price. Absent if the information about the price of the product is not available. Generated from protobuf field <code>.google.shopping.type.Price price = 17;</code> @param \Google\Shopping\Type\Price $var @return $this
setPrice
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCondition() { return isset($this->condition) ? $this->condition : ''; }
[Condition](https://support.google.com/merchants/answer/6324469) of the product. Generated from protobuf field <code>optional string condition = 18;</code> @return string
getCondition
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCondition($var) { GPBUtil::checkString($var, True); $this->condition = $var; return $this; }
[Condition](https://support.google.com/merchants/answer/6324469) of the product. Generated from protobuf field <code>optional string condition = 18;</code> @param string $var @return $this
setCondition
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getAvailability() { return isset($this->availability) ? $this->availability : ''; }
[Availability](https://support.google.com/merchants/answer/6324448) of the product. Generated from protobuf field <code>optional string availability = 19;</code> @return string
getAvailability
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setAvailability($var) { GPBUtil::checkString($var, True); $this->availability = $var; return $this; }
[Availability](https://support.google.com/merchants/answer/6324448) of the product. Generated from protobuf field <code>optional string availability = 19;</code> @param string $var @return $this
setAvailability
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getShippingLabel() { return isset($this->shipping_label) ? $this->shipping_label : ''; }
Normalized [shipping label](https://support.google.com/merchants/answer/6324504) specified in the data source. Generated from protobuf field <code>optional string shipping_label = 20;</code> @return string
getShippingLabel
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setShippingLabel($var) { GPBUtil::checkString($var, True); $this->shipping_label = $var; return $this; }
Normalized [shipping label](https://support.google.com/merchants/answer/6324504) specified in the data source. Generated from protobuf field <code>optional string shipping_label = 20;</code> @param string $var @return $this
setShippingLabel
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getGtin() { return $this->gtin; }
List of Global Trade Item Numbers (GTINs) of the product. Generated from protobuf field <code>repeated string gtin = 21;</code> @return \Google\Protobuf\Internal\RepeatedField
getGtin
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setGtin($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->gtin = $arr; return $this; }
List of Global Trade Item Numbers (GTINs) of the product. Generated from protobuf field <code>repeated string gtin = 21;</code> @param array<string>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setGtin
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getItemGroupId() { return isset($this->item_group_id) ? $this->item_group_id : ''; }
Item group id provided by the merchant for grouping variants together. Generated from protobuf field <code>optional string item_group_id = 22;</code> @return string
getItemGroupId
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setItemGroupId($var) { GPBUtil::checkString($var, True); $this->item_group_id = $var; return $this; }
Item group id provided by the merchant for grouping variants together. Generated from protobuf field <code>optional string item_group_id = 22;</code> @param string $var @return $this
setItemGroupId
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getThumbnailLink() { return isset($this->thumbnail_link) ? $this->thumbnail_link : ''; }
Link to the processed image of the product, hosted on the Google infrastructure. Generated from protobuf field <code>optional string thumbnail_link = 23;</code> @return string
getThumbnailLink
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setThumbnailLink($var) { GPBUtil::checkString($var, True); $this->thumbnail_link = $var; return $this; }
Link to the processed image of the product, hosted on the Google infrastructure. Generated from protobuf field <code>optional string thumbnail_link = 23;</code> @param string $var @return $this
setThumbnailLink
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCreationTime() { return $this->creation_time; }
The time the merchant created the product in timestamp seconds. Generated from protobuf field <code>.google.protobuf.Timestamp creation_time = 24;</code> @return \Google\Protobuf\Timestamp|null
getCreationTime
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCreationTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->creation_time = $var; return $this; }
The time the merchant created the product in timestamp seconds. Generated from protobuf field <code>.google.protobuf.Timestamp creation_time = 24;</code> @param \Google\Protobuf\Timestamp $var @return $this
setCreationTime
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getExpirationDate() { return $this->expiration_date; }
Expiration date for the product, specified on insertion. Generated from protobuf field <code>.google.type.Date expiration_date = 25;</code> @return \Google\Type\Date|null
getExpirationDate
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setExpirationDate($var) { GPBUtil::checkMessage($var, \Google\Type\Date::class); $this->expiration_date = $var; return $this; }
Expiration date for the product, specified on insertion. Generated from protobuf field <code>.google.type.Date expiration_date = 25;</code> @param \Google\Type\Date $var @return $this
setExpirationDate
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getAggregatedReportingContextStatus() { return isset($this->aggregated_reporting_context_status) ? $this->aggregated_reporting_context_status : 0; }
Aggregated status. Generated from protobuf field <code>optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26;</code> @return int
getAggregatedReportingContextStatus
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setAggregatedReportingContextStatus($var) { GPBUtil::checkEnum($var, \Google\Shopping\Merchant\Reports\V1beta\ProductView\AggregatedReportingContextStatus::class); $this->aggregated_reporting_context_status = $var; return $this; }
Aggregated status. Generated from protobuf field <code>optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26;</code> @param int $var @return $this
setAggregatedReportingContextStatus
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getItemIssues() { return $this->item_issues; }
List of item issues for the product. **This field cannot be used for sorting the results.** **Only selected attributes of this field (for example, `item_issues.severity.aggregated_severity`) can be used for filtering the results.** Generated from protobuf field <code>repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue item_issues = 27;</code> @return \Google\Protobuf\Internal\RepeatedField
getItemIssues
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setItemIssues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Merchant\Reports\V1beta\ProductView\ItemIssue::class); $this->item_issues = $arr; return $this; }
List of item issues for the product. **This field cannot be used for sorting the results.** **Only selected attributes of this field (for example, `item_issues.severity.aggregated_severity`) can be used for filtering the results.** Generated from protobuf field <code>repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue item_issues = 27;</code> @param array<\Google\Shopping\Merchant\Reports\V1beta\ProductView\ItemIssue>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setItemIssues
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getClickPotential() { return $this->click_potential; }
Estimated performance potential compared to highest performing products of the merchant. Generated from protobuf field <code>.google.shopping.merchant.reports.v1beta.ProductView.ClickPotential click_potential = 29;</code> @return int
getClickPotential
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setClickPotential($var) { GPBUtil::checkEnum($var, \Google\Shopping\Merchant\Reports\V1beta\ProductView\ClickPotential::class); $this->click_potential = $var; return $this; }
Estimated performance potential compared to highest performing products of the merchant. Generated from protobuf field <code>.google.shopping.merchant.reports.v1beta.ProductView.ClickPotential click_potential = 29;</code> @param int $var @return $this
setClickPotential
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getClickPotentialRank() { return isset($this->click_potential_rank) ? $this->click_potential_rank : 0; }
Rank of the product based on its click potential. A product with `click_potential_rank` 1 has the highest click potential among the merchant's products that fulfill the search query conditions. Generated from protobuf field <code>optional int64 click_potential_rank = 30;</code> @return int|string
getClickPotentialRank
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setClickPotentialRank($var) { GPBUtil::checkInt64($var); $this->click_potential_rank = $var; return $this; }
Rank of the product based on its click potential. A product with `click_potential_rank` 1 has the highest click potential among the merchant's products that fulfill the search query conditions. Generated from protobuf field <code>optional int64 click_potential_rank = 30;</code> @param int|string $var @return $this
setClickPotentialRank
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getParent() { return $this->parent; }
Required. The parent branch resource name, such as `projects/&#42;&#47;locations/global/catalogs/default_catalog/branches/0`. Use `default_branch` as the branch ID, to list products under the default branch. If the caller does not have permission to list [Product][google.cloud.retail.v2.Product]s under this branch, regardless of whether or not this branch exists, a PERMISSION_DENIED error is returned. Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code> @return string
getParent
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function setParent($var) { GPBUtil::checkString($var, True); $this->parent = $var; return $this; }
Required. The parent branch resource name, such as `projects/&#42;&#47;locations/global/catalogs/default_catalog/branches/0`. Use `default_branch` as the branch ID, to list products under the default branch. If the caller does not have permission to list [Product][google.cloud.retail.v2.Product]s under this branch, regardless of whether or not this branch exists, a PERMISSION_DENIED error is returned. Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code> @param string $var @return $this
setParent
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function getPageSize() { return $this->page_size; }
Maximum number of [Product][google.cloud.retail.v2.Product]s to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is returned. Generated from protobuf field <code>int32 page_size = 2;</code> @return int
getPageSize
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function setPageSize($var) { GPBUtil::checkInt32($var); $this->page_size = $var; return $this; }
Maximum number of [Product][google.cloud.retail.v2.Product]s to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is returned. Generated from protobuf field <code>int32 page_size = 2;</code> @param int $var @return $this
setPageSize
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function getPageToken() { return $this->page_token; }
A page token [ListProductsResponse.next_page_token][google.cloud.retail.v2.ListProductsResponse.next_page_token], received from a previous [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts] call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts] must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned. Generated from protobuf field <code>string page_token = 3;</code> @return string
getPageToken
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function setPageToken($var) { GPBUtil::checkString($var, True); $this->page_token = $var; return $this; }
A page token [ListProductsResponse.next_page_token][google.cloud.retail.v2.ListProductsResponse.next_page_token], received from a previous [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts] call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts] must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned. Generated from protobuf field <code>string page_token = 3;</code> @param string $var @return $this
setPageToken
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function getFilter() { return $this->filter; }
A filter to apply on the list results. Supported features: * List all the products under the parent branch if [filter][google.cloud.retail.v2.ListProductsRequest.filter] is unset. * List [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product]s sharing the same [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]. For example: `primary_product_id = "some_product_id"` * List [Product][google.cloud.retail.v2.Product]s bundled in a [Product.Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION] [Product][google.cloud.retail.v2.Product]. For example: `collection_product_id = "some_product_id"` * List [Product][google.cloud.retail.v2.Product]s with a partibular type. For example: `type = "PRIMARY"` `type = "VARIANT"` `type = "COLLECTION"` If the field is unrecognizable, an INVALID_ARGUMENT error is returned. If the specified [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product] or [Product.Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION] [Product][google.cloud.retail.v2.Product] does not exist, a NOT_FOUND error is returned. Generated from protobuf field <code>string filter = 4;</code> @return string
getFilter
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function setFilter($var) { GPBUtil::checkString($var, True); $this->filter = $var; return $this; }
A filter to apply on the list results. Supported features: * List all the products under the parent branch if [filter][google.cloud.retail.v2.ListProductsRequest.filter] is unset. * List [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product]s sharing the same [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]. For example: `primary_product_id = "some_product_id"` * List [Product][google.cloud.retail.v2.Product]s bundled in a [Product.Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION] [Product][google.cloud.retail.v2.Product]. For example: `collection_product_id = "some_product_id"` * List [Product][google.cloud.retail.v2.Product]s with a partibular type. For example: `type = "PRIMARY"` `type = "VARIANT"` `type = "COLLECTION"` If the field is unrecognizable, an INVALID_ARGUMENT error is returned. If the specified [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product] or [Product.Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION] [Product][google.cloud.retail.v2.Product] does not exist, a NOT_FOUND error is returned. Generated from protobuf field <code>string filter = 4;</code> @param string $var @return $this
setFilter
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function getReadMask() { return $this->read_mask; }
The fields of [Product][google.cloud.retail.v2.Product] to return in the responses. If not set or empty, the following fields are returned: * [Product.name][google.cloud.retail.v2.Product.name] * [Product.id][google.cloud.retail.v2.Product.id] * [Product.title][google.cloud.retail.v2.Product.title] * [Product.uri][google.cloud.retail.v2.Product.uri] * [Product.images][google.cloud.retail.v2.Product.images] * [Product.price_info][google.cloud.retail.v2.Product.price_info] * [Product.brands][google.cloud.retail.v2.Product.brands] If "*" is provided, all fields are returned. [Product.name][google.cloud.retail.v2.Product.name] is always returned no matter what mask is set. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. Generated from protobuf field <code>.google.protobuf.FieldMask read_mask = 5;</code> @return \Google\Protobuf\FieldMask|null
getReadMask
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function setReadMask($var) { GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); $this->read_mask = $var; return $this; }
The fields of [Product][google.cloud.retail.v2.Product] to return in the responses. If not set or empty, the following fields are returned: * [Product.name][google.cloud.retail.v2.Product.name] * [Product.id][google.cloud.retail.v2.Product.id] * [Product.title][google.cloud.retail.v2.Product.title] * [Product.uri][google.cloud.retail.v2.Product.uri] * [Product.images][google.cloud.retail.v2.Product.images] * [Product.price_info][google.cloud.retail.v2.Product.price_info] * [Product.brands][google.cloud.retail.v2.Product.brands] If "*" is provided, all fields are returned. [Product.name][google.cloud.retail.v2.Product.name] is always returned no matter what mask is set. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. Generated from protobuf field <code>.google.protobuf.FieldMask read_mask = 5;</code> @param \Google\Protobuf\FieldMask $var @return $this
setReadMask
php
googleapis/google-cloud-php
Retail/src/V2/ListProductsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Retail/src/V2/ListProductsRequest.php
Apache-2.0
public function getName() { return $this->name; }
Identifier. The resource name of the entry. Format: `projects/&#42;&#47;locations/&#42;&#47;glossaries/&#42;&#47;glossaryEntries/&#42;` Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code> @return string
getName
php
googleapis/google-cloud-php
Translate/src/V3/GlossaryEntry.php
https://github.com/googleapis/google-cloud-php/blob/master/Translate/src/V3/GlossaryEntry.php
Apache-2.0
public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; }
Identifier. The resource name of the entry. Format: `projects/&#42;&#47;locations/&#42;&#47;glossaries/&#42;&#47;glossaryEntries/&#42;` Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code> @param string $var @return $this
setName
php
googleapis/google-cloud-php
Translate/src/V3/GlossaryEntry.php
https://github.com/googleapis/google-cloud-php/blob/master/Translate/src/V3/GlossaryEntry.php
Apache-2.0
public function getTermsPair() { return $this->readOneof(2); }
Used for an unidirectional glossary. Generated from protobuf field <code>.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;</code> @return \Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsPair|null
getTermsPair
php
googleapis/google-cloud-php
Translate/src/V3/GlossaryEntry.php
https://github.com/googleapis/google-cloud-php/blob/master/Translate/src/V3/GlossaryEntry.php
Apache-2.0
public function setTermsPair($var) { GPBUtil::checkMessage($var, \Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsPair::class); $this->writeOneof(2, $var); return $this; }
Used for an unidirectional glossary. Generated from protobuf field <code>.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;</code> @param \Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsPair $var @return $this
setTermsPair
php
googleapis/google-cloud-php
Translate/src/V3/GlossaryEntry.php
https://github.com/googleapis/google-cloud-php/blob/master/Translate/src/V3/GlossaryEntry.php
Apache-2.0
public function getTermsSet() { return $this->readOneof(3); }
Used for an equivalent term sets glossary. Generated from protobuf field <code>.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;</code> @return \Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsSet|null
getTermsSet
php
googleapis/google-cloud-php
Translate/src/V3/GlossaryEntry.php
https://github.com/googleapis/google-cloud-php/blob/master/Translate/src/V3/GlossaryEntry.php
Apache-2.0
public function setTermsSet($var) { GPBUtil::checkMessage($var, \Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsSet::class); $this->writeOneof(3, $var); return $this; }
Used for an equivalent term sets glossary. Generated from protobuf field <code>.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;</code> @param \Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsSet $var @return $this
setTermsSet
php
googleapis/google-cloud-php
Translate/src/V3/GlossaryEntry.php
https://github.com/googleapis/google-cloud-php/blob/master/Translate/src/V3/GlossaryEntry.php
Apache-2.0
public function getDescription() { return $this->description; }
Describes the glossary entry. Generated from protobuf field <code>string description = 4;</code> @return string
getDescription
php
googleapis/google-cloud-php
Translate/src/V3/GlossaryEntry.php
https://github.com/googleapis/google-cloud-php/blob/master/Translate/src/V3/GlossaryEntry.php
Apache-2.0
public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; }
Describes the glossary entry. Generated from protobuf field <code>string description = 4;</code> @param string $var @return $this
setDescription
php
googleapis/google-cloud-php
Translate/src/V3/GlossaryEntry.php
https://github.com/googleapis/google-cloud-php/blob/master/Translate/src/V3/GlossaryEntry.php
Apache-2.0
public function getProject() { return $this->project; }
Project ID for this request. Generated from protobuf field <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];</code> @return string
getProject
php
googleapis/google-cloud-php
Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
Apache-2.0
public function setProject($var) { GPBUtil::checkString($var, True); $this->project = $var; return $this; }
Project ID for this request. Generated from protobuf field <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];</code> @param string $var @return $this
setProject
php
googleapis/google-cloud-php
Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
Apache-2.0
public function getRequestId() { return isset($this->request_id) ? $this->request_id : ''; }
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). Generated from protobuf field <code>optional string request_id = 37109963;</code> @return string
getRequestId
php
googleapis/google-cloud-php
Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
Apache-2.0
public function setRequestId($var) { GPBUtil::checkString($var, True); $this->request_id = $var; return $this; }
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). Generated from protobuf field <code>optional string request_id = 37109963;</code> @param string $var @return $this
setRequestId
php
googleapis/google-cloud-php
Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
Apache-2.0
public function getTargetHttpProxy() { return $this->target_http_proxy; }
Name of the TargetHttpProxy to set a URL map for. Generated from protobuf field <code>string target_http_proxy = 206872421 [(.google.api.field_behavior) = REQUIRED];</code> @return string
getTargetHttpProxy
php
googleapis/google-cloud-php
Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
Apache-2.0
public function setTargetHttpProxy($var) { GPBUtil::checkString($var, True); $this->target_http_proxy = $var; return $this; }
Name of the TargetHttpProxy to set a URL map for. Generated from protobuf field <code>string target_http_proxy = 206872421 [(.google.api.field_behavior) = REQUIRED];</code> @param string $var @return $this
setTargetHttpProxy
php
googleapis/google-cloud-php
Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
Apache-2.0
public function getUrlMapReferenceResource() { return $this->url_map_reference_resource; }
The body resource for this request Generated from protobuf field <code>.google.cloud.compute.v1.UrlMapReference url_map_reference_resource = 398701333 [(.google.api.field_behavior) = REQUIRED];</code> @return \Google\Cloud\Compute\V1\UrlMapReference|null
getUrlMapReferenceResource
php
googleapis/google-cloud-php
Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
Apache-2.0
public function setUrlMapReferenceResource($var) { GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\UrlMapReference::class); $this->url_map_reference_resource = $var; return $this; }
The body resource for this request Generated from protobuf field <code>.google.cloud.compute.v1.UrlMapReference url_map_reference_resource = 398701333 [(.google.api.field_behavior) = REQUIRED];</code> @param \Google\Cloud\Compute\V1\UrlMapReference $var @return $this
setUrlMapReferenceResource
php
googleapis/google-cloud-php
Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SetUrlMapTargetHttpProxyRequest.php
Apache-2.0
public function getServiceConfig() { return $this->service_config; }
The generated service configuration. Generated from protobuf field <code>.google.api.Service service_config = 1;</code> @return \Google\Api\Service|null
getServiceConfig
php
googleapis/google-cloud-php
ServiceManagement/src/V1/SubmitConfigSourceResponse.php
https://github.com/googleapis/google-cloud-php/blob/master/ServiceManagement/src/V1/SubmitConfigSourceResponse.php
Apache-2.0
public function setServiceConfig($var) { GPBUtil::checkMessage($var, \Google\Api\Service::class); $this->service_config = $var; return $this; }
The generated service configuration. Generated from protobuf field <code>.google.api.Service service_config = 1;</code> @param \Google\Api\Service $var @return $this
setServiceConfig
php
googleapis/google-cloud-php
ServiceManagement/src/V1/SubmitConfigSourceResponse.php
https://github.com/googleapis/google-cloud-php/blob/master/ServiceManagement/src/V1/SubmitConfigSourceResponse.php
Apache-2.0
public function getParent() { return $this->parent; }
Required. The relative resource name of the location in which to create a metastore service, in the following form: `projects/{project_number}/locations/{location_id}`. Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code> @return string
getParent
php
googleapis/google-cloud-php
DataprocMetastore/src/V1alpha/CreateServiceRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/DataprocMetastore/src/V1alpha/CreateServiceRequest.php
Apache-2.0
public function setParent($var) { GPBUtil::checkString($var, True); $this->parent = $var; return $this; }
Required. The relative resource name of the location in which to create a metastore service, in the following form: `projects/{project_number}/locations/{location_id}`. Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code> @param string $var @return $this
setParent
php
googleapis/google-cloud-php
DataprocMetastore/src/V1alpha/CreateServiceRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/DataprocMetastore/src/V1alpha/CreateServiceRequest.php
Apache-2.0
public function getServiceId() { return $this->service_id; }
Required. The ID of the metastore service, which is used as the final component of the metastore service's name. This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens. Generated from protobuf field <code>string service_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> @return string
getServiceId
php
googleapis/google-cloud-php
DataprocMetastore/src/V1alpha/CreateServiceRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/DataprocMetastore/src/V1alpha/CreateServiceRequest.php
Apache-2.0