Class Invoice.Builder

  • All Implemented Interfaces:
    InvoiceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Invoice

    public static final class Invoice.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Invoice.Builder>
    implements InvoiceOrBuilder
     An invoice. All invoice information is snapshotted to match the PDF invoice.
     For invoices older than the launch of InvoiceService, the snapshotted
     information may not match the PDF invoice.
     
    Protobuf type google.ads.googleads.v9.resources.Invoice
    • Method Detail

      • 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<Invoice.Builder>
      • clear

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

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

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

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

        public Invoice.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<Invoice.Builder>
      • setField

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

        public Invoice.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<Invoice.Builder>
      • clearOneof

        public Invoice.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<Invoice.Builder>
      • setRepeatedField

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

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

        public Invoice.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<Invoice.Builder>
      • isInitialized

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

        public Invoice.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws java.io.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<Invoice.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Output only. The resource name of the invoice. Multiple customers can share a given
         invoice, so multiple resource names may point to the same invoice.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface InvoiceOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Output only. The resource name of the invoice. Multiple customers can share a given
         invoice, so multiple resource names may point to the same invoice.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public Invoice.Builder setResourceName​(java.lang.String value)
         Output only. The resource name of the invoice. Multiple customers can share a given
         invoice, so multiple resource names may point to the same invoice.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_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 Invoice.Builder clearResourceName()
         Output only. The resource name of the invoice. Multiple customers can share a given
         invoice, so multiple resource names may point to the same invoice.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public Invoice.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the invoice. Multiple customers can share a given
         invoice, so multiple resource names may point to the same invoice.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_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.
      • hasId

        public boolean hasId()
         Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
         
        optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasId in interface InvoiceOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public java.lang.String getId()
         Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
         
        optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface InvoiceOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
         
        optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIdBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Invoice.Builder setId​(java.lang.String value)
         Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
         
        optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Invoice.Builder clearId()
         Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
         
        optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setIdBytes

        public Invoice.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
         
        optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Output only. The type of invoice.
         
        .google.ads.googleads.v9.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTypeValue in interface InvoiceOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public Invoice.Builder setTypeValue​(int value)
         Output only. The type of invoice.
         
        .google.ads.googleads.v9.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public InvoiceTypeEnum.InvoiceType getType()
         Output only. The type of invoice.
         
        .google.ads.googleads.v9.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getType in interface InvoiceOrBuilder
        Returns:
        The type.
      • setType

        public Invoice.Builder setType​(InvoiceTypeEnum.InvoiceType value)
         Output only. The type of invoice.
         
        .google.ads.googleads.v9.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Invoice.Builder clearType()
         Output only. The type of invoice.
         
        .google.ads.googleads.v9.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasBillingSetup

        public boolean hasBillingSetup()
         Output only. The resource name of this invoice’s billing setup.
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasBillingSetup in interface InvoiceOrBuilder
        Returns:
        Whether the billingSetup field is set.
      • getBillingSetup

        public java.lang.String getBillingSetup()
         Output only. The resource name of this invoice’s billing setup.
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBillingSetup in interface InvoiceOrBuilder
        Returns:
        The billingSetup.
      • getBillingSetupBytes

        public com.google.protobuf.ByteString getBillingSetupBytes()
         Output only. The resource name of this invoice’s billing setup.
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBillingSetupBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for billingSetup.
      • setBillingSetup

        public Invoice.Builder setBillingSetup​(java.lang.String value)
         Output only. The resource name of this invoice’s billing setup.
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The billingSetup to set.
        Returns:
        This builder for chaining.
      • clearBillingSetup

        public Invoice.Builder clearBillingSetup()
         Output only. The resource name of this invoice’s billing setup.
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setBillingSetupBytes

        public Invoice.Builder setBillingSetupBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of this invoice’s billing setup.
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for billingSetup to set.
        Returns:
        This builder for chaining.
      • hasPaymentsAccountId

        public boolean hasPaymentsAccountId()
         Output only. A 16 digit ID used to identify the payments account associated with the
         billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as
         "Billing Account Number".
         
        optional string payments_account_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasPaymentsAccountId in interface InvoiceOrBuilder
        Returns:
        Whether the paymentsAccountId field is set.
      • getPaymentsAccountId

        public java.lang.String getPaymentsAccountId()
         Output only. A 16 digit ID used to identify the payments account associated with the
         billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as
         "Billing Account Number".
         
        optional string payments_account_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPaymentsAccountId in interface InvoiceOrBuilder
        Returns:
        The paymentsAccountId.
      • getPaymentsAccountIdBytes

        public com.google.protobuf.ByteString getPaymentsAccountIdBytes()
         Output only. A 16 digit ID used to identify the payments account associated with the
         billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as
         "Billing Account Number".
         
        optional string payments_account_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPaymentsAccountIdBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for paymentsAccountId.
      • setPaymentsAccountId

        public Invoice.Builder setPaymentsAccountId​(java.lang.String value)
         Output only. A 16 digit ID used to identify the payments account associated with the
         billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as
         "Billing Account Number".
         
        optional string payments_account_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The paymentsAccountId to set.
        Returns:
        This builder for chaining.
      • clearPaymentsAccountId

        public Invoice.Builder clearPaymentsAccountId()
         Output only. A 16 digit ID used to identify the payments account associated with the
         billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as
         "Billing Account Number".
         
        optional string payments_account_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPaymentsAccountIdBytes

        public Invoice.Builder setPaymentsAccountIdBytes​(com.google.protobuf.ByteString value)
         Output only. A 16 digit ID used to identify the payments account associated with the
         billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as
         "Billing Account Number".
         
        optional string payments_account_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for paymentsAccountId 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
         billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as
         "Billing ID".
         
        optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasPaymentsProfileId in interface InvoiceOrBuilder
        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
         billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as
         "Billing ID".
         
        optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPaymentsProfileId in interface InvoiceOrBuilder
        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
         billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as
         "Billing ID".
         
        optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPaymentsProfileIdBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for paymentsProfileId.
      • setPaymentsProfileId

        public Invoice.Builder setPaymentsProfileId​(java.lang.String value)
         Output only. A 12 digit ID used to identify the payments profile associated with the
         billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as
         "Billing ID".
         
        optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The paymentsProfileId to set.
        Returns:
        This builder for chaining.
      • clearPaymentsProfileId

        public Invoice.Builder clearPaymentsProfileId()
         Output only. A 12 digit ID used to identify the payments profile associated with the
         billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as
         "Billing ID".
         
        optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPaymentsProfileIdBytes

        public Invoice.Builder setPaymentsProfileIdBytes​(com.google.protobuf.ByteString value)
         Output only. A 12 digit ID used to identify the payments profile associated with the
         billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as
         "Billing ID".
         
        optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for paymentsProfileId to set.
        Returns:
        This builder for chaining.
      • hasIssueDate

        public boolean hasIssueDate()
         Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as
         either "Issue date" or "Invoice date".
         
        optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasIssueDate in interface InvoiceOrBuilder
        Returns:
        Whether the issueDate field is set.
      • getIssueDate

        public java.lang.String getIssueDate()
         Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as
         either "Issue date" or "Invoice date".
         
        optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIssueDate in interface InvoiceOrBuilder
        Returns:
        The issueDate.
      • getIssueDateBytes

        public com.google.protobuf.ByteString getIssueDateBytes()
         Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as
         either "Issue date" or "Invoice date".
         
        optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIssueDateBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for issueDate.
      • setIssueDate

        public Invoice.Builder setIssueDate​(java.lang.String value)
         Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as
         either "Issue date" or "Invoice date".
         
        optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The issueDate to set.
        Returns:
        This builder for chaining.
      • clearIssueDate

        public Invoice.Builder clearIssueDate()
         Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as
         either "Issue date" or "Invoice date".
         
        optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setIssueDateBytes

        public Invoice.Builder setIssueDateBytes​(com.google.protobuf.ByteString value)
         Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as
         either "Issue date" or "Invoice date".
         
        optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for issueDate to set.
        Returns:
        This builder for chaining.
      • hasDueDate

        public boolean hasDueDate()
         Output only. The due date in yyyy-mm-dd format.
         
        optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDueDate in interface InvoiceOrBuilder
        Returns:
        Whether the dueDate field is set.
      • getDueDate

        public java.lang.String getDueDate()
         Output only. The due date in yyyy-mm-dd format.
         
        optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDueDate in interface InvoiceOrBuilder
        Returns:
        The dueDate.
      • getDueDateBytes

        public com.google.protobuf.ByteString getDueDateBytes()
         Output only. The due date in yyyy-mm-dd format.
         
        optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDueDateBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for dueDate.
      • setDueDate

        public Invoice.Builder setDueDate​(java.lang.String value)
         Output only. The due date in yyyy-mm-dd format.
         
        optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The dueDate to set.
        Returns:
        This builder for chaining.
      • clearDueDate

        public Invoice.Builder clearDueDate()
         Output only. The due date in yyyy-mm-dd format.
         
        optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setDueDateBytes

        public Invoice.Builder setDueDateBytes​(com.google.protobuf.ByteString value)
         Output only. The due date in yyyy-mm-dd format.
         
        optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for dueDate to set.
        Returns:
        This builder for chaining.
      • hasServiceDateRange

        public boolean hasServiceDateRange()
         Output only. The service period date range of this invoice. The end date is inclusive.
         
        .google.ads.googleads.v9.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasServiceDateRange in interface InvoiceOrBuilder
        Returns:
        Whether the serviceDateRange field is set.
      • getServiceDateRange

        public DateRange getServiceDateRange()
         Output only. The service period date range of this invoice. The end date is inclusive.
         
        .google.ads.googleads.v9.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceDateRange in interface InvoiceOrBuilder
        Returns:
        The serviceDateRange.
      • setServiceDateRange

        public Invoice.Builder setServiceDateRange​(DateRange value)
         Output only. The service period date range of this invoice. The end date is inclusive.
         
        .google.ads.googleads.v9.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setServiceDateRange

        public Invoice.Builder setServiceDateRange​(DateRange.Builder builderForValue)
         Output only. The service period date range of this invoice. The end date is inclusive.
         
        .google.ads.googleads.v9.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeServiceDateRange

        public Invoice.Builder mergeServiceDateRange​(DateRange value)
         Output only. The service period date range of this invoice. The end date is inclusive.
         
        .google.ads.googleads.v9.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearServiceDateRange

        public Invoice.Builder clearServiceDateRange()
         Output only. The service period date range of this invoice. The end date is inclusive.
         
        .google.ads.googleads.v9.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getServiceDateRangeBuilder

        public DateRange.Builder getServiceDateRangeBuilder()
         Output only. The service period date range of this invoice. The end date is inclusive.
         
        .google.ads.googleads.v9.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getServiceDateRangeOrBuilder

        public DateRangeOrBuilder getServiceDateRangeOrBuilder()
         Output only. The service period date range of this invoice. The end date is inclusive.
         
        .google.ads.googleads.v9.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceDateRangeOrBuilder in interface InvoiceOrBuilder
      • hasCurrencyCode

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

        public java.lang.String getCurrencyCode()
         Output only. The currency code. All costs are returned in this currency. A subset of the
         currency codes derived from the ISO 4217 standard is supported.
         
        optional string currency_code = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCurrencyCode in interface InvoiceOrBuilder
        Returns:
        The currencyCode.
      • getCurrencyCodeBytes

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

        public Invoice.Builder setCurrencyCode​(java.lang.String value)
         Output only. The currency code. All costs are returned in this currency. A subset of the
         currency codes derived from the ISO 4217 standard is supported.
         
        optional string currency_code = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The currencyCode to set.
        Returns:
        This builder for chaining.
      • clearCurrencyCode

        public Invoice.Builder clearCurrencyCode()
         Output only. The currency code. All costs are returned in this currency. A subset of the
         currency codes derived from the ISO 4217 standard is supported.
         
        optional string currency_code = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCurrencyCodeBytes

        public Invoice.Builder setCurrencyCodeBytes​(com.google.protobuf.ByteString value)
         Output only. The currency code. All costs are returned in this currency. A subset of the
         currency codes derived from the ISO 4217 standard is supported.
         
        optional string currency_code = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for currencyCode to set.
        Returns:
        This builder for chaining.
      • getAdjustmentsSubtotalAmountMicros

        public long getAdjustmentsSubtotalAmountMicros()
         Output only. The pretax subtotal amount of invoice level adjustments, in micros.
         
        int64 adjustments_subtotal_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdjustmentsSubtotalAmountMicros in interface InvoiceOrBuilder
        Returns:
        The adjustmentsSubtotalAmountMicros.
      • setAdjustmentsSubtotalAmountMicros

        public Invoice.Builder setAdjustmentsSubtotalAmountMicros​(long value)
         Output only. The pretax subtotal amount of invoice level adjustments, in micros.
         
        int64 adjustments_subtotal_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The adjustmentsSubtotalAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearAdjustmentsSubtotalAmountMicros

        public Invoice.Builder clearAdjustmentsSubtotalAmountMicros()
         Output only. The pretax subtotal amount of invoice level adjustments, in micros.
         
        int64 adjustments_subtotal_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getAdjustmentsTaxAmountMicros

        public long getAdjustmentsTaxAmountMicros()
         Output only. The sum of taxes on the invoice level adjustments, in micros.
         
        int64 adjustments_tax_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdjustmentsTaxAmountMicros in interface InvoiceOrBuilder
        Returns:
        The adjustmentsTaxAmountMicros.
      • setAdjustmentsTaxAmountMicros

        public Invoice.Builder setAdjustmentsTaxAmountMicros​(long value)
         Output only. The sum of taxes on the invoice level adjustments, in micros.
         
        int64 adjustments_tax_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The adjustmentsTaxAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearAdjustmentsTaxAmountMicros

        public Invoice.Builder clearAdjustmentsTaxAmountMicros()
         Output only. The sum of taxes on the invoice level adjustments, in micros.
         
        int64 adjustments_tax_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getAdjustmentsTotalAmountMicros

        public long getAdjustmentsTotalAmountMicros()
         Output only. The total amount of invoice level adjustments, in micros.
         
        int64 adjustments_total_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdjustmentsTotalAmountMicros in interface InvoiceOrBuilder
        Returns:
        The adjustmentsTotalAmountMicros.
      • setAdjustmentsTotalAmountMicros

        public Invoice.Builder setAdjustmentsTotalAmountMicros​(long value)
         Output only. The total amount of invoice level adjustments, in micros.
         
        int64 adjustments_total_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The adjustmentsTotalAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearAdjustmentsTotalAmountMicros

        public Invoice.Builder clearAdjustmentsTotalAmountMicros()
         Output only. The total amount of invoice level adjustments, in micros.
         
        int64 adjustments_total_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getRegulatoryCostsSubtotalAmountMicros

        public long getRegulatoryCostsSubtotalAmountMicros()
         Output only. The pretax subtotal amount of invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_subtotal_amount_micros = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRegulatoryCostsSubtotalAmountMicros in interface InvoiceOrBuilder
        Returns:
        The regulatoryCostsSubtotalAmountMicros.
      • setRegulatoryCostsSubtotalAmountMicros

        public Invoice.Builder setRegulatoryCostsSubtotalAmountMicros​(long value)
         Output only. The pretax subtotal amount of invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_subtotal_amount_micros = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The regulatoryCostsSubtotalAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearRegulatoryCostsSubtotalAmountMicros

        public Invoice.Builder clearRegulatoryCostsSubtotalAmountMicros()
         Output only. The pretax subtotal amount of invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_subtotal_amount_micros = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getRegulatoryCostsTaxAmountMicros

        public long getRegulatoryCostsTaxAmountMicros()
         Output only. The sum of taxes on the invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_tax_amount_micros = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRegulatoryCostsTaxAmountMicros in interface InvoiceOrBuilder
        Returns:
        The regulatoryCostsTaxAmountMicros.
      • setRegulatoryCostsTaxAmountMicros

        public Invoice.Builder setRegulatoryCostsTaxAmountMicros​(long value)
         Output only. The sum of taxes on the invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_tax_amount_micros = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The regulatoryCostsTaxAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearRegulatoryCostsTaxAmountMicros

        public Invoice.Builder clearRegulatoryCostsTaxAmountMicros()
         Output only. The sum of taxes on the invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_tax_amount_micros = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getRegulatoryCostsTotalAmountMicros

        public long getRegulatoryCostsTotalAmountMicros()
         Output only. The total amount of invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_total_amount_micros = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRegulatoryCostsTotalAmountMicros in interface InvoiceOrBuilder
        Returns:
        The regulatoryCostsTotalAmountMicros.
      • setRegulatoryCostsTotalAmountMicros

        public Invoice.Builder setRegulatoryCostsTotalAmountMicros​(long value)
         Output only. The total amount of invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_total_amount_micros = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The regulatoryCostsTotalAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearRegulatoryCostsTotalAmountMicros

        public Invoice.Builder clearRegulatoryCostsTotalAmountMicros()
         Output only. The total amount of invoice level regulatory costs, in micros.
         
        int64 regulatory_costs_total_amount_micros = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasSubtotalAmountMicros

        public boolean hasSubtotalAmountMicros()
         Output only. The pretax subtotal amount, in micros. This equals the
         sum of the AccountBudgetSummary subtotal amounts,
         Invoice.adjustments_subtotal_amount_micros, and
         Invoice.regulatory_costs_subtotal_amount_micros.
         Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no
         longer included.
         
        optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasSubtotalAmountMicros in interface InvoiceOrBuilder
        Returns:
        Whether the subtotalAmountMicros field is set.
      • getSubtotalAmountMicros

        public long getSubtotalAmountMicros()
         Output only. The pretax subtotal amount, in micros. This equals the
         sum of the AccountBudgetSummary subtotal amounts,
         Invoice.adjustments_subtotal_amount_micros, and
         Invoice.regulatory_costs_subtotal_amount_micros.
         Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no
         longer included.
         
        optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSubtotalAmountMicros in interface InvoiceOrBuilder
        Returns:
        The subtotalAmountMicros.
      • setSubtotalAmountMicros

        public Invoice.Builder setSubtotalAmountMicros​(long value)
         Output only. The pretax subtotal amount, in micros. This equals the
         sum of the AccountBudgetSummary subtotal amounts,
         Invoice.adjustments_subtotal_amount_micros, and
         Invoice.regulatory_costs_subtotal_amount_micros.
         Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no
         longer included.
         
        optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The subtotalAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearSubtotalAmountMicros

        public Invoice.Builder clearSubtotalAmountMicros()
         Output only. The pretax subtotal amount, in micros. This equals the
         sum of the AccountBudgetSummary subtotal amounts,
         Invoice.adjustments_subtotal_amount_micros, and
         Invoice.regulatory_costs_subtotal_amount_micros.
         Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no
         longer included.
         
        optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasTaxAmountMicros

        public boolean hasTaxAmountMicros()
         Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the
         AccountBudgetSummary tax amounts, plus taxes not associated with a specific
         account budget.
         
        optional int64 tax_amount_micros = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasTaxAmountMicros in interface InvoiceOrBuilder
        Returns:
        Whether the taxAmountMicros field is set.
      • getTaxAmountMicros

        public long getTaxAmountMicros()
         Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the
         AccountBudgetSummary tax amounts, plus taxes not associated with a specific
         account budget.
         
        optional int64 tax_amount_micros = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTaxAmountMicros in interface InvoiceOrBuilder
        Returns:
        The taxAmountMicros.
      • setTaxAmountMicros

        public Invoice.Builder setTaxAmountMicros​(long value)
         Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the
         AccountBudgetSummary tax amounts, plus taxes not associated with a specific
         account budget.
         
        optional int64 tax_amount_micros = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The taxAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearTaxAmountMicros

        public Invoice.Builder clearTaxAmountMicros()
         Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the
         AccountBudgetSummary tax amounts, plus taxes not associated with a specific
         account budget.
         
        optional int64 tax_amount_micros = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasTotalAmountMicros

        public boolean hasTotalAmountMicros()
         Output only. The total amount, in micros. This equals the sum of
         Invoice.subtotal_amount_micros and Invoice.tax_amount_micros.
         Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is
         also added as it is no longer already included in
         Invoice.tax_amount_micros.
         
        optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasTotalAmountMicros in interface InvoiceOrBuilder
        Returns:
        Whether the totalAmountMicros field is set.
      • getTotalAmountMicros

        public long getTotalAmountMicros()
         Output only. The total amount, in micros. This equals the sum of
         Invoice.subtotal_amount_micros and Invoice.tax_amount_micros.
         Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is
         also added as it is no longer already included in
         Invoice.tax_amount_micros.
         
        optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTotalAmountMicros in interface InvoiceOrBuilder
        Returns:
        The totalAmountMicros.
      • setTotalAmountMicros

        public Invoice.Builder setTotalAmountMicros​(long value)
         Output only. The total amount, in micros. This equals the sum of
         Invoice.subtotal_amount_micros and Invoice.tax_amount_micros.
         Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is
         also added as it is no longer already included in
         Invoice.tax_amount_micros.
         
        optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The totalAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearTotalAmountMicros

        public Invoice.Builder clearTotalAmountMicros()
         Output only. The total amount, in micros. This equals the sum of
         Invoice.subtotal_amount_micros and Invoice.tax_amount_micros.
         Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is
         also added as it is no longer already included in
         Invoice.tax_amount_micros.
         
        optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasCorrectedInvoice

        public boolean hasCorrectedInvoice()
         Output only. The resource name of the original invoice corrected, wrote off, or canceled
         by this invoice, if applicable. If `corrected_invoice` is set,
         `replaced_invoices` will not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCorrectedInvoice in interface InvoiceOrBuilder
        Returns:
        Whether the correctedInvoice field is set.
      • getCorrectedInvoice

        public java.lang.String getCorrectedInvoice()
         Output only. The resource name of the original invoice corrected, wrote off, or canceled
         by this invoice, if applicable. If `corrected_invoice` is set,
         `replaced_invoices` will not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCorrectedInvoice in interface InvoiceOrBuilder
        Returns:
        The correctedInvoice.
      • getCorrectedInvoiceBytes

        public com.google.protobuf.ByteString getCorrectedInvoiceBytes()
         Output only. The resource name of the original invoice corrected, wrote off, or canceled
         by this invoice, if applicable. If `corrected_invoice` is set,
         `replaced_invoices` will not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCorrectedInvoiceBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for correctedInvoice.
      • setCorrectedInvoice

        public Invoice.Builder setCorrectedInvoice​(java.lang.String value)
         Output only. The resource name of the original invoice corrected, wrote off, or canceled
         by this invoice, if applicable. If `corrected_invoice` is set,
         `replaced_invoices` will not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The correctedInvoice to set.
        Returns:
        This builder for chaining.
      • clearCorrectedInvoice

        public Invoice.Builder clearCorrectedInvoice()
         Output only. The resource name of the original invoice corrected, wrote off, or canceled
         by this invoice, if applicable. If `corrected_invoice` is set,
         `replaced_invoices` will not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCorrectedInvoiceBytes

        public Invoice.Builder setCorrectedInvoiceBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the original invoice corrected, wrote off, or canceled
         by this invoice, if applicable. If `corrected_invoice` is set,
         `replaced_invoices` will not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for correctedInvoice to set.
        Returns:
        This builder for chaining.
      • getReplacedInvoicesList

        public com.google.protobuf.ProtocolStringList getReplacedInvoicesList()
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReplacedInvoicesList in interface InvoiceOrBuilder
        Returns:
        A list containing the replacedInvoices.
      • getReplacedInvoicesCount

        public int getReplacedInvoicesCount()
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReplacedInvoicesCount in interface InvoiceOrBuilder
        Returns:
        The count of replacedInvoices.
      • getReplacedInvoices

        public java.lang.String getReplacedInvoices​(int index)
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReplacedInvoices in interface InvoiceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The replacedInvoices at the given index.
      • getReplacedInvoicesBytes

        public com.google.protobuf.ByteString getReplacedInvoicesBytes​(int index)
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReplacedInvoicesBytes in interface InvoiceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the replacedInvoices at the given index.
      • setReplacedInvoices

        public Invoice.Builder setReplacedInvoices​(int index,
                                                   java.lang.String value)
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The replacedInvoices to set.
        Returns:
        This builder for chaining.
      • addReplacedInvoices

        public Invoice.Builder addReplacedInvoices​(java.lang.String value)
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The replacedInvoices to add.
        Returns:
        This builder for chaining.
      • addAllReplacedInvoices

        public Invoice.Builder addAllReplacedInvoices​(java.lang.Iterable<java.lang.String> values)
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The replacedInvoices to add.
        Returns:
        This builder for chaining.
      • clearReplacedInvoices

        public Invoice.Builder clearReplacedInvoices()
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • addReplacedInvoicesBytes

        public Invoice.Builder addReplacedInvoicesBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the original invoice(s) being rebilled or replaced by
         this invoice, if applicable. There might be multiple replaced invoices due
         to invoice consolidation. The replaced invoices may not belong to the same
         payments account. If `replaced_invoices` is set, `corrected_invoice` will
         not be set.
         Invoice resource names have the form:
         `customers/{customer_id}/invoices/{invoice_id}`
         
        repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes of the replacedInvoices to add.
        Returns:
        This builder for chaining.
      • hasPdfUrl

        public boolean hasPdfUrl()
         Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth
         token to request the PDF with this URL.
         
        optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasPdfUrl in interface InvoiceOrBuilder
        Returns:
        Whether the pdfUrl field is set.
      • getPdfUrl

        public java.lang.String getPdfUrl()
         Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth
         token to request the PDF with this URL.
         
        optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPdfUrl in interface InvoiceOrBuilder
        Returns:
        The pdfUrl.
      • getPdfUrlBytes

        public com.google.protobuf.ByteString getPdfUrlBytes()
         Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth
         token to request the PDF with this URL.
         
        optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPdfUrlBytes in interface InvoiceOrBuilder
        Returns:
        The bytes for pdfUrl.
      • setPdfUrl

        public Invoice.Builder setPdfUrl​(java.lang.String value)
         Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth
         token to request the PDF with this URL.
         
        optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The pdfUrl to set.
        Returns:
        This builder for chaining.
      • clearPdfUrl

        public Invoice.Builder clearPdfUrl()
         Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth
         token to request the PDF with this URL.
         
        optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPdfUrlBytes

        public Invoice.Builder setPdfUrlBytes​(com.google.protobuf.ByteString value)
         Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth
         token to request the PDF with this URL.
         
        optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for pdfUrl to set.
        Returns:
        This builder for chaining.
      • getAccountBudgetSummariesList

        public java.util.List<Invoice.AccountBudgetSummary> getAccountBudgetSummariesList()
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAccountBudgetSummariesList in interface InvoiceOrBuilder
      • getAccountBudgetSummariesCount

        public int getAccountBudgetSummariesCount()
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAccountBudgetSummariesCount in interface InvoiceOrBuilder
      • getAccountBudgetSummaries

        public Invoice.AccountBudgetSummary getAccountBudgetSummaries​(int index)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAccountBudgetSummaries in interface InvoiceOrBuilder
      • setAccountBudgetSummaries

        public Invoice.Builder setAccountBudgetSummaries​(int index,
                                                         Invoice.AccountBudgetSummary value)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setAccountBudgetSummaries

        public Invoice.Builder setAccountBudgetSummaries​(int index,
                                                         Invoice.AccountBudgetSummary.Builder builderForValue)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAccountBudgetSummaries

        public Invoice.Builder addAccountBudgetSummaries​(Invoice.AccountBudgetSummary value)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAccountBudgetSummaries

        public Invoice.Builder addAccountBudgetSummaries​(int index,
                                                         Invoice.AccountBudgetSummary value)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAccountBudgetSummaries

        public Invoice.Builder addAccountBudgetSummaries​(Invoice.AccountBudgetSummary.Builder builderForValue)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAccountBudgetSummaries

        public Invoice.Builder addAccountBudgetSummaries​(int index,
                                                         Invoice.AccountBudgetSummary.Builder builderForValue)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllAccountBudgetSummaries

        public Invoice.Builder addAllAccountBudgetSummaries​(java.lang.Iterable<? extends Invoice.AccountBudgetSummary> values)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearAccountBudgetSummaries

        public Invoice.Builder clearAccountBudgetSummaries()
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeAccountBudgetSummaries

        public Invoice.Builder removeAccountBudgetSummaries​(int index)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getAccountBudgetSummariesBuilder

        public Invoice.AccountBudgetSummary.Builder getAccountBudgetSummariesBuilder​(int index)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getAccountBudgetSummariesOrBuilder

        public Invoice.AccountBudgetSummaryOrBuilder getAccountBudgetSummariesOrBuilder​(int index)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAccountBudgetSummariesOrBuilder in interface InvoiceOrBuilder
      • getAccountBudgetSummariesOrBuilderList

        public java.util.List<? extends Invoice.AccountBudgetSummaryOrBuilder> getAccountBudgetSummariesOrBuilderList()
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAccountBudgetSummariesOrBuilderList in interface InvoiceOrBuilder
      • addAccountBudgetSummariesBuilder

        public Invoice.AccountBudgetSummary.Builder addAccountBudgetSummariesBuilder()
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAccountBudgetSummariesBuilder

        public Invoice.AccountBudgetSummary.Builder addAccountBudgetSummariesBuilder​(int index)
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getAccountBudgetSummariesBuilderList

        public java.util.List<Invoice.AccountBudgetSummary.Builder> getAccountBudgetSummariesBuilderList()
         Output only. The list of summarized account budget information associated with this
         invoice.
         
        repeated .google.ads.googleads.v9.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUnknownFields

        public final Invoice.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<Invoice.Builder>
      • mergeUnknownFields

        public final Invoice.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<Invoice.Builder>