Class ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListPurchasableOffersRequest.ChangeOfferPurchase.Builder>
com.google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase.Builder
All Implemented Interfaces:
ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListPurchasableOffersRequest.ChangeOfferPurchase

public static final class ListPurchasableOffersRequest.ChangeOfferPurchase.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListPurchasableOffersRequest.ChangeOfferPurchase.Builder> implements ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder
 List Offers for ChangeOffer purchase.
 
Protobuf type google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListPurchasableOffersRequest.ChangeOfferPurchase.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListPurchasableOffersRequest.ChangeOfferPurchase.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ListPurchasableOffersRequest.ChangeOfferPurchase.Builder>
    • getDefaultInstanceForType

      public ListPurchasableOffersRequest.ChangeOfferPurchase getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListPurchasableOffersRequest.ChangeOfferPurchase.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ListPurchasableOffersRequest.ChangeOfferPurchase.Builder>
    • mergeFrom

      public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListPurchasableOffersRequest.ChangeOfferPurchase.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getEntitlement in interface ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder
      Returns:
      The entitlement.
    • getEntitlementBytes

      public com.google.protobuf.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];
      Specified by:
      getEntitlementBytes in interface ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder
      Returns:
      The bytes for entitlement.
    • setEntitlement

       Required. Resource name of the entitlement.
       Format:
       accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
       
      string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The entitlement to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setEntitlementBytes

      public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setEntitlementBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for entitlement to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getNewSku in interface ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder
      Returns:
      The newSku.
    • getNewSkuBytes

      public com.google.protobuf.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];
      Specified by:
      getNewSkuBytes in interface ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder
      Returns:
      The bytes for newSku.
    • setNewSku

       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];
      Parameters:
      value - The newSku to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNewSkuBytes

      public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setNewSkuBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for newSku to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getBillingAccount in interface ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder
      Returns:
      The billingAccount.
    • getBillingAccountBytes

      public com.google.protobuf.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];
      Specified by:
      getBillingAccountBytes in interface ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder
      Returns:
      The bytes for billingAccount.
    • setBillingAccount

       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];
      Parameters:
      value - The billingAccount to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setBillingAccountBytes

      public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder setBillingAccountBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for billingAccount to set.
      Returns:
      This builder for chaining.