Class ListPurchasableSkusRequest.Builder (3.49.0)

public static final class ListPurchasableSkusRequest.Builder extends GeneratedMessageV3.Builder<ListPurchasableSkusRequest.Builder> implements ListPurchasableSkusRequestOrBuilder

Request message for ListPurchasableSkus.

Protobuf type google.cloud.channel.v1.ListPurchasableSkusRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableSkusRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

build()

public ListPurchasableSkusRequest build()
Returns
Type Description
ListPurchasableSkusRequest

buildPartial()

public ListPurchasableSkusRequest buildPartial()
Returns
Type Description
ListPurchasableSkusRequest

clear()

public ListPurchasableSkusRequest.Builder clear()
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

clearChangeOfferPurchase()

public ListPurchasableSkusRequest.Builder clearChangeOfferPurchase()

List SKUs for ChangeOffer purchase with a new SKU.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3;

Returns
Type Description
ListPurchasableSkusRequest.Builder

clearCreateEntitlementPurchase()

public ListPurchasableSkusRequest.Builder clearCreateEntitlementPurchase()

List SKUs for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2;

Returns
Type Description
ListPurchasableSkusRequest.Builder

clearCustomer()

public ListPurchasableSkusRequest.Builder clearCustomer()

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

string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ListPurchasableSkusRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

clearLanguageCode()

public ListPurchasableSkusRequest.Builder clearLanguageCode()

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".

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListPurchasableSkusRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

clearPageSize()

public ListPurchasableSkusRequest.Builder clearPageSize()

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.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

clearPageToken()

public ListPurchasableSkusRequest.Builder clearPageToken()

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

clearPurchaseOption()

public ListPurchasableSkusRequest.Builder clearPurchaseOption()
Returns
Type Description
ListPurchasableSkusRequest.Builder

clone()

public ListPurchasableSkusRequest.Builder clone()
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

getChangeOfferPurchase()

public ListPurchasableSkusRequest.ChangeOfferPurchase getChangeOfferPurchase()

List SKUs for ChangeOffer purchase with a new SKU.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3;

Returns
Type Description
ListPurchasableSkusRequest.ChangeOfferPurchase

The changeOfferPurchase.

getChangeOfferPurchaseBuilder()

public ListPurchasableSkusRequest.ChangeOfferPurchase.Builder getChangeOfferPurchaseBuilder()

List SKUs for ChangeOffer purchase with a new SKU.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3;

Returns
Type Description
ListPurchasableSkusRequest.ChangeOfferPurchase.Builder

getChangeOfferPurchaseOrBuilder()

public ListPurchasableSkusRequest.ChangeOfferPurchaseOrBuilder getChangeOfferPurchaseOrBuilder()

List SKUs for ChangeOffer purchase with a new SKU.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3;

Returns
Type Description
ListPurchasableSkusRequest.ChangeOfferPurchaseOrBuilder

getCreateEntitlementPurchase()

public ListPurchasableSkusRequest.CreateEntitlementPurchase getCreateEntitlementPurchase()

List SKUs for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2;

Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase

The createEntitlementPurchase.

getCreateEntitlementPurchaseBuilder()

public ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder getCreateEntitlementPurchaseBuilder()

List SKUs for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2;

Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder

getCreateEntitlementPurchaseOrBuilder()

public ListPurchasableSkusRequest.CreateEntitlementPurchaseOrBuilder getCreateEntitlementPurchaseOrBuilder()

List SKUs for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2;

Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchaseOrBuilder

getCustomer()

public String getCustomer()

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

string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The customer.

getCustomerBytes()

public ByteString getCustomerBytes()

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

string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for customer.

getDefaultInstanceForType()

public ListPurchasableSkusRequest getDefaultInstanceForType()
Returns
Type Description
ListPurchasableSkusRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLanguageCode()

public String 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".

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

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".

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for languageCode.

getPageSize()

public int 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.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getPurchaseOptionCase()

public ListPurchasableSkusRequest.PurchaseOptionCase getPurchaseOptionCase()
Returns
Type Description
ListPurchasableSkusRequest.PurchaseOptionCase

hasChangeOfferPurchase()

public boolean hasChangeOfferPurchase()

List SKUs for ChangeOffer purchase with a new SKU.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3;

Returns
Type Description
boolean

Whether the changeOfferPurchase field is set.

hasCreateEntitlementPurchase()

public boolean hasCreateEntitlementPurchase()

List SKUs for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2;

Returns
Type Description
boolean

Whether the createEntitlementPurchase field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeChangeOfferPurchase(ListPurchasableSkusRequest.ChangeOfferPurchase value)

public ListPurchasableSkusRequest.Builder mergeChangeOfferPurchase(ListPurchasableSkusRequest.ChangeOfferPurchase value)

List SKUs for ChangeOffer purchase with a new SKU.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3;

Parameter
Name Description
value ListPurchasableSkusRequest.ChangeOfferPurchase
Returns
Type Description
ListPurchasableSkusRequest.Builder

mergeCreateEntitlementPurchase(ListPurchasableSkusRequest.CreateEntitlementPurchase value)

public ListPurchasableSkusRequest.Builder mergeCreateEntitlementPurchase(ListPurchasableSkusRequest.CreateEntitlementPurchase value)

List SKUs for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2;

Parameter
Name Description
value ListPurchasableSkusRequest.CreateEntitlementPurchase
Returns
Type Description
ListPurchasableSkusRequest.Builder

mergeFrom(ListPurchasableSkusRequest other)

public ListPurchasableSkusRequest.Builder mergeFrom(ListPurchasableSkusRequest other)
Parameter
Name Description
other ListPurchasableSkusRequest
Returns
Type Description
ListPurchasableSkusRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListPurchasableSkusRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListPurchasableSkusRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableSkusRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

setChangeOfferPurchase(ListPurchasableSkusRequest.ChangeOfferPurchase value)

public ListPurchasableSkusRequest.Builder setChangeOfferPurchase(ListPurchasableSkusRequest.ChangeOfferPurchase value)

List SKUs for ChangeOffer purchase with a new SKU.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3;

Parameter
Name Description
value ListPurchasableSkusRequest.ChangeOfferPurchase
Returns
Type Description
ListPurchasableSkusRequest.Builder

setChangeOfferPurchase(ListPurchasableSkusRequest.ChangeOfferPurchase.Builder builderForValue)

public ListPurchasableSkusRequest.Builder setChangeOfferPurchase(ListPurchasableSkusRequest.ChangeOfferPurchase.Builder builderForValue)

List SKUs for ChangeOffer purchase with a new SKU.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3;

Parameter
Name Description
builderForValue ListPurchasableSkusRequest.ChangeOfferPurchase.Builder
Returns
Type Description
ListPurchasableSkusRequest.Builder

setCreateEntitlementPurchase(ListPurchasableSkusRequest.CreateEntitlementPurchase value)

public ListPurchasableSkusRequest.Builder setCreateEntitlementPurchase(ListPurchasableSkusRequest.CreateEntitlementPurchase value)

List SKUs for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2;

Parameter
Name Description
value ListPurchasableSkusRequest.CreateEntitlementPurchase
Returns
Type Description
ListPurchasableSkusRequest.Builder

setCreateEntitlementPurchase(ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder builderForValue)

public ListPurchasableSkusRequest.Builder setCreateEntitlementPurchase(ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder builderForValue)

List SKUs for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2;

Parameter
Name Description
builderForValue ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder
Returns
Type Description
ListPurchasableSkusRequest.Builder

setCustomer(String value)

public ListPurchasableSkusRequest.Builder setCustomer(String value)

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

string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The customer to set.

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

setCustomerBytes(ByteString value)

public ListPurchasableSkusRequest.Builder setCustomerBytes(ByteString value)

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

string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for customer to set.

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableSkusRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

setLanguageCode(String value)

public ListPurchasableSkusRequest.Builder setLanguageCode(String value)

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".

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public ListPurchasableSkusRequest.Builder setLanguageCodeBytes(ByteString value)

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".

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListPurchasableSkusRequest.Builder setPageSize(int value)

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.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListPurchasableSkusRequest.Builder setPageToken(String value)

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListPurchasableSkusRequest.Builder setPageTokenBytes(ByteString value)

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListPurchasableSkusRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListPurchasableSkusRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableSkusRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListPurchasableSkusRequest.Builder
Overrides