Class PaymentsAccount.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
com.google.ads.googleads.v18.resources.PaymentsAccount.Builder
All Implemented Interfaces:
PaymentsAccountOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PaymentsAccount

public static final class PaymentsAccount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder> implements PaymentsAccountOrBuilder
 A payments account, which can be used to set up billing for an Ads customer.
 
Protobuf type google.ads.googleads.v18.resources.PaymentsAccount
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • clear

      public PaymentsAccount.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.GeneratedMessageV3.Builder<PaymentsAccount.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.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • getDefaultInstanceForType

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

      public PaymentsAccount build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PaymentsAccount buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public PaymentsAccount.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • setField

      public PaymentsAccount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • clearField

      public PaymentsAccount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • clearOneof

      public PaymentsAccount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • setRepeatedField

      public PaymentsAccount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • addRepeatedField

      public PaymentsAccount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • mergeFrom

      public PaymentsAccount.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<PaymentsAccount.Builder>
    • mergeFrom

      public PaymentsAccount.Builder mergeFrom(PaymentsAccount other)
    • isInitialized

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

      public PaymentsAccount.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<PaymentsAccount.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Output only. The resource name of the payments account.
       PaymentsAccount resource names have the form:
      
       `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface PaymentsAccountOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the payments account.
       PaymentsAccount resource names have the form:
      
       `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface PaymentsAccountOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public PaymentsAccount.Builder setResourceName(String value)
       Output only. The resource name of the payments account.
       PaymentsAccount resource names have the form:
      
       `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public PaymentsAccount.Builder clearResourceName()
       Output only. The resource name of the payments account.
       PaymentsAccount resource names have the form:
      
       `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public PaymentsAccount.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the payments account.
       PaymentsAccount resource names have the form:
      
       `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • hasPaymentsAccountId

      public boolean hasPaymentsAccountId()
       Output only. A 16 digit ID used to identify a payments account.
       
      optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPaymentsAccountId in interface PaymentsAccountOrBuilder
      Returns:
      Whether the paymentsAccountId field is set.
    • getPaymentsAccountId

      public String getPaymentsAccountId()
       Output only. A 16 digit ID used to identify a payments account.
       
      optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPaymentsAccountId in interface PaymentsAccountOrBuilder
      Returns:
      The paymentsAccountId.
    • getPaymentsAccountIdBytes

      public com.google.protobuf.ByteString getPaymentsAccountIdBytes()
       Output only. A 16 digit ID used to identify a payments account.
       
      optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPaymentsAccountIdBytes in interface PaymentsAccountOrBuilder
      Returns:
      The bytes for paymentsAccountId.
    • setPaymentsAccountId

      public PaymentsAccount.Builder setPaymentsAccountId(String value)
       Output only. A 16 digit ID used to identify a payments account.
       
      optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The paymentsAccountId to set.
      Returns:
      This builder for chaining.
    • clearPaymentsAccountId

      public PaymentsAccount.Builder clearPaymentsAccountId()
       Output only. A 16 digit ID used to identify a payments account.
       
      optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPaymentsAccountIdBytes

      public PaymentsAccount.Builder setPaymentsAccountIdBytes(com.google.protobuf.ByteString value)
       Output only. A 16 digit ID used to identify a payments account.
       
      optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for paymentsAccountId to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Output only. The name of the payments account.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasName in interface PaymentsAccountOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. The name of the payments account.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface PaymentsAccountOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the payments account.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface PaymentsAccountOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PaymentsAccount.Builder setName(String value)
       Output only. The name of the payments account.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PaymentsAccount.Builder clearName()
       Output only. The name of the payments account.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public PaymentsAccount.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the payments account.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCurrencyCode

      public boolean hasCurrencyCode()
       Output only. The currency code of the payments account.
       A subset of the currency codes derived from the ISO 4217 standard is
       supported.
       
      optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCurrencyCode in interface PaymentsAccountOrBuilder
      Returns:
      Whether the currencyCode field is set.
    • getCurrencyCode

      public String getCurrencyCode()
       Output only. The currency code of the payments account.
       A subset of the currency codes derived from the ISO 4217 standard is
       supported.
       
      optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCurrencyCode in interface PaymentsAccountOrBuilder
      Returns:
      The currencyCode.
    • getCurrencyCodeBytes

      public com.google.protobuf.ByteString getCurrencyCodeBytes()
       Output only. The currency code of the payments account.
       A subset of the currency codes derived from the ISO 4217 standard is
       supported.
       
      optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCurrencyCodeBytes in interface PaymentsAccountOrBuilder
      Returns:
      The bytes for currencyCode.
    • setCurrencyCode

      public PaymentsAccount.Builder setCurrencyCode(String value)
       Output only. The currency code of the payments account.
       A subset of the currency codes derived from the ISO 4217 standard is
       supported.
       
      optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The currencyCode to set.
      Returns:
      This builder for chaining.
    • clearCurrencyCode

      public PaymentsAccount.Builder clearCurrencyCode()
       Output only. The currency code of the payments account.
       A subset of the currency codes derived from the ISO 4217 standard is
       supported.
       
      optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCurrencyCodeBytes

      public PaymentsAccount.Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value)
       Output only. The currency code of the payments account.
       A subset of the currency codes derived from the ISO 4217 standard is
       supported.
       
      optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for currencyCode to set.
      Returns:
      This builder for chaining.
    • hasPaymentsProfileId

      public boolean hasPaymentsProfileId()
       Output only. A 12 digit ID used to identify the payments profile associated
       with the payments account.
       
      optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPaymentsProfileId in interface PaymentsAccountOrBuilder
      Returns:
      Whether the paymentsProfileId field is set.
    • getPaymentsProfileId

      public String getPaymentsProfileId()
       Output only. A 12 digit ID used to identify the payments profile associated
       with the payments account.
       
      optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPaymentsProfileId in interface PaymentsAccountOrBuilder
      Returns:
      The paymentsProfileId.
    • getPaymentsProfileIdBytes

      public com.google.protobuf.ByteString getPaymentsProfileIdBytes()
       Output only. A 12 digit ID used to identify the payments profile associated
       with the payments account.
       
      optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPaymentsProfileIdBytes in interface PaymentsAccountOrBuilder
      Returns:
      The bytes for paymentsProfileId.
    • setPaymentsProfileId

      public PaymentsAccount.Builder setPaymentsProfileId(String value)
       Output only. A 12 digit ID used to identify the payments profile associated
       with the payments account.
       
      optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The paymentsProfileId to set.
      Returns:
      This builder for chaining.
    • clearPaymentsProfileId

      public PaymentsAccount.Builder clearPaymentsProfileId()
       Output only. A 12 digit ID used to identify the payments profile associated
       with the payments account.
       
      optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPaymentsProfileIdBytes

      public PaymentsAccount.Builder setPaymentsProfileIdBytes(com.google.protobuf.ByteString value)
       Output only. A 12 digit ID used to identify the payments profile associated
       with the payments account.
       
      optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for paymentsProfileId to set.
      Returns:
      This builder for chaining.
    • hasSecondaryPaymentsProfileId

      public boolean hasSecondaryPaymentsProfileId()
       Output only. A secondary payments profile ID present in uncommon
       situations, for example, when a sequential liability agreement has been
       arranged.
       
      optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSecondaryPaymentsProfileId in interface PaymentsAccountOrBuilder
      Returns:
      Whether the secondaryPaymentsProfileId field is set.
    • getSecondaryPaymentsProfileId

      public String getSecondaryPaymentsProfileId()
       Output only. A secondary payments profile ID present in uncommon
       situations, for example, when a sequential liability agreement has been
       arranged.
       
      optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSecondaryPaymentsProfileId in interface PaymentsAccountOrBuilder
      Returns:
      The secondaryPaymentsProfileId.
    • getSecondaryPaymentsProfileIdBytes

      public com.google.protobuf.ByteString getSecondaryPaymentsProfileIdBytes()
       Output only. A secondary payments profile ID present in uncommon
       situations, for example, when a sequential liability agreement has been
       arranged.
       
      optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSecondaryPaymentsProfileIdBytes in interface PaymentsAccountOrBuilder
      Returns:
      The bytes for secondaryPaymentsProfileId.
    • setSecondaryPaymentsProfileId

      public PaymentsAccount.Builder setSecondaryPaymentsProfileId(String value)
       Output only. A secondary payments profile ID present in uncommon
       situations, for example, when a sequential liability agreement has been
       arranged.
       
      optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The secondaryPaymentsProfileId to set.
      Returns:
      This builder for chaining.
    • clearSecondaryPaymentsProfileId

      public PaymentsAccount.Builder clearSecondaryPaymentsProfileId()
       Output only. A secondary payments profile ID present in uncommon
       situations, for example, when a sequential liability agreement has been
       arranged.
       
      optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSecondaryPaymentsProfileIdBytes

      public PaymentsAccount.Builder setSecondaryPaymentsProfileIdBytes(com.google.protobuf.ByteString value)
       Output only. A secondary payments profile ID present in uncommon
       situations, for example, when a sequential liability agreement has been
       arranged.
       
      optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for secondaryPaymentsProfileId to set.
      Returns:
      This builder for chaining.
    • hasPayingManagerCustomer

      public boolean hasPayingManagerCustomer()
       Output only. Paying manager of this payment account.
       
      optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      hasPayingManagerCustomer in interface PaymentsAccountOrBuilder
      Returns:
      Whether the payingManagerCustomer field is set.
    • getPayingManagerCustomer

      public String getPayingManagerCustomer()
       Output only. Paying manager of this payment account.
       
      optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getPayingManagerCustomer in interface PaymentsAccountOrBuilder
      Returns:
      The payingManagerCustomer.
    • getPayingManagerCustomerBytes

      public com.google.protobuf.ByteString getPayingManagerCustomerBytes()
       Output only. Paying manager of this payment account.
       
      optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getPayingManagerCustomerBytes in interface PaymentsAccountOrBuilder
      Returns:
      The bytes for payingManagerCustomer.
    • setPayingManagerCustomer

      public PaymentsAccount.Builder setPayingManagerCustomer(String value)
       Output only. Paying manager of this payment account.
       
      optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The payingManagerCustomer to set.
      Returns:
      This builder for chaining.
    • clearPayingManagerCustomer

      public PaymentsAccount.Builder clearPayingManagerCustomer()
       Output only. Paying manager of this payment account.
       
      optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPayingManagerCustomerBytes

      public PaymentsAccount.Builder setPayingManagerCustomerBytes(com.google.protobuf.ByteString value)
       Output only. Paying manager of this payment account.
       
      optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for payingManagerCustomer to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final PaymentsAccount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
    • mergeUnknownFields

      public final PaymentsAccount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>