Class PaymentsAccount

  • All Implemented Interfaces:
    PaymentsAccountOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class PaymentsAccount
    extends com.google.protobuf.GeneratedMessageV3
    implements PaymentsAccountOrBuilder
     A payments account, which can be used to set up billing for an Ads customer.
     
    Protobuf type google.ads.googleads.v10.resources.PaymentsAccount
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_NAME_FIELD_NUMBER

        public static final int RESOURCE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PAYMENTS_ACCOUNT_ID_FIELD_NUMBER

        public static final int PAYMENTS_ACCOUNT_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CURRENCY_CODE_FIELD_NUMBER

        public static final int CURRENCY_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PAYMENTS_PROFILE_ID_FIELD_NUMBER

        public static final int PAYMENTS_PROFILE_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SECONDARY_PAYMENTS_PROFILE_ID_FIELD_NUMBER

        public static final int SECONDARY_PAYMENTS_PROFILE_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PAYING_MANAGER_CUSTOMER_FIELD_NUMBER

        public static final int PAYING_MANAGER_CUSTOMER_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getResourceName

        public java.lang.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.
      • 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 java.lang.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.
      • 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 java.lang.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.
      • 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 java.lang.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.
      • 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 java.lang.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.
      • hasSecondaryPaymentsProfileId

        public boolean hasSecondaryPaymentsProfileId()
         Output only. A secondary payments profile ID present in uncommon situations, e.g.
         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 java.lang.String getSecondaryPaymentsProfileId()
         Output only. A secondary payments profile ID present in uncommon situations, e.g.
         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, e.g.
         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.
      • 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 java.lang.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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static PaymentsAccount parseFrom​(java.nio.ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PaymentsAccount parseFrom​(java.nio.ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PaymentsAccount parseFrom​(com.google.protobuf.ByteString data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PaymentsAccount parseFrom​(com.google.protobuf.ByteString data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PaymentsAccount parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PaymentsAccount parseFrom​(byte[] data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PaymentsAccount parseFrom​(java.io.InputStream input)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static PaymentsAccount parseFrom​(java.io.InputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static PaymentsAccount parseDelimitedFrom​(java.io.InputStream input)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static PaymentsAccount parseDelimitedFrom​(java.io.InputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static PaymentsAccount parseFrom​(com.google.protobuf.CodedInputStream input)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static PaymentsAccount parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected PaymentsAccount.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<PaymentsAccount> parser()
      • getParserForType

        public com.google.protobuf.Parser<PaymentsAccount> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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