Class ListPurchasableSkusRequest.Builder (3.10.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableSkusRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListPurchasableSkusRequest.Builder
Overrides

build()

public ListPurchasableSkusRequest build()
Returns
TypeDescription
ListPurchasableSkusRequest

buildPartial()

public ListPurchasableSkusRequest buildPartial()
Returns
TypeDescription
ListPurchasableSkusRequest

clear()

public ListPurchasableSkusRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListPurchasableSkusRequest.Builder

clearCreateEntitlementPurchase()

public ListPurchasableSkusRequest.Builder clearCreateEntitlementPurchase()

List SKUs for CreateEntitlement purchase.

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

Returns
TypeDescription
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
TypeDescription
ListPurchasableSkusRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ListPurchasableSkusRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListPurchasableSkusRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListPurchasableSkusRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListPurchasableSkusRequest.Builder

This builder for chaining.

clearPurchaseOption()

public ListPurchasableSkusRequest.Builder clearPurchaseOption()
Returns
TypeDescription
ListPurchasableSkusRequest.Builder

clone()

public ListPurchasableSkusRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ListPurchasableSkusRequest.ChangeOfferPurchaseOrBuilder

getCreateEntitlementPurchase()

public ListPurchasableSkusRequest.CreateEntitlementPurchase getCreateEntitlementPurchase()

List SKUs for CreateEntitlement purchase.

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

Returns
TypeDescription
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
TypeDescription
ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder

getCreateEntitlementPurchaseOrBuilder()

public ListPurchasableSkusRequest.CreateEntitlementPurchaseOrBuilder getCreateEntitlementPurchaseOrBuilder()

List SKUs for CreateEntitlement purchase.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for customer.

getDefaultInstanceForType()

public ListPurchasableSkusRequest getDefaultInstanceForType()
Returns
TypeDescription
ListPurchasableSkusRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for pageToken.

getPurchaseOptionCase()

public ListPurchasableSkusRequest.PurchaseOptionCase getPurchaseOptionCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createEntitlementPurchase field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueListPurchasableSkusRequest.ChangeOfferPurchase
Returns
TypeDescription
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
NameDescription
valueListPurchasableSkusRequest.CreateEntitlementPurchase
Returns
TypeDescription
ListPurchasableSkusRequest.Builder

mergeFrom(ListPurchasableSkusRequest other)

public ListPurchasableSkusRequest.Builder mergeFrom(ListPurchasableSkusRequest other)
Parameter
NameDescription
otherListPurchasableSkusRequest
Returns
TypeDescription
ListPurchasableSkusRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListPurchasableSkusRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListPurchasableSkusRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListPurchasableSkusRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListPurchasableSkusRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableSkusRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueListPurchasableSkusRequest.ChangeOfferPurchase
Returns
TypeDescription
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
NameDescription
builderForValueListPurchasableSkusRequest.ChangeOfferPurchase.Builder
Returns
TypeDescription
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
NameDescription
valueListPurchasableSkusRequest.CreateEntitlementPurchase
Returns
TypeDescription
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
NameDescription
builderForValueListPurchasableSkusRequest.CreateEntitlementPurchase.Builder
Returns
TypeDescription
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
NameDescription
valueString

The customer to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for customer to set.

Returns
TypeDescription
ListPurchasableSkusRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableSkusRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
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
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
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
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListPurchasableSkusRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableSkusRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListPurchasableSkusRequest.Builder
Overrides