Class ListPurchasableOffersRequest.Builder (3.20.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPurchasableOffersRequest build()
Returns
TypeDescription
ListPurchasableOffersRequest

buildPartial()

public ListPurchasableOffersRequest buildPartial()
Returns
TypeDescription
ListPurchasableOffersRequest

clear()

public ListPurchasableOffersRequest.Builder clear()
Returns
TypeDescription
ListPurchasableOffersRequest.Builder
Overrides

clearChangeOfferPurchase()

public ListPurchasableOffersRequest.Builder clearChangeOfferPurchase()

List Offers for ChangeOffer purchase.

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

Returns
TypeDescription
ListPurchasableOffersRequest.Builder

clearCreateEntitlementPurchase()

public ListPurchasableOffersRequest.Builder clearCreateEntitlementPurchase()

List Offers for CreateEntitlement purchase.

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

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearPurchaseOption()

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

clone()

public ListPurchasableOffersRequest.Builder clone()
Returns
TypeDescription
ListPurchasableOffersRequest.Builder
Overrides

getChangeOfferPurchase()

public ListPurchasableOffersRequest.ChangeOfferPurchase getChangeOfferPurchase()

List Offers for ChangeOffer purchase.

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

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

getChangeOfferPurchaseOrBuilder()

public ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder getChangeOfferPurchaseOrBuilder()

List Offers for ChangeOffer purchase.

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

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder

getCreateEntitlementPurchase()

public ListPurchasableOffersRequest.CreateEntitlementPurchase getCreateEntitlementPurchase()

List Offers for CreateEntitlement purchase.

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

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

getCreateEntitlementPurchaseOrBuilder()

public ListPurchasableOffersRequest.CreateEntitlementPurchaseOrBuilder getCreateEntitlementPurchaseOrBuilder()

List Offers for CreateEntitlement purchase.

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

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

The bytes for customer.

getDefaultInstanceForType()

public ListPurchasableOffersRequest getDefaultInstanceForType()
Returns
TypeDescription
ListPurchasableOffersRequest

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

hasChangeOfferPurchase()

public boolean hasChangeOfferPurchase()

List Offers for ChangeOffer purchase.

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

Returns
TypeDescription
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
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(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
NameDescription
valueListPurchasableOffersRequest.ChangeOfferPurchase
Returns
TypeDescription
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
NameDescription
valueListPurchasableOffersRequest.CreateEntitlementPurchase
Returns
TypeDescription
ListPurchasableOffersRequest.Builder

mergeFrom(ListPurchasableOffersRequest other)

public ListPurchasableOffersRequest.Builder mergeFrom(ListPurchasableOffersRequest other)
Parameter
NameDescription
otherListPurchasableOffersRequest
Returns
TypeDescription
ListPurchasableOffersRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The customer to set.

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

The bytes for customer to set.

Returns
TypeDescription
ListPurchasableOffersRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The languageCode to set.

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

The bytes for languageCode to set.

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

The pageSize to set.

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

The pageToken to set.

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

The bytes for pageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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