Class ListPurchasableOffersRequest.ChangeOfferPurchase.Builder (3.5.1)

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

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

build()

public ListPurchasableOffersRequest.ChangeOfferPurchase build()
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase

buildPartial()

public ListPurchasableOffersRequest.ChangeOfferPurchase buildPartial()
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase

clear()

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

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

clone()

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

getDefaultInstanceForType()

public ListPurchasableOffersRequest.ChangeOfferPurchase getDefaultInstanceForType()
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase

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)
Parameter
NameDescription
otherListPurchasableOffersRequest.ChangeOfferPurchase
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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