Class ListPurchasableOffersRequest.ChangeOfferPurchase.Builder (3.38.0)

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

List Offers for ChangeOffer purchase.

Protobuf type google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListPurchasableOffersRequest.ChangeOfferPurchase.Builder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPurchasableOffersRequest.ChangeOfferPurchase build()

buildPartial()

public ListPurchasableOffersRequest.ChangeOfferPurchase buildPartial()

clear()

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clear()
Overrides

clearBillingAccount()

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clearBillingAccount()

Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.

string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

clearEntitlement()

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clearEntitlement()

Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Overrides

clearNewSku()

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clearNewSku()

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Overrides

clone()

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clone()
Overrides

getBillingAccount()

public String getBillingAccount()

Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.

string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The billingAccount.

getBillingAccountBytes()

public ByteString getBillingAccountBytes()

Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.

string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for billingAccount.

getDefaultInstanceForType()

public ListPurchasableOffersRequest.ChangeOfferPurchase getDefaultInstanceForType()

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntitlement()

public String getEntitlement()

Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The entitlement.

getEntitlementBytes()

public ByteString getEntitlementBytes()

Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for entitlement.

getNewSku()

public String getNewSku()

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The newSku.

getNewSkuBytes()

public ByteString getNewSkuBytes()

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for newSku.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPurchasableOffersRequest.ChangeOfferPurchase other)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder mergeFrom(ListPurchasableOffersRequest.ChangeOfferPurchase other)

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableOffersRequest.ChangeOfferPurchase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides

setBillingAccount(String value)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setBillingAccount(String value)

Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.

string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The billingAccount to set.

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

setBillingAccountBytes(ByteString value)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setBillingAccountBytes(ByteString value)

Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.

string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for billingAccount to set.

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

setEntitlement(String value)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setEntitlement(String value)

Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The entitlement to set.

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

setEntitlementBytes(ByteString value)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setEntitlementBytes(ByteString value)

Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for entitlement to set.

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Overrides

setNewSku(String value)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setNewSku(String value)

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The newSku to set.

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

setNewSkuBytes(ByteString value)

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setNewSkuBytes(ByteString value)

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for newSku to set.

Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

This builder for chaining.

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

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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