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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListPurchasableOffersRequest.ChangeOfferPurchase build()
Returns
buildPartial()
public ListPurchasableOffersRequest.ChangeOfferPurchase buildPartial()
Returns
clear()
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListPurchasableOffersRequest.ChangeOfferPurchase getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Type | Description |
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
Type | Description |
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
Type | Description |
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListPurchasableOffersRequest.ChangeOfferPurchase other)
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder mergeFrom(ListPurchasableOffersRequest.ChangeOfferPurchase other)
Parameter
Returns
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListPurchasableOffersRequest.ChangeOfferPurchase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Name | Description |
value | String
The entitlement to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for entitlement to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The newSku to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for newSku to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides