Google Cloud Channel V1 Client - Class ListPurchasableSkusRequest (1.6.0)

Reference documentation and code samples for the Google Cloud Channel V1 Client class ListPurchasableSkusRequest.

Request message for ListPurchasableSkus.

Generated from protobuf message google.cloud.channel.v1.ListPurchasableSkusRequest

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ create_entitlement_purchase Google\Cloud\Channel\V1\ListPurchasableSkusRequest\CreateEntitlementPurchase

List SKUs for CreateEntitlement purchase.

↳ change_offer_purchase Google\Cloud\Channel\V1\ListPurchasableSkusRequest\ChangeOfferPurchase

List SKUs for ChangeOffer purchase with a new SKU.

↳ customer string

Required. The resource name of the customer to list SKUs for. Format: accounts/{account_id}/customers/{customer_id}.

↳ page_size int

Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce values above 1000.

↳ page_token string

Optional. A token for a page of results other than the first page.

↳ language_code string

Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US".

getCreateEntitlementPurchase

List SKUs for CreateEntitlement purchase.

Returns
TypeDescription
Google\Cloud\Channel\V1\ListPurchasableSkusRequest\CreateEntitlementPurchase|null

hasCreateEntitlementPurchase

setCreateEntitlementPurchase

List SKUs for CreateEntitlement purchase.

Parameter
NameDescription
var Google\Cloud\Channel\V1\ListPurchasableSkusRequest\CreateEntitlementPurchase
Returns
TypeDescription
$this

getChangeOfferPurchase

List SKUs for ChangeOffer purchase with a new SKU.

Returns
TypeDescription
Google\Cloud\Channel\V1\ListPurchasableSkusRequest\ChangeOfferPurchase|null

hasChangeOfferPurchase

setChangeOfferPurchase

List SKUs for ChangeOffer purchase with a new SKU.

Parameter
NameDescription
var Google\Cloud\Channel\V1\ListPurchasableSkusRequest\ChangeOfferPurchase
Returns
TypeDescription
$this

getCustomer

Required. The resource name of the customer to list SKUs for.

Format: accounts/{account_id}/customers/{customer_id}.

Returns
TypeDescription
string

setCustomer

Required. The resource name of the customer to list SKUs for.

Format: accounts/{account_id}/customers/{customer_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce values above 1000.

Returns
TypeDescription
int

setPageSize

Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce values above 1000.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

Optional. A token for a page of results other than the first page.

Returns
TypeDescription
string

setPageToken

Optional. A token for a page of results other than the first page.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLanguageCode

Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified.

The default value is "en-US".

Returns
TypeDescription
string

setLanguageCode

Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified.

The default value is "en-US".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPurchaseOption

Returns
TypeDescription
string