Class ListPurchasableOffersRequest.Builder (3.51.0)

public static final class ListPurchasableOffersRequest.Builder extends GeneratedMessageV3.Builder<ListPurchasableOffersRequest.Builder> implements ListPurchasableOffersRequestOrBuilder

Request message for ListPurchasableOffers.

Protobuf type google.cloud.channel.v1.ListPurchasableOffersRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPurchasableOffersRequest build()
Returns
Type Description
ListPurchasableOffersRequest

buildPartial()

public ListPurchasableOffersRequest buildPartial()
Returns
Type Description
ListPurchasableOffersRequest

clear()

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

clearChangeOfferPurchase()

public ListPurchasableOffersRequest.Builder clearChangeOfferPurchase()

List Offers for ChangeOffer purchase.

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

Returns
Type Description
ListPurchasableOffersRequest.Builder

clearCreateEntitlementPurchase()

public ListPurchasableOffersRequest.Builder clearCreateEntitlementPurchase()

List Offers for CreateEntitlement purchase.

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

Returns
Type Description
ListPurchasableOffersRequest.Builder

clearCustomer()

public ListPurchasableOffersRequest.Builder clearCustomer()

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

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

Returns
Type Description
ListPurchasableOffersRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public ListPurchasableOffersRequest.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
ListPurchasableOffersRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListPurchasableOffersRequest.Builder clearPageSize()

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

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

Returns
Type Description
ListPurchasableOffersRequest.Builder

This builder for chaining.

clearPageToken()

public ListPurchasableOffersRequest.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
ListPurchasableOffersRequest.Builder

This builder for chaining.

clearPurchaseOption()

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

clone()

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

getChangeOfferPurchase()

public ListPurchasableOffersRequest.ChangeOfferPurchase getChangeOfferPurchase()

List Offers for ChangeOffer purchase.

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

Returns
Type Description
ListPurchasableOffersRequest.ChangeOfferPurchase

The changeOfferPurchase.

getChangeOfferPurchaseBuilder()

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder getChangeOfferPurchaseBuilder()

List Offers for ChangeOffer purchase.

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

Returns
Type Description
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

getChangeOfferPurchaseOrBuilder()

public ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder getChangeOfferPurchaseOrBuilder()

List Offers for ChangeOffer purchase.

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

Returns
Type Description
ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder

getCreateEntitlementPurchase()

public ListPurchasableOffersRequest.CreateEntitlementPurchase getCreateEntitlementPurchase()

List Offers for CreateEntitlement purchase.

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

Returns
Type Description
ListPurchasableOffersRequest.CreateEntitlementPurchase

The createEntitlementPurchase.

getCreateEntitlementPurchaseBuilder()

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder getCreateEntitlementPurchaseBuilder()

List Offers for CreateEntitlement purchase.

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

Returns
Type Description
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder

getCreateEntitlementPurchaseOrBuilder()

public ListPurchasableOffersRequest.CreateEntitlementPurchaseOrBuilder getCreateEntitlementPurchaseOrBuilder()

List Offers for CreateEntitlement purchase.

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

Returns
Type Description
ListPurchasableOffersRequest.CreateEntitlementPurchaseOrBuilder

getCustomer()

public String getCustomer()

Required. The resource name of the customer to list Offers 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 Offers 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 ListPurchasableOffersRequest getDefaultInstanceForType()
Returns
Type Description
ListPurchasableOffersRequest

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 Offers. 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 ListPurchasableOffersRequest.PurchaseOptionCase getPurchaseOptionCase()
Returns
Type Description
ListPurchasableOffersRequest.PurchaseOptionCase

hasChangeOfferPurchase()

public boolean hasChangeOfferPurchase()

List Offers for ChangeOffer purchase.

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

Returns
Type Description
boolean

Whether the changeOfferPurchase field is set.

hasCreateEntitlementPurchase()

public boolean hasCreateEntitlementPurchase()

List Offers for CreateEntitlement purchase.

.google.cloud.channel.v1.ListPurchasableOffersRequest.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(ListPurchasableOffersRequest.ChangeOfferPurchase value)

public ListPurchasableOffersRequest.Builder mergeChangeOfferPurchase(ListPurchasableOffersRequest.ChangeOfferPurchase value)

List Offers for ChangeOffer purchase.

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

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

mergeCreateEntitlementPurchase(ListPurchasableOffersRequest.CreateEntitlementPurchase value)

public ListPurchasableOffersRequest.Builder mergeCreateEntitlementPurchase(ListPurchasableOffersRequest.CreateEntitlementPurchase value)

List Offers for CreateEntitlement purchase.

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

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

mergeFrom(ListPurchasableOffersRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setChangeOfferPurchase(ListPurchasableOffersRequest.ChangeOfferPurchase value)

public ListPurchasableOffersRequest.Builder setChangeOfferPurchase(ListPurchasableOffersRequest.ChangeOfferPurchase value)

List Offers for ChangeOffer purchase.

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

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

setChangeOfferPurchase(ListPurchasableOffersRequest.ChangeOfferPurchase.Builder builderForValue)

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

List Offers for ChangeOffer purchase.

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

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

setCreateEntitlementPurchase(ListPurchasableOffersRequest.CreateEntitlementPurchase value)

public ListPurchasableOffersRequest.Builder setCreateEntitlementPurchase(ListPurchasableOffersRequest.CreateEntitlementPurchase value)

List Offers for CreateEntitlement purchase.

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

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

setCreateEntitlementPurchase(ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder builderForValue)

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

List Offers for CreateEntitlement purchase.

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

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

setCustomer(String value)

public ListPurchasableOffersRequest.Builder setCustomer(String value)

Required. The resource name of the customer to list Offers 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
ListPurchasableOffersRequest.Builder

This builder for chaining.

setCustomerBytes(ByteString value)

public ListPurchasableOffersRequest.Builder setCustomerBytes(ByteString value)

Required. The resource name of the customer to list Offers 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
ListPurchasableOffersRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

public ListPurchasableOffersRequest.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
ListPurchasableOffersRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public ListPurchasableOffersRequest.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
ListPurchasableOffersRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListPurchasableOffersRequest.Builder setPageSize(int value)

Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 Offers. 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
ListPurchasableOffersRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListPurchasableOffersRequest.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
ListPurchasableOffersRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListPurchasableOffersRequest.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
ListPurchasableOffersRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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