All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v18.resources.Invoice Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v18/resources/invoice.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v18.resources;

/**
 * 
 * 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 {@code google.ads.googleads.v18.resources.Invoice} */ public final class Invoice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.Invoice) InvoiceOrBuilder { private static final long serialVersionUID = 0L; // Use Invoice.newBuilder() to construct. private Invoice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Invoice() { resourceName_ = ""; id_ = ""; type_ = 0; billingSetup_ = ""; paymentsAccountId_ = ""; paymentsProfileId_ = ""; issueDate_ = ""; dueDate_ = ""; currencyCode_ = ""; correctedInvoice_ = ""; replacedInvoices_ = com.google.protobuf.LazyStringArrayList.emptyList(); pdfUrl_ = ""; accountBudgetSummaries_ = java.util.Collections.emptyList(); accountSummaries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Invoice(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.Invoice.class, com.google.ads.googleads.v18.resources.Invoice.Builder.class); } public interface AccountSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.Invoice.AccountSummary) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The account associated with the account summary.
     * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customer field is set. */ boolean hasCustomer(); /** *
     * Output only. The account associated with the account summary.
     * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customer. */ java.lang.String getCustomer(); /** *
     * Output only. The account associated with the account summary.
     * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customer. */ com.google.protobuf.ByteString getCustomerBytes(); /** *
     * Output only. Pretax billing correction subtotal amount, in micros.
     * 
* * optional int64 billing_correction_subtotal_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionSubtotalAmountMicros field is set. */ boolean hasBillingCorrectionSubtotalAmountMicros(); /** *
     * Output only. Pretax billing correction subtotal amount, in micros.
     * 
* * optional int64 billing_correction_subtotal_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionSubtotalAmountMicros. */ long getBillingCorrectionSubtotalAmountMicros(); /** *
     * Output only. Tax on billing correction, in micros.
     * 
* * optional int64 billing_correction_tax_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionTaxAmountMicros field is set. */ boolean hasBillingCorrectionTaxAmountMicros(); /** *
     * Output only. Tax on billing correction, in micros.
     * 
* * optional int64 billing_correction_tax_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionTaxAmountMicros. */ long getBillingCorrectionTaxAmountMicros(); /** *
     * Output only. Total billing correction amount, in micros.
     * 
* * optional int64 billing_correction_total_amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionTotalAmountMicros field is set. */ boolean hasBillingCorrectionTotalAmountMicros(); /** *
     * Output only. Total billing correction amount, in micros.
     * 
* * optional int64 billing_correction_total_amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionTotalAmountMicros. */ long getBillingCorrectionTotalAmountMicros(); /** *
     * Output only. Pretax coupon adjustment subtotal amount, in micros.
     * 
* * optional int64 coupon_adjustment_subtotal_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentSubtotalAmountMicros field is set. */ boolean hasCouponAdjustmentSubtotalAmountMicros(); /** *
     * Output only. Pretax coupon adjustment subtotal amount, in micros.
     * 
* * optional int64 coupon_adjustment_subtotal_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentSubtotalAmountMicros. */ long getCouponAdjustmentSubtotalAmountMicros(); /** *
     * Output only. Tax on coupon adjustment, in micros.
     * 
* * optional int64 coupon_adjustment_tax_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentTaxAmountMicros field is set. */ boolean hasCouponAdjustmentTaxAmountMicros(); /** *
     * Output only. Tax on coupon adjustment, in micros.
     * 
* * optional int64 coupon_adjustment_tax_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentTaxAmountMicros. */ long getCouponAdjustmentTaxAmountMicros(); /** *
     * Output only. Total coupon adjustment amount, in micros.
     * 
* * optional int64 coupon_adjustment_total_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentTotalAmountMicros field is set. */ boolean hasCouponAdjustmentTotalAmountMicros(); /** *
     * Output only. Total coupon adjustment amount, in micros.
     * 
* * optional int64 coupon_adjustment_total_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentTotalAmountMicros. */ long getCouponAdjustmentTotalAmountMicros(); /** *
     * Output only. Pretax excess credit adjustment subtotal amount, in micros.
     * 
* * optional int64 excess_credit_adjustment_subtotal_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentSubtotalAmountMicros field is set. */ boolean hasExcessCreditAdjustmentSubtotalAmountMicros(); /** *
     * Output only. Pretax excess credit adjustment subtotal amount, in micros.
     * 
* * optional int64 excess_credit_adjustment_subtotal_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentSubtotalAmountMicros. */ long getExcessCreditAdjustmentSubtotalAmountMicros(); /** *
     * Output only. Tax on excess credit adjustment, in micros.
     * 
* * optional int64 excess_credit_adjustment_tax_amount_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentTaxAmountMicros field is set. */ boolean hasExcessCreditAdjustmentTaxAmountMicros(); /** *
     * Output only. Tax on excess credit adjustment, in micros.
     * 
* * optional int64 excess_credit_adjustment_tax_amount_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentTaxAmountMicros. */ long getExcessCreditAdjustmentTaxAmountMicros(); /** *
     * Output only. Total excess credit adjustment amount, in micros.
     * 
* * optional int64 excess_credit_adjustment_total_amount_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentTotalAmountMicros field is set. */ boolean hasExcessCreditAdjustmentTotalAmountMicros(); /** *
     * Output only. Total excess credit adjustment amount, in micros.
     * 
* * optional int64 excess_credit_adjustment_total_amount_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentTotalAmountMicros. */ long getExcessCreditAdjustmentTotalAmountMicros(); /** *
     * Output only. Pretax regulatory costs subtotal amount, in micros.
     * 
* * optional int64 regulatory_costs_subtotal_amount_micros = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsSubtotalAmountMicros field is set. */ boolean hasRegulatoryCostsSubtotalAmountMicros(); /** *
     * Output only. Pretax regulatory costs subtotal amount, in micros.
     * 
* * optional int64 regulatory_costs_subtotal_amount_micros = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsSubtotalAmountMicros. */ long getRegulatoryCostsSubtotalAmountMicros(); /** *
     * Output only. Tax on regulatory costs, in micros.
     * 
* * optional int64 regulatory_costs_tax_amount_micros = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsTaxAmountMicros field is set. */ boolean hasRegulatoryCostsTaxAmountMicros(); /** *
     * Output only. Tax on regulatory costs, in micros.
     * 
* * optional int64 regulatory_costs_tax_amount_micros = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsTaxAmountMicros. */ long getRegulatoryCostsTaxAmountMicros(); /** *
     * Output only. Total regulatory costs amount, in micros.
     * 
* * optional int64 regulatory_costs_total_amount_micros = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsTotalAmountMicros field is set. */ boolean hasRegulatoryCostsTotalAmountMicros(); /** *
     * Output only. Total regulatory costs amount, in micros.
     * 
* * optional int64 regulatory_costs_total_amount_micros = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsTotalAmountMicros. */ long getRegulatoryCostsTotalAmountMicros(); /** *
     * Output only. Pretax export charge subtotal amount, in micros.
     * 
* * optional int64 export_charge_subtotal_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeSubtotalAmountMicros field is set. */ boolean hasExportChargeSubtotalAmountMicros(); /** *
     * Output only. Pretax export charge subtotal amount, in micros.
     * 
* * optional int64 export_charge_subtotal_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeSubtotalAmountMicros. */ long getExportChargeSubtotalAmountMicros(); /** *
     * Output only. Tax on export charge, in micros.
     * 
* * optional int64 export_charge_tax_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTaxAmountMicros field is set. */ boolean hasExportChargeTaxAmountMicros(); /** *
     * Output only. Tax on export charge, in micros.
     * 
* * optional int64 export_charge_tax_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTaxAmountMicros. */ long getExportChargeTaxAmountMicros(); /** *
     * Output only. Total export charge amount, in micros.
     * 
* * optional int64 export_charge_total_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTotalAmountMicros field is set. */ boolean hasExportChargeTotalAmountMicros(); /** *
     * Output only. Total export charge amount, in micros.
     * 
* * optional int64 export_charge_total_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTotalAmountMicros. */ long getExportChargeTotalAmountMicros(); /** *
     * Output only. Total pretax subtotal amount attributable to the account
     * during the service period, in micros.
     * 
* * optional int64 subtotal_amount_micros = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the subtotalAmountMicros field is set. */ boolean hasSubtotalAmountMicros(); /** *
     * Output only. Total pretax subtotal amount attributable to the account
     * during the service period, in micros.
     * 
* * optional int64 subtotal_amount_micros = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The subtotalAmountMicros. */ long getSubtotalAmountMicros(); /** *
     * Output only. Total tax amount attributable to the account during the
     * service period, in micros.
     * 
* * optional int64 tax_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the taxAmountMicros field is set. */ boolean hasTaxAmountMicros(); /** *
     * Output only. Total tax amount attributable to the account during the
     * service period, in micros.
     * 
* * optional int64 tax_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The taxAmountMicros. */ long getTaxAmountMicros(); /** *
     * Output only. Total amount attributable to the account during the service
     * period, in micros. This equals the sum of the subtotal_amount_micros and
     * tax_amount_micros.
     * 
* * optional int64 total_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the totalAmountMicros field is set. */ boolean hasTotalAmountMicros(); /** *
     * Output only. Total amount attributable to the account during the service
     * period, in micros. This equals the sum of the subtotal_amount_micros and
     * tax_amount_micros.
     * 
* * optional int64 total_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The totalAmountMicros. */ long getTotalAmountMicros(); } /** *
   * Represents a summarized view at account level.
   * 
* * Protobuf type {@code google.ads.googleads.v18.resources.Invoice.AccountSummary} */ public static final class AccountSummary extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.Invoice.AccountSummary) AccountSummaryOrBuilder { private static final long serialVersionUID = 0L; // Use AccountSummary.newBuilder() to construct. private AccountSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountSummary() { customer_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountSummary(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.Invoice.AccountSummary.class, com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder.class); } private int bitField0_; public static final int CUSTOMER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object customer_ = ""; /** *
     * Output only. The account associated with the account summary.
     * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customer field is set. */ @java.lang.Override public boolean hasCustomer() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The account associated with the account summary.
     * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customer. */ @java.lang.Override public java.lang.String getCustomer() { java.lang.Object ref = customer_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customer_ = s; return s; } } /** *
     * Output only. The account associated with the account summary.
     * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customer. */ @java.lang.Override public com.google.protobuf.ByteString getCustomerBytes() { java.lang.Object ref = customer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BILLING_CORRECTION_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 2; private long billingCorrectionSubtotalAmountMicros_ = 0L; /** *
     * Output only. Pretax billing correction subtotal amount, in micros.
     * 
* * optional int64 billing_correction_subtotal_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasBillingCorrectionSubtotalAmountMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Pretax billing correction subtotal amount, in micros.
     * 
* * optional int64 billing_correction_subtotal_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionSubtotalAmountMicros. */ @java.lang.Override public long getBillingCorrectionSubtotalAmountMicros() { return billingCorrectionSubtotalAmountMicros_; } public static final int BILLING_CORRECTION_TAX_AMOUNT_MICROS_FIELD_NUMBER = 3; private long billingCorrectionTaxAmountMicros_ = 0L; /** *
     * Output only. Tax on billing correction, in micros.
     * 
* * optional int64 billing_correction_tax_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionTaxAmountMicros field is set. */ @java.lang.Override public boolean hasBillingCorrectionTaxAmountMicros() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. Tax on billing correction, in micros.
     * 
* * optional int64 billing_correction_tax_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionTaxAmountMicros. */ @java.lang.Override public long getBillingCorrectionTaxAmountMicros() { return billingCorrectionTaxAmountMicros_; } public static final int BILLING_CORRECTION_TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 4; private long billingCorrectionTotalAmountMicros_ = 0L; /** *
     * Output only. Total billing correction amount, in micros.
     * 
* * optional int64 billing_correction_total_amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionTotalAmountMicros field is set. */ @java.lang.Override public boolean hasBillingCorrectionTotalAmountMicros() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Output only. Total billing correction amount, in micros.
     * 
* * optional int64 billing_correction_total_amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionTotalAmountMicros. */ @java.lang.Override public long getBillingCorrectionTotalAmountMicros() { return billingCorrectionTotalAmountMicros_; } public static final int COUPON_ADJUSTMENT_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 5; private long couponAdjustmentSubtotalAmountMicros_ = 0L; /** *
     * Output only. Pretax coupon adjustment subtotal amount, in micros.
     * 
* * optional int64 coupon_adjustment_subtotal_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasCouponAdjustmentSubtotalAmountMicros() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Output only. Pretax coupon adjustment subtotal amount, in micros.
     * 
* * optional int64 coupon_adjustment_subtotal_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentSubtotalAmountMicros. */ @java.lang.Override public long getCouponAdjustmentSubtotalAmountMicros() { return couponAdjustmentSubtotalAmountMicros_; } public static final int COUPON_ADJUSTMENT_TAX_AMOUNT_MICROS_FIELD_NUMBER = 6; private long couponAdjustmentTaxAmountMicros_ = 0L; /** *
     * Output only. Tax on coupon adjustment, in micros.
     * 
* * optional int64 coupon_adjustment_tax_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentTaxAmountMicros field is set. */ @java.lang.Override public boolean hasCouponAdjustmentTaxAmountMicros() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Output only. Tax on coupon adjustment, in micros.
     * 
* * optional int64 coupon_adjustment_tax_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentTaxAmountMicros. */ @java.lang.Override public long getCouponAdjustmentTaxAmountMicros() { return couponAdjustmentTaxAmountMicros_; } public static final int COUPON_ADJUSTMENT_TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 7; private long couponAdjustmentTotalAmountMicros_ = 0L; /** *
     * Output only. Total coupon adjustment amount, in micros.
     * 
* * optional int64 coupon_adjustment_total_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentTotalAmountMicros field is set. */ @java.lang.Override public boolean hasCouponAdjustmentTotalAmountMicros() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Output only. Total coupon adjustment amount, in micros.
     * 
* * optional int64 coupon_adjustment_total_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentTotalAmountMicros. */ @java.lang.Override public long getCouponAdjustmentTotalAmountMicros() { return couponAdjustmentTotalAmountMicros_; } public static final int EXCESS_CREDIT_ADJUSTMENT_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 8; private long excessCreditAdjustmentSubtotalAmountMicros_ = 0L; /** *
     * Output only. Pretax excess credit adjustment subtotal amount, in micros.
     * 
* * optional int64 excess_credit_adjustment_subtotal_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasExcessCreditAdjustmentSubtotalAmountMicros() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Output only. Pretax excess credit adjustment subtotal amount, in micros.
     * 
* * optional int64 excess_credit_adjustment_subtotal_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentSubtotalAmountMicros. */ @java.lang.Override public long getExcessCreditAdjustmentSubtotalAmountMicros() { return excessCreditAdjustmentSubtotalAmountMicros_; } public static final int EXCESS_CREDIT_ADJUSTMENT_TAX_AMOUNT_MICROS_FIELD_NUMBER = 9; private long excessCreditAdjustmentTaxAmountMicros_ = 0L; /** *
     * Output only. Tax on excess credit adjustment, in micros.
     * 
* * optional int64 excess_credit_adjustment_tax_amount_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentTaxAmountMicros field is set. */ @java.lang.Override public boolean hasExcessCreditAdjustmentTaxAmountMicros() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Output only. Tax on excess credit adjustment, in micros.
     * 
* * optional int64 excess_credit_adjustment_tax_amount_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentTaxAmountMicros. */ @java.lang.Override public long getExcessCreditAdjustmentTaxAmountMicros() { return excessCreditAdjustmentTaxAmountMicros_; } public static final int EXCESS_CREDIT_ADJUSTMENT_TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 10; private long excessCreditAdjustmentTotalAmountMicros_ = 0L; /** *
     * Output only. Total excess credit adjustment amount, in micros.
     * 
* * optional int64 excess_credit_adjustment_total_amount_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentTotalAmountMicros field is set. */ @java.lang.Override public boolean hasExcessCreditAdjustmentTotalAmountMicros() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Output only. Total excess credit adjustment amount, in micros.
     * 
* * optional int64 excess_credit_adjustment_total_amount_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentTotalAmountMicros. */ @java.lang.Override public long getExcessCreditAdjustmentTotalAmountMicros() { return excessCreditAdjustmentTotalAmountMicros_; } public static final int REGULATORY_COSTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 11; private long regulatoryCostsSubtotalAmountMicros_ = 0L; /** *
     * Output only. Pretax regulatory costs subtotal amount, in micros.
     * 
* * optional int64 regulatory_costs_subtotal_amount_micros = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasRegulatoryCostsSubtotalAmountMicros() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Output only. Pretax regulatory costs subtotal amount, in micros.
     * 
* * optional int64 regulatory_costs_subtotal_amount_micros = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsSubtotalAmountMicros. */ @java.lang.Override public long getRegulatoryCostsSubtotalAmountMicros() { return regulatoryCostsSubtotalAmountMicros_; } public static final int REGULATORY_COSTS_TAX_AMOUNT_MICROS_FIELD_NUMBER = 12; private long regulatoryCostsTaxAmountMicros_ = 0L; /** *
     * Output only. Tax on regulatory costs, in micros.
     * 
* * optional int64 regulatory_costs_tax_amount_micros = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsTaxAmountMicros field is set. */ @java.lang.Override public boolean hasRegulatoryCostsTaxAmountMicros() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * Output only. Tax on regulatory costs, in micros.
     * 
* * optional int64 regulatory_costs_tax_amount_micros = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsTaxAmountMicros. */ @java.lang.Override public long getRegulatoryCostsTaxAmountMicros() { return regulatoryCostsTaxAmountMicros_; } public static final int REGULATORY_COSTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 13; private long regulatoryCostsTotalAmountMicros_ = 0L; /** *
     * Output only. Total regulatory costs amount, in micros.
     * 
* * optional int64 regulatory_costs_total_amount_micros = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsTotalAmountMicros field is set. */ @java.lang.Override public boolean hasRegulatoryCostsTotalAmountMicros() { return ((bitField0_ & 0x00001000) != 0); } /** *
     * Output only. Total regulatory costs amount, in micros.
     * 
* * optional int64 regulatory_costs_total_amount_micros = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsTotalAmountMicros. */ @java.lang.Override public long getRegulatoryCostsTotalAmountMicros() { return regulatoryCostsTotalAmountMicros_; } public static final int EXPORT_CHARGE_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 17; private long exportChargeSubtotalAmountMicros_ = 0L; /** *
     * Output only. Pretax export charge subtotal amount, in micros.
     * 
* * optional int64 export_charge_subtotal_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeSubtotalAmountMicros() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * Output only. Pretax export charge subtotal amount, in micros.
     * 
* * optional int64 export_charge_subtotal_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeSubtotalAmountMicros. */ @java.lang.Override public long getExportChargeSubtotalAmountMicros() { return exportChargeSubtotalAmountMicros_; } public static final int EXPORT_CHARGE_TAX_AMOUNT_MICROS_FIELD_NUMBER = 18; private long exportChargeTaxAmountMicros_ = 0L; /** *
     * Output only. Tax on export charge, in micros.
     * 
* * optional int64 export_charge_tax_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTaxAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeTaxAmountMicros() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * Output only. Tax on export charge, in micros.
     * 
* * optional int64 export_charge_tax_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTaxAmountMicros. */ @java.lang.Override public long getExportChargeTaxAmountMicros() { return exportChargeTaxAmountMicros_; } public static final int EXPORT_CHARGE_TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 19; private long exportChargeTotalAmountMicros_ = 0L; /** *
     * Output only. Total export charge amount, in micros.
     * 
* * optional int64 export_charge_total_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTotalAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeTotalAmountMicros() { return ((bitField0_ & 0x00008000) != 0); } /** *
     * Output only. Total export charge amount, in micros.
     * 
* * optional int64 export_charge_total_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTotalAmountMicros. */ @java.lang.Override public long getExportChargeTotalAmountMicros() { return exportChargeTotalAmountMicros_; } public static final int SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 14; private long subtotalAmountMicros_ = 0L; /** *
     * Output only. Total pretax subtotal amount attributable to the account
     * during the service period, in micros.
     * 
* * optional int64 subtotal_amount_micros = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the subtotalAmountMicros field is set. */ @java.lang.Override public boolean hasSubtotalAmountMicros() { return ((bitField0_ & 0x00010000) != 0); } /** *
     * Output only. Total pretax subtotal amount attributable to the account
     * during the service period, in micros.
     * 
* * optional int64 subtotal_amount_micros = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The subtotalAmountMicros. */ @java.lang.Override public long getSubtotalAmountMicros() { return subtotalAmountMicros_; } public static final int TAX_AMOUNT_MICROS_FIELD_NUMBER = 15; private long taxAmountMicros_ = 0L; /** *
     * Output only. Total tax amount attributable to the account during the
     * service period, in micros.
     * 
* * optional int64 tax_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the taxAmountMicros field is set. */ @java.lang.Override public boolean hasTaxAmountMicros() { return ((bitField0_ & 0x00020000) != 0); } /** *
     * Output only. Total tax amount attributable to the account during the
     * service period, in micros.
     * 
* * optional int64 tax_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The taxAmountMicros. */ @java.lang.Override public long getTaxAmountMicros() { return taxAmountMicros_; } public static final int TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 16; private long totalAmountMicros_ = 0L; /** *
     * Output only. Total amount attributable to the account during the service
     * period, in micros. This equals the sum of the subtotal_amount_micros and
     * tax_amount_micros.
     * 
* * optional int64 total_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the totalAmountMicros field is set. */ @java.lang.Override public boolean hasTotalAmountMicros() { return ((bitField0_ & 0x00040000) != 0); } /** *
     * Output only. Total amount attributable to the account during the service
     * period, in micros. This equals the sum of the subtotal_amount_micros and
     * tax_amount_micros.
     * 
* * optional int64 total_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The totalAmountMicros. */ @java.lang.Override public long getTotalAmountMicros() { return totalAmountMicros_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customer_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, billingCorrectionSubtotalAmountMicros_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, billingCorrectionTaxAmountMicros_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(4, billingCorrectionTotalAmountMicros_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(5, couponAdjustmentSubtotalAmountMicros_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(6, couponAdjustmentTaxAmountMicros_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt64(7, couponAdjustmentTotalAmountMicros_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeInt64(8, excessCreditAdjustmentSubtotalAmountMicros_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt64(9, excessCreditAdjustmentTaxAmountMicros_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeInt64(10, excessCreditAdjustmentTotalAmountMicros_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeInt64(11, regulatoryCostsSubtotalAmountMicros_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeInt64(12, regulatoryCostsTaxAmountMicros_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeInt64(13, regulatoryCostsTotalAmountMicros_); } if (((bitField0_ & 0x00010000) != 0)) { output.writeInt64(14, subtotalAmountMicros_); } if (((bitField0_ & 0x00020000) != 0)) { output.writeInt64(15, taxAmountMicros_); } if (((bitField0_ & 0x00040000) != 0)) { output.writeInt64(16, totalAmountMicros_); } if (((bitField0_ & 0x00002000) != 0)) { output.writeInt64(17, exportChargeSubtotalAmountMicros_); } if (((bitField0_ & 0x00004000) != 0)) { output.writeInt64(18, exportChargeTaxAmountMicros_); } if (((bitField0_ & 0x00008000) != 0)) { output.writeInt64(19, exportChargeTotalAmountMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customer_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, billingCorrectionSubtotalAmountMicros_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, billingCorrectionTaxAmountMicros_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, billingCorrectionTotalAmountMicros_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, couponAdjustmentSubtotalAmountMicros_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, couponAdjustmentTaxAmountMicros_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, couponAdjustmentTotalAmountMicros_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, excessCreditAdjustmentSubtotalAmountMicros_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, excessCreditAdjustmentTaxAmountMicros_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, excessCreditAdjustmentTotalAmountMicros_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, regulatoryCostsSubtotalAmountMicros_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, regulatoryCostsTaxAmountMicros_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, regulatoryCostsTotalAmountMicros_); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, subtotalAmountMicros_); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, taxAmountMicros_); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, totalAmountMicros_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(17, exportChargeSubtotalAmountMicros_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, exportChargeTaxAmountMicros_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, exportChargeTotalAmountMicros_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v18.resources.Invoice.AccountSummary)) { return super.equals(obj); } com.google.ads.googleads.v18.resources.Invoice.AccountSummary other = (com.google.ads.googleads.v18.resources.Invoice.AccountSummary) obj; if (hasCustomer() != other.hasCustomer()) return false; if (hasCustomer()) { if (!getCustomer() .equals(other.getCustomer())) return false; } if (hasBillingCorrectionSubtotalAmountMicros() != other.hasBillingCorrectionSubtotalAmountMicros()) return false; if (hasBillingCorrectionSubtotalAmountMicros()) { if (getBillingCorrectionSubtotalAmountMicros() != other.getBillingCorrectionSubtotalAmountMicros()) return false; } if (hasBillingCorrectionTaxAmountMicros() != other.hasBillingCorrectionTaxAmountMicros()) return false; if (hasBillingCorrectionTaxAmountMicros()) { if (getBillingCorrectionTaxAmountMicros() != other.getBillingCorrectionTaxAmountMicros()) return false; } if (hasBillingCorrectionTotalAmountMicros() != other.hasBillingCorrectionTotalAmountMicros()) return false; if (hasBillingCorrectionTotalAmountMicros()) { if (getBillingCorrectionTotalAmountMicros() != other.getBillingCorrectionTotalAmountMicros()) return false; } if (hasCouponAdjustmentSubtotalAmountMicros() != other.hasCouponAdjustmentSubtotalAmountMicros()) return false; if (hasCouponAdjustmentSubtotalAmountMicros()) { if (getCouponAdjustmentSubtotalAmountMicros() != other.getCouponAdjustmentSubtotalAmountMicros()) return false; } if (hasCouponAdjustmentTaxAmountMicros() != other.hasCouponAdjustmentTaxAmountMicros()) return false; if (hasCouponAdjustmentTaxAmountMicros()) { if (getCouponAdjustmentTaxAmountMicros() != other.getCouponAdjustmentTaxAmountMicros()) return false; } if (hasCouponAdjustmentTotalAmountMicros() != other.hasCouponAdjustmentTotalAmountMicros()) return false; if (hasCouponAdjustmentTotalAmountMicros()) { if (getCouponAdjustmentTotalAmountMicros() != other.getCouponAdjustmentTotalAmountMicros()) return false; } if (hasExcessCreditAdjustmentSubtotalAmountMicros() != other.hasExcessCreditAdjustmentSubtotalAmountMicros()) return false; if (hasExcessCreditAdjustmentSubtotalAmountMicros()) { if (getExcessCreditAdjustmentSubtotalAmountMicros() != other.getExcessCreditAdjustmentSubtotalAmountMicros()) return false; } if (hasExcessCreditAdjustmentTaxAmountMicros() != other.hasExcessCreditAdjustmentTaxAmountMicros()) return false; if (hasExcessCreditAdjustmentTaxAmountMicros()) { if (getExcessCreditAdjustmentTaxAmountMicros() != other.getExcessCreditAdjustmentTaxAmountMicros()) return false; } if (hasExcessCreditAdjustmentTotalAmountMicros() != other.hasExcessCreditAdjustmentTotalAmountMicros()) return false; if (hasExcessCreditAdjustmentTotalAmountMicros()) { if (getExcessCreditAdjustmentTotalAmountMicros() != other.getExcessCreditAdjustmentTotalAmountMicros()) return false; } if (hasRegulatoryCostsSubtotalAmountMicros() != other.hasRegulatoryCostsSubtotalAmountMicros()) return false; if (hasRegulatoryCostsSubtotalAmountMicros()) { if (getRegulatoryCostsSubtotalAmountMicros() != other.getRegulatoryCostsSubtotalAmountMicros()) return false; } if (hasRegulatoryCostsTaxAmountMicros() != other.hasRegulatoryCostsTaxAmountMicros()) return false; if (hasRegulatoryCostsTaxAmountMicros()) { if (getRegulatoryCostsTaxAmountMicros() != other.getRegulatoryCostsTaxAmountMicros()) return false; } if (hasRegulatoryCostsTotalAmountMicros() != other.hasRegulatoryCostsTotalAmountMicros()) return false; if (hasRegulatoryCostsTotalAmountMicros()) { if (getRegulatoryCostsTotalAmountMicros() != other.getRegulatoryCostsTotalAmountMicros()) return false; } if (hasExportChargeSubtotalAmountMicros() != other.hasExportChargeSubtotalAmountMicros()) return false; if (hasExportChargeSubtotalAmountMicros()) { if (getExportChargeSubtotalAmountMicros() != other.getExportChargeSubtotalAmountMicros()) return false; } if (hasExportChargeTaxAmountMicros() != other.hasExportChargeTaxAmountMicros()) return false; if (hasExportChargeTaxAmountMicros()) { if (getExportChargeTaxAmountMicros() != other.getExportChargeTaxAmountMicros()) return false; } if (hasExportChargeTotalAmountMicros() != other.hasExportChargeTotalAmountMicros()) return false; if (hasExportChargeTotalAmountMicros()) { if (getExportChargeTotalAmountMicros() != other.getExportChargeTotalAmountMicros()) return false; } if (hasSubtotalAmountMicros() != other.hasSubtotalAmountMicros()) return false; if (hasSubtotalAmountMicros()) { if (getSubtotalAmountMicros() != other.getSubtotalAmountMicros()) return false; } if (hasTaxAmountMicros() != other.hasTaxAmountMicros()) return false; if (hasTaxAmountMicros()) { if (getTaxAmountMicros() != other.getTaxAmountMicros()) return false; } if (hasTotalAmountMicros() != other.hasTotalAmountMicros()) return false; if (hasTotalAmountMicros()) { if (getTotalAmountMicros() != other.getTotalAmountMicros()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCustomer()) { hash = (37 * hash) + CUSTOMER_FIELD_NUMBER; hash = (53 * hash) + getCustomer().hashCode(); } if (hasBillingCorrectionSubtotalAmountMicros()) { hash = (37 * hash) + BILLING_CORRECTION_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBillingCorrectionSubtotalAmountMicros()); } if (hasBillingCorrectionTaxAmountMicros()) { hash = (37 * hash) + BILLING_CORRECTION_TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBillingCorrectionTaxAmountMicros()); } if (hasBillingCorrectionTotalAmountMicros()) { hash = (37 * hash) + BILLING_CORRECTION_TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBillingCorrectionTotalAmountMicros()); } if (hasCouponAdjustmentSubtotalAmountMicros()) { hash = (37 * hash) + COUPON_ADJUSTMENT_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCouponAdjustmentSubtotalAmountMicros()); } if (hasCouponAdjustmentTaxAmountMicros()) { hash = (37 * hash) + COUPON_ADJUSTMENT_TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCouponAdjustmentTaxAmountMicros()); } if (hasCouponAdjustmentTotalAmountMicros()) { hash = (37 * hash) + COUPON_ADJUSTMENT_TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCouponAdjustmentTotalAmountMicros()); } if (hasExcessCreditAdjustmentSubtotalAmountMicros()) { hash = (37 * hash) + EXCESS_CREDIT_ADJUSTMENT_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExcessCreditAdjustmentSubtotalAmountMicros()); } if (hasExcessCreditAdjustmentTaxAmountMicros()) { hash = (37 * hash) + EXCESS_CREDIT_ADJUSTMENT_TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExcessCreditAdjustmentTaxAmountMicros()); } if (hasExcessCreditAdjustmentTotalAmountMicros()) { hash = (37 * hash) + EXCESS_CREDIT_ADJUSTMENT_TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExcessCreditAdjustmentTotalAmountMicros()); } if (hasRegulatoryCostsSubtotalAmountMicros()) { hash = (37 * hash) + REGULATORY_COSTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegulatoryCostsSubtotalAmountMicros()); } if (hasRegulatoryCostsTaxAmountMicros()) { hash = (37 * hash) + REGULATORY_COSTS_TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegulatoryCostsTaxAmountMicros()); } if (hasRegulatoryCostsTotalAmountMicros()) { hash = (37 * hash) + REGULATORY_COSTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegulatoryCostsTotalAmountMicros()); } if (hasExportChargeSubtotalAmountMicros()) { hash = (37 * hash) + EXPORT_CHARGE_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExportChargeSubtotalAmountMicros()); } if (hasExportChargeTaxAmountMicros()) { hash = (37 * hash) + EXPORT_CHARGE_TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExportChargeTaxAmountMicros()); } if (hasExportChargeTotalAmountMicros()) { hash = (37 * hash) + EXPORT_CHARGE_TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExportChargeTotalAmountMicros()); } if (hasSubtotalAmountMicros()) { hash = (37 * hash) + SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSubtotalAmountMicros()); } if (hasTaxAmountMicros()) { hash = (37 * hash) + TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTaxAmountMicros()); } if (hasTotalAmountMicros()) { hash = (37 * hash) + TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalAmountMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v18.resources.Invoice.AccountSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Represents a summarized view at account level.
     * 
* * Protobuf type {@code google.ads.googleads.v18.resources.Invoice.AccountSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.Invoice.AccountSummary) com.google.ads.googleads.v18.resources.Invoice.AccountSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.Invoice.AccountSummary.class, com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder.class); } // Construct using com.google.ads.googleads.v18.resources.Invoice.AccountSummary.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; customer_ = ""; billingCorrectionSubtotalAmountMicros_ = 0L; billingCorrectionTaxAmountMicros_ = 0L; billingCorrectionTotalAmountMicros_ = 0L; couponAdjustmentSubtotalAmountMicros_ = 0L; couponAdjustmentTaxAmountMicros_ = 0L; couponAdjustmentTotalAmountMicros_ = 0L; excessCreditAdjustmentSubtotalAmountMicros_ = 0L; excessCreditAdjustmentTaxAmountMicros_ = 0L; excessCreditAdjustmentTotalAmountMicros_ = 0L; regulatoryCostsSubtotalAmountMicros_ = 0L; regulatoryCostsTaxAmountMicros_ = 0L; regulatoryCostsTotalAmountMicros_ = 0L; exportChargeSubtotalAmountMicros_ = 0L; exportChargeTaxAmountMicros_ = 0L; exportChargeTotalAmountMicros_ = 0L; subtotalAmountMicros_ = 0L; taxAmountMicros_ = 0L; totalAmountMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountSummary_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountSummary getDefaultInstanceForType() { return com.google.ads.googleads.v18.resources.Invoice.AccountSummary.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountSummary build() { com.google.ads.googleads.v18.resources.Invoice.AccountSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountSummary buildPartial() { com.google.ads.googleads.v18.resources.Invoice.AccountSummary result = new com.google.ads.googleads.v18.resources.Invoice.AccountSummary(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v18.resources.Invoice.AccountSummary result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.customer_ = customer_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.billingCorrectionSubtotalAmountMicros_ = billingCorrectionSubtotalAmountMicros_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.billingCorrectionTaxAmountMicros_ = billingCorrectionTaxAmountMicros_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.billingCorrectionTotalAmountMicros_ = billingCorrectionTotalAmountMicros_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.couponAdjustmentSubtotalAmountMicros_ = couponAdjustmentSubtotalAmountMicros_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.couponAdjustmentTaxAmountMicros_ = couponAdjustmentTaxAmountMicros_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.couponAdjustmentTotalAmountMicros_ = couponAdjustmentTotalAmountMicros_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.excessCreditAdjustmentSubtotalAmountMicros_ = excessCreditAdjustmentSubtotalAmountMicros_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.excessCreditAdjustmentTaxAmountMicros_ = excessCreditAdjustmentTaxAmountMicros_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.excessCreditAdjustmentTotalAmountMicros_ = excessCreditAdjustmentTotalAmountMicros_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { result.regulatoryCostsSubtotalAmountMicros_ = regulatoryCostsSubtotalAmountMicros_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { result.regulatoryCostsTaxAmountMicros_ = regulatoryCostsTaxAmountMicros_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { result.regulatoryCostsTotalAmountMicros_ = regulatoryCostsTotalAmountMicros_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { result.exportChargeSubtotalAmountMicros_ = exportChargeSubtotalAmountMicros_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00004000) != 0)) { result.exportChargeTaxAmountMicros_ = exportChargeTaxAmountMicros_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00008000) != 0)) { result.exportChargeTotalAmountMicros_ = exportChargeTotalAmountMicros_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.subtotalAmountMicros_ = subtotalAmountMicros_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00020000) != 0)) { result.taxAmountMicros_ = taxAmountMicros_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00040000) != 0)) { result.totalAmountMicros_ = totalAmountMicros_; to_bitField0_ |= 0x00040000; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v18.resources.Invoice.AccountSummary) { return mergeFrom((com.google.ads.googleads.v18.resources.Invoice.AccountSummary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.resources.Invoice.AccountSummary other) { if (other == com.google.ads.googleads.v18.resources.Invoice.AccountSummary.getDefaultInstance()) return this; if (other.hasCustomer()) { customer_ = other.customer_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasBillingCorrectionSubtotalAmountMicros()) { setBillingCorrectionSubtotalAmountMicros(other.getBillingCorrectionSubtotalAmountMicros()); } if (other.hasBillingCorrectionTaxAmountMicros()) { setBillingCorrectionTaxAmountMicros(other.getBillingCorrectionTaxAmountMicros()); } if (other.hasBillingCorrectionTotalAmountMicros()) { setBillingCorrectionTotalAmountMicros(other.getBillingCorrectionTotalAmountMicros()); } if (other.hasCouponAdjustmentSubtotalAmountMicros()) { setCouponAdjustmentSubtotalAmountMicros(other.getCouponAdjustmentSubtotalAmountMicros()); } if (other.hasCouponAdjustmentTaxAmountMicros()) { setCouponAdjustmentTaxAmountMicros(other.getCouponAdjustmentTaxAmountMicros()); } if (other.hasCouponAdjustmentTotalAmountMicros()) { setCouponAdjustmentTotalAmountMicros(other.getCouponAdjustmentTotalAmountMicros()); } if (other.hasExcessCreditAdjustmentSubtotalAmountMicros()) { setExcessCreditAdjustmentSubtotalAmountMicros(other.getExcessCreditAdjustmentSubtotalAmountMicros()); } if (other.hasExcessCreditAdjustmentTaxAmountMicros()) { setExcessCreditAdjustmentTaxAmountMicros(other.getExcessCreditAdjustmentTaxAmountMicros()); } if (other.hasExcessCreditAdjustmentTotalAmountMicros()) { setExcessCreditAdjustmentTotalAmountMicros(other.getExcessCreditAdjustmentTotalAmountMicros()); } if (other.hasRegulatoryCostsSubtotalAmountMicros()) { setRegulatoryCostsSubtotalAmountMicros(other.getRegulatoryCostsSubtotalAmountMicros()); } if (other.hasRegulatoryCostsTaxAmountMicros()) { setRegulatoryCostsTaxAmountMicros(other.getRegulatoryCostsTaxAmountMicros()); } if (other.hasRegulatoryCostsTotalAmountMicros()) { setRegulatoryCostsTotalAmountMicros(other.getRegulatoryCostsTotalAmountMicros()); } if (other.hasExportChargeSubtotalAmountMicros()) { setExportChargeSubtotalAmountMicros(other.getExportChargeSubtotalAmountMicros()); } if (other.hasExportChargeTaxAmountMicros()) { setExportChargeTaxAmountMicros(other.getExportChargeTaxAmountMicros()); } if (other.hasExportChargeTotalAmountMicros()) { setExportChargeTotalAmountMicros(other.getExportChargeTotalAmountMicros()); } if (other.hasSubtotalAmountMicros()) { setSubtotalAmountMicros(other.getSubtotalAmountMicros()); } if (other.hasTaxAmountMicros()) { setTaxAmountMicros(other.getTaxAmountMicros()); } if (other.hasTotalAmountMicros()) { setTotalAmountMicros(other.getTotalAmountMicros()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { customer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { billingCorrectionSubtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { billingCorrectionTaxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { billingCorrectionTotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { couponAdjustmentSubtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { couponAdjustmentTaxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { couponAdjustmentTotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { excessCreditAdjustmentSubtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { excessCreditAdjustmentTaxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { excessCreditAdjustmentTotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { regulatoryCostsSubtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 88 case 96: { regulatoryCostsTaxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 96 case 104: { regulatoryCostsTotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00001000; break; } // case 104 case 112: { subtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00010000; break; } // case 112 case 120: { taxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00020000; break; } // case 120 case 128: { totalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00040000; break; } // case 128 case 136: { exportChargeSubtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00002000; break; } // case 136 case 144: { exportChargeTaxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00004000; break; } // case 144 case 152: { exportChargeTotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object customer_ = ""; /** *
       * Output only. The account associated with the account summary.
       * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customer field is set. */ public boolean hasCustomer() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The account associated with the account summary.
       * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customer. */ public java.lang.String getCustomer() { java.lang.Object ref = customer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customer_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The account associated with the account summary.
       * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customer. */ public com.google.protobuf.ByteString getCustomerBytes() { java.lang.Object ref = customer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The account associated with the account summary.
       * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The customer to set. * @return This builder for chaining. */ public Builder setCustomer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The account associated with the account summary.
       * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCustomer() { customer_ = getDefaultInstance().getCustomer(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. The account associated with the account summary.
       * 
* * optional string customer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for customer to set. * @return This builder for chaining. */ public Builder setCustomerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long billingCorrectionSubtotalAmountMicros_ ; /** *
       * Output only. Pretax billing correction subtotal amount, in micros.
       * 
* * optional int64 billing_correction_subtotal_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasBillingCorrectionSubtotalAmountMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. Pretax billing correction subtotal amount, in micros.
       * 
* * optional int64 billing_correction_subtotal_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionSubtotalAmountMicros. */ @java.lang.Override public long getBillingCorrectionSubtotalAmountMicros() { return billingCorrectionSubtotalAmountMicros_; } /** *
       * Output only. Pretax billing correction subtotal amount, in micros.
       * 
* * optional int64 billing_correction_subtotal_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The billingCorrectionSubtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setBillingCorrectionSubtotalAmountMicros(long value) { billingCorrectionSubtotalAmountMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Pretax billing correction subtotal amount, in micros.
       * 
* * optional int64 billing_correction_subtotal_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBillingCorrectionSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000002); billingCorrectionSubtotalAmountMicros_ = 0L; onChanged(); return this; } private long billingCorrectionTaxAmountMicros_ ; /** *
       * Output only. Tax on billing correction, in micros.
       * 
* * optional int64 billing_correction_tax_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionTaxAmountMicros field is set. */ @java.lang.Override public boolean hasBillingCorrectionTaxAmountMicros() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Output only. Tax on billing correction, in micros.
       * 
* * optional int64 billing_correction_tax_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionTaxAmountMicros. */ @java.lang.Override public long getBillingCorrectionTaxAmountMicros() { return billingCorrectionTaxAmountMicros_; } /** *
       * Output only. Tax on billing correction, in micros.
       * 
* * optional int64 billing_correction_tax_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The billingCorrectionTaxAmountMicros to set. * @return This builder for chaining. */ public Builder setBillingCorrectionTaxAmountMicros(long value) { billingCorrectionTaxAmountMicros_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. Tax on billing correction, in micros.
       * 
* * optional int64 billing_correction_tax_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBillingCorrectionTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00000004); billingCorrectionTaxAmountMicros_ = 0L; onChanged(); return this; } private long billingCorrectionTotalAmountMicros_ ; /** *
       * Output only. Total billing correction amount, in micros.
       * 
* * optional int64 billing_correction_total_amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billingCorrectionTotalAmountMicros field is set. */ @java.lang.Override public boolean hasBillingCorrectionTotalAmountMicros() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Output only. Total billing correction amount, in micros.
       * 
* * optional int64 billing_correction_total_amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billingCorrectionTotalAmountMicros. */ @java.lang.Override public long getBillingCorrectionTotalAmountMicros() { return billingCorrectionTotalAmountMicros_; } /** *
       * Output only. Total billing correction amount, in micros.
       * 
* * optional int64 billing_correction_total_amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The billingCorrectionTotalAmountMicros to set. * @return This builder for chaining. */ public Builder setBillingCorrectionTotalAmountMicros(long value) { billingCorrectionTotalAmountMicros_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Output only. Total billing correction amount, in micros.
       * 
* * optional int64 billing_correction_total_amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBillingCorrectionTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000008); billingCorrectionTotalAmountMicros_ = 0L; onChanged(); return this; } private long couponAdjustmentSubtotalAmountMicros_ ; /** *
       * Output only. Pretax coupon adjustment subtotal amount, in micros.
       * 
* * optional int64 coupon_adjustment_subtotal_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasCouponAdjustmentSubtotalAmountMicros() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Output only. Pretax coupon adjustment subtotal amount, in micros.
       * 
* * optional int64 coupon_adjustment_subtotal_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentSubtotalAmountMicros. */ @java.lang.Override public long getCouponAdjustmentSubtotalAmountMicros() { return couponAdjustmentSubtotalAmountMicros_; } /** *
       * Output only. Pretax coupon adjustment subtotal amount, in micros.
       * 
* * optional int64 coupon_adjustment_subtotal_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The couponAdjustmentSubtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setCouponAdjustmentSubtotalAmountMicros(long value) { couponAdjustmentSubtotalAmountMicros_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Output only. Pretax coupon adjustment subtotal amount, in micros.
       * 
* * optional int64 coupon_adjustment_subtotal_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCouponAdjustmentSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000010); couponAdjustmentSubtotalAmountMicros_ = 0L; onChanged(); return this; } private long couponAdjustmentTaxAmountMicros_ ; /** *
       * Output only. Tax on coupon adjustment, in micros.
       * 
* * optional int64 coupon_adjustment_tax_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentTaxAmountMicros field is set. */ @java.lang.Override public boolean hasCouponAdjustmentTaxAmountMicros() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Output only. Tax on coupon adjustment, in micros.
       * 
* * optional int64 coupon_adjustment_tax_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentTaxAmountMicros. */ @java.lang.Override public long getCouponAdjustmentTaxAmountMicros() { return couponAdjustmentTaxAmountMicros_; } /** *
       * Output only. Tax on coupon adjustment, in micros.
       * 
* * optional int64 coupon_adjustment_tax_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The couponAdjustmentTaxAmountMicros to set. * @return This builder for chaining. */ public Builder setCouponAdjustmentTaxAmountMicros(long value) { couponAdjustmentTaxAmountMicros_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Output only. Tax on coupon adjustment, in micros.
       * 
* * optional int64 coupon_adjustment_tax_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCouponAdjustmentTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00000020); couponAdjustmentTaxAmountMicros_ = 0L; onChanged(); return this; } private long couponAdjustmentTotalAmountMicros_ ; /** *
       * Output only. Total coupon adjustment amount, in micros.
       * 
* * optional int64 coupon_adjustment_total_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the couponAdjustmentTotalAmountMicros field is set. */ @java.lang.Override public boolean hasCouponAdjustmentTotalAmountMicros() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Output only. Total coupon adjustment amount, in micros.
       * 
* * optional int64 coupon_adjustment_total_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The couponAdjustmentTotalAmountMicros. */ @java.lang.Override public long getCouponAdjustmentTotalAmountMicros() { return couponAdjustmentTotalAmountMicros_; } /** *
       * Output only. Total coupon adjustment amount, in micros.
       * 
* * optional int64 coupon_adjustment_total_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The couponAdjustmentTotalAmountMicros to set. * @return This builder for chaining. */ public Builder setCouponAdjustmentTotalAmountMicros(long value) { couponAdjustmentTotalAmountMicros_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Output only. Total coupon adjustment amount, in micros.
       * 
* * optional int64 coupon_adjustment_total_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCouponAdjustmentTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000040); couponAdjustmentTotalAmountMicros_ = 0L; onChanged(); return this; } private long excessCreditAdjustmentSubtotalAmountMicros_ ; /** *
       * Output only. Pretax excess credit adjustment subtotal amount, in micros.
       * 
* * optional int64 excess_credit_adjustment_subtotal_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasExcessCreditAdjustmentSubtotalAmountMicros() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * Output only. Pretax excess credit adjustment subtotal amount, in micros.
       * 
* * optional int64 excess_credit_adjustment_subtotal_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentSubtotalAmountMicros. */ @java.lang.Override public long getExcessCreditAdjustmentSubtotalAmountMicros() { return excessCreditAdjustmentSubtotalAmountMicros_; } /** *
       * Output only. Pretax excess credit adjustment subtotal amount, in micros.
       * 
* * optional int64 excess_credit_adjustment_subtotal_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The excessCreditAdjustmentSubtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setExcessCreditAdjustmentSubtotalAmountMicros(long value) { excessCreditAdjustmentSubtotalAmountMicros_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * Output only. Pretax excess credit adjustment subtotal amount, in micros.
       * 
* * optional int64 excess_credit_adjustment_subtotal_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExcessCreditAdjustmentSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000080); excessCreditAdjustmentSubtotalAmountMicros_ = 0L; onChanged(); return this; } private long excessCreditAdjustmentTaxAmountMicros_ ; /** *
       * Output only. Tax on excess credit adjustment, in micros.
       * 
* * optional int64 excess_credit_adjustment_tax_amount_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentTaxAmountMicros field is set. */ @java.lang.Override public boolean hasExcessCreditAdjustmentTaxAmountMicros() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * Output only. Tax on excess credit adjustment, in micros.
       * 
* * optional int64 excess_credit_adjustment_tax_amount_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentTaxAmountMicros. */ @java.lang.Override public long getExcessCreditAdjustmentTaxAmountMicros() { return excessCreditAdjustmentTaxAmountMicros_; } /** *
       * Output only. Tax on excess credit adjustment, in micros.
       * 
* * optional int64 excess_credit_adjustment_tax_amount_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The excessCreditAdjustmentTaxAmountMicros to set. * @return This builder for chaining. */ public Builder setExcessCreditAdjustmentTaxAmountMicros(long value) { excessCreditAdjustmentTaxAmountMicros_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Output only. Tax on excess credit adjustment, in micros.
       * 
* * optional int64 excess_credit_adjustment_tax_amount_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExcessCreditAdjustmentTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00000100); excessCreditAdjustmentTaxAmountMicros_ = 0L; onChanged(); return this; } private long excessCreditAdjustmentTotalAmountMicros_ ; /** *
       * Output only. Total excess credit adjustment amount, in micros.
       * 
* * optional int64 excess_credit_adjustment_total_amount_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCreditAdjustmentTotalAmountMicros field is set. */ @java.lang.Override public boolean hasExcessCreditAdjustmentTotalAmountMicros() { return ((bitField0_ & 0x00000200) != 0); } /** *
       * Output only. Total excess credit adjustment amount, in micros.
       * 
* * optional int64 excess_credit_adjustment_total_amount_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCreditAdjustmentTotalAmountMicros. */ @java.lang.Override public long getExcessCreditAdjustmentTotalAmountMicros() { return excessCreditAdjustmentTotalAmountMicros_; } /** *
       * Output only. Total excess credit adjustment amount, in micros.
       * 
* * optional int64 excess_credit_adjustment_total_amount_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The excessCreditAdjustmentTotalAmountMicros to set. * @return This builder for chaining. */ public Builder setExcessCreditAdjustmentTotalAmountMicros(long value) { excessCreditAdjustmentTotalAmountMicros_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * Output only. Total excess credit adjustment amount, in micros.
       * 
* * optional int64 excess_credit_adjustment_total_amount_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExcessCreditAdjustmentTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000200); excessCreditAdjustmentTotalAmountMicros_ = 0L; onChanged(); return this; } private long regulatoryCostsSubtotalAmountMicros_ ; /** *
       * Output only. Pretax regulatory costs subtotal amount, in micros.
       * 
* * optional int64 regulatory_costs_subtotal_amount_micros = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasRegulatoryCostsSubtotalAmountMicros() { return ((bitField0_ & 0x00000400) != 0); } /** *
       * Output only. Pretax regulatory costs subtotal amount, in micros.
       * 
* * optional int64 regulatory_costs_subtotal_amount_micros = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsSubtotalAmountMicros. */ @java.lang.Override public long getRegulatoryCostsSubtotalAmountMicros() { return regulatoryCostsSubtotalAmountMicros_; } /** *
       * Output only. Pretax regulatory costs subtotal amount, in micros.
       * 
* * optional int64 regulatory_costs_subtotal_amount_micros = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The regulatoryCostsSubtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setRegulatoryCostsSubtotalAmountMicros(long value) { regulatoryCostsSubtotalAmountMicros_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * Output only. Pretax regulatory costs subtotal amount, in micros.
       * 
* * optional int64 regulatory_costs_subtotal_amount_micros = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRegulatoryCostsSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000400); regulatoryCostsSubtotalAmountMicros_ = 0L; onChanged(); return this; } private long regulatoryCostsTaxAmountMicros_ ; /** *
       * Output only. Tax on regulatory costs, in micros.
       * 
* * optional int64 regulatory_costs_tax_amount_micros = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsTaxAmountMicros field is set. */ @java.lang.Override public boolean hasRegulatoryCostsTaxAmountMicros() { return ((bitField0_ & 0x00000800) != 0); } /** *
       * Output only. Tax on regulatory costs, in micros.
       * 
* * optional int64 regulatory_costs_tax_amount_micros = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsTaxAmountMicros. */ @java.lang.Override public long getRegulatoryCostsTaxAmountMicros() { return regulatoryCostsTaxAmountMicros_; } /** *
       * Output only. Tax on regulatory costs, in micros.
       * 
* * optional int64 regulatory_costs_tax_amount_micros = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The regulatoryCostsTaxAmountMicros to set. * @return This builder for chaining. */ public Builder setRegulatoryCostsTaxAmountMicros(long value) { regulatoryCostsTaxAmountMicros_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * Output only. Tax on regulatory costs, in micros.
       * 
* * optional int64 regulatory_costs_tax_amount_micros = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRegulatoryCostsTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00000800); regulatoryCostsTaxAmountMicros_ = 0L; onChanged(); return this; } private long regulatoryCostsTotalAmountMicros_ ; /** *
       * Output only. Total regulatory costs amount, in micros.
       * 
* * optional int64 regulatory_costs_total_amount_micros = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the regulatoryCostsTotalAmountMicros field is set. */ @java.lang.Override public boolean hasRegulatoryCostsTotalAmountMicros() { return ((bitField0_ & 0x00001000) != 0); } /** *
       * Output only. Total regulatory costs amount, in micros.
       * 
* * optional int64 regulatory_costs_total_amount_micros = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The regulatoryCostsTotalAmountMicros. */ @java.lang.Override public long getRegulatoryCostsTotalAmountMicros() { return regulatoryCostsTotalAmountMicros_; } /** *
       * Output only. Total regulatory costs amount, in micros.
       * 
* * optional int64 regulatory_costs_total_amount_micros = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The regulatoryCostsTotalAmountMicros to set. * @return This builder for chaining. */ public Builder setRegulatoryCostsTotalAmountMicros(long value) { regulatoryCostsTotalAmountMicros_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Output only. Total regulatory costs amount, in micros.
       * 
* * optional int64 regulatory_costs_total_amount_micros = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRegulatoryCostsTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00001000); regulatoryCostsTotalAmountMicros_ = 0L; onChanged(); return this; } private long exportChargeSubtotalAmountMicros_ ; /** *
       * Output only. Pretax export charge subtotal amount, in micros.
       * 
* * optional int64 export_charge_subtotal_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeSubtotalAmountMicros() { return ((bitField0_ & 0x00002000) != 0); } /** *
       * Output only. Pretax export charge subtotal amount, in micros.
       * 
* * optional int64 export_charge_subtotal_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeSubtotalAmountMicros. */ @java.lang.Override public long getExportChargeSubtotalAmountMicros() { return exportChargeSubtotalAmountMicros_; } /** *
       * Output only. Pretax export charge subtotal amount, in micros.
       * 
* * optional int64 export_charge_subtotal_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The exportChargeSubtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setExportChargeSubtotalAmountMicros(long value) { exportChargeSubtotalAmountMicros_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       * Output only. Pretax export charge subtotal amount, in micros.
       * 
* * optional int64 export_charge_subtotal_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExportChargeSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00002000); exportChargeSubtotalAmountMicros_ = 0L; onChanged(); return this; } private long exportChargeTaxAmountMicros_ ; /** *
       * Output only. Tax on export charge, in micros.
       * 
* * optional int64 export_charge_tax_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTaxAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeTaxAmountMicros() { return ((bitField0_ & 0x00004000) != 0); } /** *
       * Output only. Tax on export charge, in micros.
       * 
* * optional int64 export_charge_tax_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTaxAmountMicros. */ @java.lang.Override public long getExportChargeTaxAmountMicros() { return exportChargeTaxAmountMicros_; } /** *
       * Output only. Tax on export charge, in micros.
       * 
* * optional int64 export_charge_tax_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The exportChargeTaxAmountMicros to set. * @return This builder for chaining. */ public Builder setExportChargeTaxAmountMicros(long value) { exportChargeTaxAmountMicros_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * Output only. Tax on export charge, in micros.
       * 
* * optional int64 export_charge_tax_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExportChargeTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00004000); exportChargeTaxAmountMicros_ = 0L; onChanged(); return this; } private long exportChargeTotalAmountMicros_ ; /** *
       * Output only. Total export charge amount, in micros.
       * 
* * optional int64 export_charge_total_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTotalAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeTotalAmountMicros() { return ((bitField0_ & 0x00008000) != 0); } /** *
       * Output only. Total export charge amount, in micros.
       * 
* * optional int64 export_charge_total_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTotalAmountMicros. */ @java.lang.Override public long getExportChargeTotalAmountMicros() { return exportChargeTotalAmountMicros_; } /** *
       * Output only. Total export charge amount, in micros.
       * 
* * optional int64 export_charge_total_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The exportChargeTotalAmountMicros to set. * @return This builder for chaining. */ public Builder setExportChargeTotalAmountMicros(long value) { exportChargeTotalAmountMicros_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** *
       * Output only. Total export charge amount, in micros.
       * 
* * optional int64 export_charge_total_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExportChargeTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00008000); exportChargeTotalAmountMicros_ = 0L; onChanged(); return this; } private long subtotalAmountMicros_ ; /** *
       * Output only. Total pretax subtotal amount attributable to the account
       * during the service period, in micros.
       * 
* * optional int64 subtotal_amount_micros = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the subtotalAmountMicros field is set. */ @java.lang.Override public boolean hasSubtotalAmountMicros() { return ((bitField0_ & 0x00010000) != 0); } /** *
       * Output only. Total pretax subtotal amount attributable to the account
       * during the service period, in micros.
       * 
* * optional int64 subtotal_amount_micros = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The subtotalAmountMicros. */ @java.lang.Override public long getSubtotalAmountMicros() { return subtotalAmountMicros_; } /** *
       * Output only. Total pretax subtotal amount attributable to the account
       * during the service period, in micros.
       * 
* * optional int64 subtotal_amount_micros = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The subtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setSubtotalAmountMicros(long value) { subtotalAmountMicros_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
       * Output only. Total pretax subtotal amount attributable to the account
       * during the service period, in micros.
       * 
* * optional int64 subtotal_amount_micros = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00010000); subtotalAmountMicros_ = 0L; onChanged(); return this; } private long taxAmountMicros_ ; /** *
       * Output only. Total tax amount attributable to the account during the
       * service period, in micros.
       * 
* * optional int64 tax_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the taxAmountMicros field is set. */ @java.lang.Override public boolean hasTaxAmountMicros() { return ((bitField0_ & 0x00020000) != 0); } /** *
       * Output only. Total tax amount attributable to the account during the
       * service period, in micros.
       * 
* * optional int64 tax_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The taxAmountMicros. */ @java.lang.Override public long getTaxAmountMicros() { return taxAmountMicros_; } /** *
       * Output only. Total tax amount attributable to the account during the
       * service period, in micros.
       * 
* * optional int64 tax_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The taxAmountMicros to set. * @return This builder for chaining. */ public Builder setTaxAmountMicros(long value) { taxAmountMicros_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** *
       * Output only. Total tax amount attributable to the account during the
       * service period, in micros.
       * 
* * optional int64 tax_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00020000); taxAmountMicros_ = 0L; onChanged(); return this; } private long totalAmountMicros_ ; /** *
       * Output only. Total amount attributable to the account during the service
       * period, in micros. This equals the sum of the subtotal_amount_micros and
       * tax_amount_micros.
       * 
* * optional int64 total_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the totalAmountMicros field is set. */ @java.lang.Override public boolean hasTotalAmountMicros() { return ((bitField0_ & 0x00040000) != 0); } /** *
       * Output only. Total amount attributable to the account during the service
       * period, in micros. This equals the sum of the subtotal_amount_micros and
       * tax_amount_micros.
       * 
* * optional int64 total_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The totalAmountMicros. */ @java.lang.Override public long getTotalAmountMicros() { return totalAmountMicros_; } /** *
       * Output only. Total amount attributable to the account during the service
       * period, in micros. This equals the sum of the subtotal_amount_micros and
       * tax_amount_micros.
       * 
* * optional int64 total_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The totalAmountMicros to set. * @return This builder for chaining. */ public Builder setTotalAmountMicros(long value) { totalAmountMicros_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** *
       * Output only. Total amount attributable to the account during the service
       * period, in micros. This equals the sum of the subtotal_amount_micros and
       * tax_amount_micros.
       * 
* * optional int64 total_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00040000); totalAmountMicros_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.Invoice.AccountSummary) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.Invoice.AccountSummary) private static final com.google.ads.googleads.v18.resources.Invoice.AccountSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.Invoice.AccountSummary(); } public static com.google.ads.googleads.v18.resources.Invoice.AccountSummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountBudgetSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The resource name of the customer associated with this
     * account budget. This contains the customer ID, which appears on the
     * invoice PDF as "Account ID". Customer resource names have the form:
     *
     * `customers/{customer_id}`
     * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customer field is set. */ boolean hasCustomer(); /** *
     * Output only. The resource name of the customer associated with this
     * account budget. This contains the customer ID, which appears on the
     * invoice PDF as "Account ID". Customer resource names have the form:
     *
     * `customers/{customer_id}`
     * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customer. */ java.lang.String getCustomer(); /** *
     * Output only. The resource name of the customer associated with this
     * account budget. This contains the customer ID, which appears on the
     * invoice PDF as "Account ID". Customer resource names have the form:
     *
     * `customers/{customer_id}`
     * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customer. */ com.google.protobuf.ByteString getCustomerBytes(); /** *
     * Output only. The descriptive name of the account budget's customer. It
     * appears on the invoice PDF as "Account".
     * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerDescriptiveName field is set. */ boolean hasCustomerDescriptiveName(); /** *
     * Output only. The descriptive name of the account budget's customer. It
     * appears on the invoice PDF as "Account".
     * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerDescriptiveName. */ java.lang.String getCustomerDescriptiveName(); /** *
     * Output only. The descriptive name of the account budget's customer. It
     * appears on the invoice PDF as "Account".
     * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customerDescriptiveName. */ com.google.protobuf.ByteString getCustomerDescriptiveNameBytes(); /** *
     * Output only. The resource name of the account budget associated with this
     * summarized billable cost. AccountBudget resource names have the form:
     *
     * `customers/{customer_id}/accountBudgets/{account_budget_id}`
     * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountBudget field is set. */ boolean hasAccountBudget(); /** *
     * Output only. The resource name of the account budget associated with this
     * summarized billable cost. AccountBudget resource names have the form:
     *
     * `customers/{customer_id}/accountBudgets/{account_budget_id}`
     * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountBudget. */ java.lang.String getAccountBudget(); /** *
     * Output only. The resource name of the account budget associated with this
     * summarized billable cost. AccountBudget resource names have the form:
     *
     * `customers/{customer_id}/accountBudgets/{account_budget_id}`
     * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for accountBudget. */ com.google.protobuf.ByteString getAccountBudgetBytes(); /** *
     * Output only. The name of the account budget. It appears on the invoice
     * PDF as "Account budget".
     * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountBudgetName field is set. */ boolean hasAccountBudgetName(); /** *
     * Output only. The name of the account budget. It appears on the invoice
     * PDF as "Account budget".
     * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountBudgetName. */ java.lang.String getAccountBudgetName(); /** *
     * Output only. The name of the account budget. It appears on the invoice
     * PDF as "Account budget".
     * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for accountBudgetName. */ com.google.protobuf.ByteString getAccountBudgetNameBytes(); /** *
     * Output only. The purchase order number of the account budget. It appears
     * on the invoice PDF as "Purchase order".
     * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the purchaseOrderNumber field is set. */ boolean hasPurchaseOrderNumber(); /** *
     * Output only. The purchase order number of the account budget. It appears
     * on the invoice PDF as "Purchase order".
     * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The purchaseOrderNumber. */ java.lang.String getPurchaseOrderNumber(); /** *
     * Output only. The purchase order number of the account budget. It appears
     * on the invoice PDF as "Purchase order".
     * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for purchaseOrderNumber. */ com.google.protobuf.ByteString getPurchaseOrderNumberBytes(); /** *
     * Output only. The pretax subtotal amount attributable to this budget
     * during the service period, in micros.
     * 
* * optional int64 subtotal_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the subtotalAmountMicros field is set. */ boolean hasSubtotalAmountMicros(); /** *
     * Output only. The pretax subtotal amount attributable to this budget
     * during the service period, in micros.
     * 
* * optional int64 subtotal_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The subtotalAmountMicros. */ long getSubtotalAmountMicros(); /** *
     * Output only. The tax amount attributable to this budget during the
     * service period, in micros.
     * 
* * optional int64 tax_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the taxAmountMicros field is set. */ boolean hasTaxAmountMicros(); /** *
     * Output only. The tax amount attributable to this budget during the
     * service period, in micros.
     * 
* * optional int64 tax_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The taxAmountMicros. */ long getTaxAmountMicros(); /** *
     * Output only. The total amount attributable to this budget during the
     * service period, in micros. This equals the sum of the account budget
     * subtotal amount and the account budget tax amount.
     * 
* * optional int64 total_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the totalAmountMicros field is set. */ boolean hasTotalAmountMicros(); /** *
     * Output only. The total amount attributable to this budget during the
     * service period, in micros. This equals the sum of the account budget
     * subtotal amount and the account budget tax amount.
     * 
* * optional int64 total_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The totalAmountMicros. */ long getTotalAmountMicros(); /** *
     * Output only. The billable activity date range of the account budget,
     * within the service date range of this invoice. The end date is inclusive.
     * This can be different from the account budget's start and end time.
     * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billableActivityDateRange field is set. */ boolean hasBillableActivityDateRange(); /** *
     * Output only. The billable activity date range of the account budget,
     * within the service date range of this invoice. The end date is inclusive.
     * This can be different from the account budget's start and end time.
     * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billableActivityDateRange. */ com.google.ads.googleads.v18.common.DateRange getBillableActivityDateRange(); /** *
     * Output only. The billable activity date range of the account budget,
     * within the service date range of this invoice. The end date is inclusive.
     * This can be different from the account budget's start and end time.
     * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v18.common.DateRangeOrBuilder getBillableActivityDateRangeOrBuilder(); /** *
     * Output only. The pretax served amount attributable to this budget during
     * the service period, in micros. This is only useful to reconcile invoice
     * and delivery data.
     * 
* * optional int64 served_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the servedAmountMicros field is set. */ boolean hasServedAmountMicros(); /** *
     * Output only. The pretax served amount attributable to this budget during
     * the service period, in micros. This is only useful to reconcile invoice
     * and delivery data.
     * 
* * optional int64 served_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The servedAmountMicros. */ long getServedAmountMicros(); /** *
     * Output only. The pretax billed amount attributable to this budget during
     * the service period, in micros. This does not account for any adjustments.
     * 
* * optional int64 billed_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billedAmountMicros field is set. */ boolean hasBilledAmountMicros(); /** *
     * Output only. The pretax billed amount attributable to this budget during
     * the service period, in micros. This does not account for any adjustments.
     * 
* * optional int64 billed_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billedAmountMicros. */ long getBilledAmountMicros(); /** *
     * Output only. The pretax overdelivery amount attributable to this budget
     * during the service period, in micros (negative value).
     * 
* * optional int64 overdelivery_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the overdeliveryAmountMicros field is set. */ boolean hasOverdeliveryAmountMicros(); /** *
     * Output only. The pretax overdelivery amount attributable to this budget
     * during the service period, in micros (negative value).
     * 
* * optional int64 overdelivery_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The overdeliveryAmountMicros. */ long getOverdeliveryAmountMicros(); /** *
     * Output only. The pretax invalid activity amount attributable to this
     * budget in previous months, in micros (negative value).
     * 
* * optional int64 invalid_activity_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the invalidActivityAmountMicros field is set. */ boolean hasInvalidActivityAmountMicros(); /** *
     * Output only. The pretax invalid activity amount attributable to this
     * budget in previous months, in micros (negative value).
     * 
* * optional int64 invalid_activity_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The invalidActivityAmountMicros. */ long getInvalidActivityAmountMicros(); /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getInvalidActivitySummariesList(); /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary getInvalidActivitySummaries(int index); /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getInvalidActivitySummariesCount(); /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getInvalidActivitySummariesOrBuilderList(); /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummaryOrBuilder getInvalidActivitySummariesOrBuilder( int index); } /** *
   * Represents a summarized account budget billable cost.
   * 
* * Protobuf type {@code google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary} */ public static final class AccountBudgetSummary extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary) AccountBudgetSummaryOrBuilder { private static final long serialVersionUID = 0L; // Use AccountBudgetSummary.newBuilder() to construct. private AccountBudgetSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountBudgetSummary() { customer_ = ""; customerDescriptiveName_ = ""; accountBudget_ = ""; accountBudgetName_ = ""; purchaseOrderNumber_ = ""; invalidActivitySummaries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountBudgetSummary(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountBudgetSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountBudgetSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.class, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder.class); } private int bitField0_; public static final int CUSTOMER_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object customer_ = ""; /** *
     * Output only. The resource name of the customer associated with this
     * account budget. This contains the customer ID, which appears on the
     * invoice PDF as "Account ID". Customer resource names have the form:
     *
     * `customers/{customer_id}`
     * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customer field is set. */ @java.lang.Override public boolean hasCustomer() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The resource name of the customer associated with this
     * account budget. This contains the customer ID, which appears on the
     * invoice PDF as "Account ID". Customer resource names have the form:
     *
     * `customers/{customer_id}`
     * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customer. */ @java.lang.Override public java.lang.String getCustomer() { java.lang.Object ref = customer_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customer_ = s; return s; } } /** *
     * Output only. The resource name of the customer associated with this
     * account budget. This contains the customer ID, which appears on the
     * invoice PDF as "Account ID". Customer resource names have the form:
     *
     * `customers/{customer_id}`
     * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customer. */ @java.lang.Override public com.google.protobuf.ByteString getCustomerBytes() { java.lang.Object ref = customer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CUSTOMER_DESCRIPTIVE_NAME_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object customerDescriptiveName_ = ""; /** *
     * Output only. The descriptive name of the account budget's customer. It
     * appears on the invoice PDF as "Account".
     * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerDescriptiveName field is set. */ @java.lang.Override public boolean hasCustomerDescriptiveName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The descriptive name of the account budget's customer. It
     * appears on the invoice PDF as "Account".
     * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerDescriptiveName. */ @java.lang.Override public java.lang.String getCustomerDescriptiveName() { java.lang.Object ref = customerDescriptiveName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerDescriptiveName_ = s; return s; } } /** *
     * Output only. The descriptive name of the account budget's customer. It
     * appears on the invoice PDF as "Account".
     * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customerDescriptiveName. */ @java.lang.Override public com.google.protobuf.ByteString getCustomerDescriptiveNameBytes() { java.lang.Object ref = customerDescriptiveName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerDescriptiveName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCOUNT_BUDGET_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object accountBudget_ = ""; /** *
     * Output only. The resource name of the account budget associated with this
     * summarized billable cost. AccountBudget resource names have the form:
     *
     * `customers/{customer_id}/accountBudgets/{account_budget_id}`
     * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountBudget field is set. */ @java.lang.Override public boolean hasAccountBudget() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. The resource name of the account budget associated with this
     * summarized billable cost. AccountBudget resource names have the form:
     *
     * `customers/{customer_id}/accountBudgets/{account_budget_id}`
     * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountBudget. */ @java.lang.Override public java.lang.String getAccountBudget() { java.lang.Object ref = accountBudget_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountBudget_ = s; return s; } } /** *
     * Output only. The resource name of the account budget associated with this
     * summarized billable cost. AccountBudget resource names have the form:
     *
     * `customers/{customer_id}/accountBudgets/{account_budget_id}`
     * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for accountBudget. */ @java.lang.Override public com.google.protobuf.ByteString getAccountBudgetBytes() { java.lang.Object ref = accountBudget_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountBudget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCOUNT_BUDGET_NAME_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object accountBudgetName_ = ""; /** *
     * Output only. The name of the account budget. It appears on the invoice
     * PDF as "Account budget".
     * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountBudgetName field is set. */ @java.lang.Override public boolean hasAccountBudgetName() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Output only. The name of the account budget. It appears on the invoice
     * PDF as "Account budget".
     * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountBudgetName. */ @java.lang.Override public java.lang.String getAccountBudgetName() { java.lang.Object ref = accountBudgetName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountBudgetName_ = s; return s; } } /** *
     * Output only. The name of the account budget. It appears on the invoice
     * PDF as "Account budget".
     * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for accountBudgetName. */ @java.lang.Override public com.google.protobuf.ByteString getAccountBudgetNameBytes() { java.lang.Object ref = accountBudgetName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountBudgetName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PURCHASE_ORDER_NUMBER_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object purchaseOrderNumber_ = ""; /** *
     * Output only. The purchase order number of the account budget. It appears
     * on the invoice PDF as "Purchase order".
     * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the purchaseOrderNumber field is set. */ @java.lang.Override public boolean hasPurchaseOrderNumber() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Output only. The purchase order number of the account budget. It appears
     * on the invoice PDF as "Purchase order".
     * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The purchaseOrderNumber. */ @java.lang.Override public java.lang.String getPurchaseOrderNumber() { java.lang.Object ref = purchaseOrderNumber_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); purchaseOrderNumber_ = s; return s; } } /** *
     * Output only. The purchase order number of the account budget. It appears
     * on the invoice PDF as "Purchase order".
     * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for purchaseOrderNumber. */ @java.lang.Override public com.google.protobuf.ByteString getPurchaseOrderNumberBytes() { java.lang.Object ref = purchaseOrderNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); purchaseOrderNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 15; private long subtotalAmountMicros_ = 0L; /** *
     * Output only. The pretax subtotal amount attributable to this budget
     * during the service period, in micros.
     * 
* * optional int64 subtotal_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the subtotalAmountMicros field is set. */ @java.lang.Override public boolean hasSubtotalAmountMicros() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Output only. The pretax subtotal amount attributable to this budget
     * during the service period, in micros.
     * 
* * optional int64 subtotal_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The subtotalAmountMicros. */ @java.lang.Override public long getSubtotalAmountMicros() { return subtotalAmountMicros_; } public static final int TAX_AMOUNT_MICROS_FIELD_NUMBER = 16; private long taxAmountMicros_ = 0L; /** *
     * Output only. The tax amount attributable to this budget during the
     * service period, in micros.
     * 
* * optional int64 tax_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the taxAmountMicros field is set. */ @java.lang.Override public boolean hasTaxAmountMicros() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Output only. The tax amount attributable to this budget during the
     * service period, in micros.
     * 
* * optional int64 tax_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The taxAmountMicros. */ @java.lang.Override public long getTaxAmountMicros() { return taxAmountMicros_; } public static final int TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 17; private long totalAmountMicros_ = 0L; /** *
     * Output only. The total amount attributable to this budget during the
     * service period, in micros. This equals the sum of the account budget
     * subtotal amount and the account budget tax amount.
     * 
* * optional int64 total_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the totalAmountMicros field is set. */ @java.lang.Override public boolean hasTotalAmountMicros() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Output only. The total amount attributable to this budget during the
     * service period, in micros. This equals the sum of the account budget
     * subtotal amount and the account budget tax amount.
     * 
* * optional int64 total_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The totalAmountMicros. */ @java.lang.Override public long getTotalAmountMicros() { return totalAmountMicros_; } public static final int BILLABLE_ACTIVITY_DATE_RANGE_FIELD_NUMBER = 9; private com.google.ads.googleads.v18.common.DateRange billableActivityDateRange_; /** *
     * Output only. The billable activity date range of the account budget,
     * within the service date range of this invoice. The end date is inclusive.
     * This can be different from the account budget's start and end time.
     * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billableActivityDateRange field is set. */ @java.lang.Override public boolean hasBillableActivityDateRange() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Output only. The billable activity date range of the account budget,
     * within the service date range of this invoice. The end date is inclusive.
     * This can be different from the account budget's start and end time.
     * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billableActivityDateRange. */ @java.lang.Override public com.google.ads.googleads.v18.common.DateRange getBillableActivityDateRange() { return billableActivityDateRange_ == null ? com.google.ads.googleads.v18.common.DateRange.getDefaultInstance() : billableActivityDateRange_; } /** *
     * Output only. The billable activity date range of the account budget,
     * within the service date range of this invoice. The end date is inclusive.
     * This can be different from the account budget's start and end time.
     * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.common.DateRangeOrBuilder getBillableActivityDateRangeOrBuilder() { return billableActivityDateRange_ == null ? com.google.ads.googleads.v18.common.DateRange.getDefaultInstance() : billableActivityDateRange_; } public static final int SERVED_AMOUNT_MICROS_FIELD_NUMBER = 18; private long servedAmountMicros_ = 0L; /** *
     * Output only. The pretax served amount attributable to this budget during
     * the service period, in micros. This is only useful to reconcile invoice
     * and delivery data.
     * 
* * optional int64 served_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the servedAmountMicros field is set. */ @java.lang.Override public boolean hasServedAmountMicros() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Output only. The pretax served amount attributable to this budget during
     * the service period, in micros. This is only useful to reconcile invoice
     * and delivery data.
     * 
* * optional int64 served_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The servedAmountMicros. */ @java.lang.Override public long getServedAmountMicros() { return servedAmountMicros_; } public static final int BILLED_AMOUNT_MICROS_FIELD_NUMBER = 19; private long billedAmountMicros_ = 0L; /** *
     * Output only. The pretax billed amount attributable to this budget during
     * the service period, in micros. This does not account for any adjustments.
     * 
* * optional int64 billed_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billedAmountMicros field is set. */ @java.lang.Override public boolean hasBilledAmountMicros() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Output only. The pretax billed amount attributable to this budget during
     * the service period, in micros. This does not account for any adjustments.
     * 
* * optional int64 billed_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billedAmountMicros. */ @java.lang.Override public long getBilledAmountMicros() { return billedAmountMicros_; } public static final int OVERDELIVERY_AMOUNT_MICROS_FIELD_NUMBER = 20; private long overdeliveryAmountMicros_ = 0L; /** *
     * Output only. The pretax overdelivery amount attributable to this budget
     * during the service period, in micros (negative value).
     * 
* * optional int64 overdelivery_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the overdeliveryAmountMicros field is set. */ @java.lang.Override public boolean hasOverdeliveryAmountMicros() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * Output only. The pretax overdelivery amount attributable to this budget
     * during the service period, in micros (negative value).
     * 
* * optional int64 overdelivery_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The overdeliveryAmountMicros. */ @java.lang.Override public long getOverdeliveryAmountMicros() { return overdeliveryAmountMicros_; } public static final int INVALID_ACTIVITY_AMOUNT_MICROS_FIELD_NUMBER = 21; private long invalidActivityAmountMicros_ = 0L; /** *
     * Output only. The pretax invalid activity amount attributable to this
     * budget in previous months, in micros (negative value).
     * 
* * optional int64 invalid_activity_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the invalidActivityAmountMicros field is set. */ @java.lang.Override public boolean hasInvalidActivityAmountMicros() { return ((bitField0_ & 0x00001000) != 0); } /** *
     * Output only. The pretax invalid activity amount attributable to this
     * budget in previous months, in micros (negative value).
     * 
* * optional int64 invalid_activity_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The invalidActivityAmountMicros. */ @java.lang.Override public long getInvalidActivityAmountMicros() { return invalidActivityAmountMicros_; } public static final int INVALID_ACTIVITY_SUMMARIES_FIELD_NUMBER = 22; @SuppressWarnings("serial") private java.util.List invalidActivitySummaries_; /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getInvalidActivitySummariesList() { return invalidActivitySummaries_; } /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getInvalidActivitySummariesOrBuilderList() { return invalidActivitySummaries_; } /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getInvalidActivitySummariesCount() { return invalidActivitySummaries_.size(); } /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary getInvalidActivitySummaries(int index) { return invalidActivitySummaries_.get(index); } /** *
     * Output only. The list of summarized invalid activity credits with
     * original linkages.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummaryOrBuilder getInvalidActivitySummariesOrBuilder( int index) { return invalidActivitySummaries_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(9, getBillableActivityDateRange()); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customer_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, customerDescriptiveName_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, accountBudget_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, accountBudgetName_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, purchaseOrderNumber_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(15, subtotalAmountMicros_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt64(16, taxAmountMicros_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeInt64(17, totalAmountMicros_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeInt64(18, servedAmountMicros_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeInt64(19, billedAmountMicros_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeInt64(20, overdeliveryAmountMicros_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeInt64(21, invalidActivityAmountMicros_); } for (int i = 0; i < invalidActivitySummaries_.size(); i++) { output.writeMessage(22, invalidActivitySummaries_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getBillableActivityDateRange()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customer_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, customerDescriptiveName_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, accountBudget_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, accountBudgetName_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, purchaseOrderNumber_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, subtotalAmountMicros_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, taxAmountMicros_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(17, totalAmountMicros_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, servedAmountMicros_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, billedAmountMicros_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(20, overdeliveryAmountMicros_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(21, invalidActivityAmountMicros_); } for (int i = 0; i < invalidActivitySummaries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, invalidActivitySummaries_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary)) { return super.equals(obj); } com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary other = (com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary) obj; if (hasCustomer() != other.hasCustomer()) return false; if (hasCustomer()) { if (!getCustomer() .equals(other.getCustomer())) return false; } if (hasCustomerDescriptiveName() != other.hasCustomerDescriptiveName()) return false; if (hasCustomerDescriptiveName()) { if (!getCustomerDescriptiveName() .equals(other.getCustomerDescriptiveName())) return false; } if (hasAccountBudget() != other.hasAccountBudget()) return false; if (hasAccountBudget()) { if (!getAccountBudget() .equals(other.getAccountBudget())) return false; } if (hasAccountBudgetName() != other.hasAccountBudgetName()) return false; if (hasAccountBudgetName()) { if (!getAccountBudgetName() .equals(other.getAccountBudgetName())) return false; } if (hasPurchaseOrderNumber() != other.hasPurchaseOrderNumber()) return false; if (hasPurchaseOrderNumber()) { if (!getPurchaseOrderNumber() .equals(other.getPurchaseOrderNumber())) return false; } if (hasSubtotalAmountMicros() != other.hasSubtotalAmountMicros()) return false; if (hasSubtotalAmountMicros()) { if (getSubtotalAmountMicros() != other.getSubtotalAmountMicros()) return false; } if (hasTaxAmountMicros() != other.hasTaxAmountMicros()) return false; if (hasTaxAmountMicros()) { if (getTaxAmountMicros() != other.getTaxAmountMicros()) return false; } if (hasTotalAmountMicros() != other.hasTotalAmountMicros()) return false; if (hasTotalAmountMicros()) { if (getTotalAmountMicros() != other.getTotalAmountMicros()) return false; } if (hasBillableActivityDateRange() != other.hasBillableActivityDateRange()) return false; if (hasBillableActivityDateRange()) { if (!getBillableActivityDateRange() .equals(other.getBillableActivityDateRange())) return false; } if (hasServedAmountMicros() != other.hasServedAmountMicros()) return false; if (hasServedAmountMicros()) { if (getServedAmountMicros() != other.getServedAmountMicros()) return false; } if (hasBilledAmountMicros() != other.hasBilledAmountMicros()) return false; if (hasBilledAmountMicros()) { if (getBilledAmountMicros() != other.getBilledAmountMicros()) return false; } if (hasOverdeliveryAmountMicros() != other.hasOverdeliveryAmountMicros()) return false; if (hasOverdeliveryAmountMicros()) { if (getOverdeliveryAmountMicros() != other.getOverdeliveryAmountMicros()) return false; } if (hasInvalidActivityAmountMicros() != other.hasInvalidActivityAmountMicros()) return false; if (hasInvalidActivityAmountMicros()) { if (getInvalidActivityAmountMicros() != other.getInvalidActivityAmountMicros()) return false; } if (!getInvalidActivitySummariesList() .equals(other.getInvalidActivitySummariesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCustomer()) { hash = (37 * hash) + CUSTOMER_FIELD_NUMBER; hash = (53 * hash) + getCustomer().hashCode(); } if (hasCustomerDescriptiveName()) { hash = (37 * hash) + CUSTOMER_DESCRIPTIVE_NAME_FIELD_NUMBER; hash = (53 * hash) + getCustomerDescriptiveName().hashCode(); } if (hasAccountBudget()) { hash = (37 * hash) + ACCOUNT_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getAccountBudget().hashCode(); } if (hasAccountBudgetName()) { hash = (37 * hash) + ACCOUNT_BUDGET_NAME_FIELD_NUMBER; hash = (53 * hash) + getAccountBudgetName().hashCode(); } if (hasPurchaseOrderNumber()) { hash = (37 * hash) + PURCHASE_ORDER_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPurchaseOrderNumber().hashCode(); } if (hasSubtotalAmountMicros()) { hash = (37 * hash) + SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSubtotalAmountMicros()); } if (hasTaxAmountMicros()) { hash = (37 * hash) + TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTaxAmountMicros()); } if (hasTotalAmountMicros()) { hash = (37 * hash) + TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalAmountMicros()); } if (hasBillableActivityDateRange()) { hash = (37 * hash) + BILLABLE_ACTIVITY_DATE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getBillableActivityDateRange().hashCode(); } if (hasServedAmountMicros()) { hash = (37 * hash) + SERVED_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getServedAmountMicros()); } if (hasBilledAmountMicros()) { hash = (37 * hash) + BILLED_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBilledAmountMicros()); } if (hasOverdeliveryAmountMicros()) { hash = (37 * hash) + OVERDELIVERY_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOverdeliveryAmountMicros()); } if (hasInvalidActivityAmountMicros()) { hash = (37 * hash) + INVALID_ACTIVITY_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInvalidActivityAmountMicros()); } if (getInvalidActivitySummariesCount() > 0) { hash = (37 * hash) + INVALID_ACTIVITY_SUMMARIES_FIELD_NUMBER; hash = (53 * hash) + getInvalidActivitySummariesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Represents a summarized account budget billable cost.
     * 
* * Protobuf type {@code google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary) com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountBudgetSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountBudgetSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.class, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder.class); } // Construct using com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBillableActivityDateRangeFieldBuilder(); getInvalidActivitySummariesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; customer_ = ""; customerDescriptiveName_ = ""; accountBudget_ = ""; accountBudgetName_ = ""; purchaseOrderNumber_ = ""; subtotalAmountMicros_ = 0L; taxAmountMicros_ = 0L; totalAmountMicros_ = 0L; billableActivityDateRange_ = null; if (billableActivityDateRangeBuilder_ != null) { billableActivityDateRangeBuilder_.dispose(); billableActivityDateRangeBuilder_ = null; } servedAmountMicros_ = 0L; billedAmountMicros_ = 0L; overdeliveryAmountMicros_ = 0L; invalidActivityAmountMicros_ = 0L; if (invalidActivitySummariesBuilder_ == null) { invalidActivitySummaries_ = java.util.Collections.emptyList(); } else { invalidActivitySummaries_ = null; invalidActivitySummariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_AccountBudgetSummary_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary getDefaultInstanceForType() { return com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary build() { com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary buildPartial() { com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary result = new com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary result) { if (invalidActivitySummariesBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0)) { invalidActivitySummaries_ = java.util.Collections.unmodifiableList(invalidActivitySummaries_); bitField0_ = (bitField0_ & ~0x00002000); } result.invalidActivitySummaries_ = invalidActivitySummaries_; } else { result.invalidActivitySummaries_ = invalidActivitySummariesBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.customer_ = customer_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.customerDescriptiveName_ = customerDescriptiveName_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.accountBudget_ = accountBudget_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.accountBudgetName_ = accountBudgetName_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.purchaseOrderNumber_ = purchaseOrderNumber_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.subtotalAmountMicros_ = subtotalAmountMicros_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.taxAmountMicros_ = taxAmountMicros_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.totalAmountMicros_ = totalAmountMicros_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.billableActivityDateRange_ = billableActivityDateRangeBuilder_ == null ? billableActivityDateRange_ : billableActivityDateRangeBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.servedAmountMicros_ = servedAmountMicros_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { result.billedAmountMicros_ = billedAmountMicros_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { result.overdeliveryAmountMicros_ = overdeliveryAmountMicros_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { result.invalidActivityAmountMicros_ = invalidActivityAmountMicros_; to_bitField0_ |= 0x00001000; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary) { return mergeFrom((com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary other) { if (other == com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.getDefaultInstance()) return this; if (other.hasCustomer()) { customer_ = other.customer_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCustomerDescriptiveName()) { customerDescriptiveName_ = other.customerDescriptiveName_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasAccountBudget()) { accountBudget_ = other.accountBudget_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasAccountBudgetName()) { accountBudgetName_ = other.accountBudgetName_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasPurchaseOrderNumber()) { purchaseOrderNumber_ = other.purchaseOrderNumber_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasSubtotalAmountMicros()) { setSubtotalAmountMicros(other.getSubtotalAmountMicros()); } if (other.hasTaxAmountMicros()) { setTaxAmountMicros(other.getTaxAmountMicros()); } if (other.hasTotalAmountMicros()) { setTotalAmountMicros(other.getTotalAmountMicros()); } if (other.hasBillableActivityDateRange()) { mergeBillableActivityDateRange(other.getBillableActivityDateRange()); } if (other.hasServedAmountMicros()) { setServedAmountMicros(other.getServedAmountMicros()); } if (other.hasBilledAmountMicros()) { setBilledAmountMicros(other.getBilledAmountMicros()); } if (other.hasOverdeliveryAmountMicros()) { setOverdeliveryAmountMicros(other.getOverdeliveryAmountMicros()); } if (other.hasInvalidActivityAmountMicros()) { setInvalidActivityAmountMicros(other.getInvalidActivityAmountMicros()); } if (invalidActivitySummariesBuilder_ == null) { if (!other.invalidActivitySummaries_.isEmpty()) { if (invalidActivitySummaries_.isEmpty()) { invalidActivitySummaries_ = other.invalidActivitySummaries_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.addAll(other.invalidActivitySummaries_); } onChanged(); } } else { if (!other.invalidActivitySummaries_.isEmpty()) { if (invalidActivitySummariesBuilder_.isEmpty()) { invalidActivitySummariesBuilder_.dispose(); invalidActivitySummariesBuilder_ = null; invalidActivitySummaries_ = other.invalidActivitySummaries_; bitField0_ = (bitField0_ & ~0x00002000); invalidActivitySummariesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInvalidActivitySummariesFieldBuilder() : null; } else { invalidActivitySummariesBuilder_.addAllMessages(other.invalidActivitySummaries_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 74: { input.readMessage( getBillableActivityDateRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { customer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 82 case 90: { customerDescriptiveName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 90 case 98: { accountBudget_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 98 case 106: { accountBudgetName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 106 case 114: { purchaseOrderNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 114 case 120: { subtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 120 case 128: { taxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 128 case 136: { totalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 136 case 144: { servedAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 144 case 152: { billedAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 152 case 160: { overdeliveryAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 160 case 168: { invalidActivityAmountMicros_ = input.readInt64(); bitField0_ |= 0x00001000; break; } // case 168 case 178: { com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary m = input.readMessage( com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.parser(), extensionRegistry); if (invalidActivitySummariesBuilder_ == null) { ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.add(m); } else { invalidActivitySummariesBuilder_.addMessage(m); } break; } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object customer_ = ""; /** *
       * Output only. The resource name of the customer associated with this
       * account budget. This contains the customer ID, which appears on the
       * invoice PDF as "Account ID". Customer resource names have the form:
       *
       * `customers/{customer_id}`
       * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customer field is set. */ public boolean hasCustomer() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The resource name of the customer associated with this
       * account budget. This contains the customer ID, which appears on the
       * invoice PDF as "Account ID". Customer resource names have the form:
       *
       * `customers/{customer_id}`
       * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customer. */ public java.lang.String getCustomer() { java.lang.Object ref = customer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customer_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The resource name of the customer associated with this
       * account budget. This contains the customer ID, which appears on the
       * invoice PDF as "Account ID". Customer resource names have the form:
       *
       * `customers/{customer_id}`
       * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customer. */ public com.google.protobuf.ByteString getCustomerBytes() { java.lang.Object ref = customer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The resource name of the customer associated with this
       * account budget. This contains the customer ID, which appears on the
       * invoice PDF as "Account ID". Customer resource names have the form:
       *
       * `customers/{customer_id}`
       * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The customer to set. * @return This builder for chaining. */ public Builder setCustomer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The resource name of the customer associated with this
       * account budget. This contains the customer ID, which appears on the
       * invoice PDF as "Account ID". Customer resource names have the form:
       *
       * `customers/{customer_id}`
       * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCustomer() { customer_ = getDefaultInstance().getCustomer(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. The resource name of the customer associated with this
       * account budget. This contains the customer ID, which appears on the
       * invoice PDF as "Account ID". Customer resource names have the form:
       *
       * `customers/{customer_id}`
       * 
* * optional string customer = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for customer to set. * @return This builder for chaining. */ public Builder setCustomerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object customerDescriptiveName_ = ""; /** *
       * Output only. The descriptive name of the account budget's customer. It
       * appears on the invoice PDF as "Account".
       * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerDescriptiveName field is set. */ public boolean hasCustomerDescriptiveName() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The descriptive name of the account budget's customer. It
       * appears on the invoice PDF as "Account".
       * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerDescriptiveName. */ public java.lang.String getCustomerDescriptiveName() { java.lang.Object ref = customerDescriptiveName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerDescriptiveName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The descriptive name of the account budget's customer. It
       * appears on the invoice PDF as "Account".
       * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for customerDescriptiveName. */ public com.google.protobuf.ByteString getCustomerDescriptiveNameBytes() { java.lang.Object ref = customerDescriptiveName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerDescriptiveName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The descriptive name of the account budget's customer. It
       * appears on the invoice PDF as "Account".
       * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The customerDescriptiveName to set. * @return This builder for chaining. */ public Builder setCustomerDescriptiveName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customerDescriptiveName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The descriptive name of the account budget's customer. It
       * appears on the invoice PDF as "Account".
       * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCustomerDescriptiveName() { customerDescriptiveName_ = getDefaultInstance().getCustomerDescriptiveName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The descriptive name of the account budget's customer. It
       * appears on the invoice PDF as "Account".
       * 
* * optional string customer_descriptive_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for customerDescriptiveName to set. * @return This builder for chaining. */ public Builder setCustomerDescriptiveNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customerDescriptiveName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object accountBudget_ = ""; /** *
       * Output only. The resource name of the account budget associated with this
       * summarized billable cost. AccountBudget resource names have the form:
       *
       * `customers/{customer_id}/accountBudgets/{account_budget_id}`
       * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountBudget field is set. */ public boolean hasAccountBudget() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Output only. The resource name of the account budget associated with this
       * summarized billable cost. AccountBudget resource names have the form:
       *
       * `customers/{customer_id}/accountBudgets/{account_budget_id}`
       * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountBudget. */ public java.lang.String getAccountBudget() { java.lang.Object ref = accountBudget_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountBudget_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The resource name of the account budget associated with this
       * summarized billable cost. AccountBudget resource names have the form:
       *
       * `customers/{customer_id}/accountBudgets/{account_budget_id}`
       * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for accountBudget. */ public com.google.protobuf.ByteString getAccountBudgetBytes() { java.lang.Object ref = accountBudget_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountBudget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The resource name of the account budget associated with this
       * summarized billable cost. AccountBudget resource names have the form:
       *
       * `customers/{customer_id}/accountBudgets/{account_budget_id}`
       * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The accountBudget to set. * @return This builder for chaining. */ public Builder setAccountBudget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accountBudget_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The resource name of the account budget associated with this
       * summarized billable cost. AccountBudget resource names have the form:
       *
       * `customers/{customer_id}/accountBudgets/{account_budget_id}`
       * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAccountBudget() { accountBudget_ = getDefaultInstance().getAccountBudget(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Output only. The resource name of the account budget associated with this
       * summarized billable cost. AccountBudget resource names have the form:
       *
       * `customers/{customer_id}/accountBudgets/{account_budget_id}`
       * 
* * optional string account_budget = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for accountBudget to set. * @return This builder for chaining. */ public Builder setAccountBudgetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountBudget_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object accountBudgetName_ = ""; /** *
       * Output only. The name of the account budget. It appears on the invoice
       * PDF as "Account budget".
       * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountBudgetName field is set. */ public boolean hasAccountBudgetName() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Output only. The name of the account budget. It appears on the invoice
       * PDF as "Account budget".
       * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountBudgetName. */ public java.lang.String getAccountBudgetName() { java.lang.Object ref = accountBudgetName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountBudgetName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The name of the account budget. It appears on the invoice
       * PDF as "Account budget".
       * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for accountBudgetName. */ public com.google.protobuf.ByteString getAccountBudgetNameBytes() { java.lang.Object ref = accountBudgetName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountBudgetName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The name of the account budget. It appears on the invoice
       * PDF as "Account budget".
       * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The accountBudgetName to set. * @return This builder for chaining. */ public Builder setAccountBudgetName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accountBudgetName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Output only. The name of the account budget. It appears on the invoice
       * PDF as "Account budget".
       * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAccountBudgetName() { accountBudgetName_ = getDefaultInstance().getAccountBudgetName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * Output only. The name of the account budget. It appears on the invoice
       * PDF as "Account budget".
       * 
* * optional string account_budget_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for accountBudgetName to set. * @return This builder for chaining. */ public Builder setAccountBudgetNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountBudgetName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object purchaseOrderNumber_ = ""; /** *
       * Output only. The purchase order number of the account budget. It appears
       * on the invoice PDF as "Purchase order".
       * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the purchaseOrderNumber field is set. */ public boolean hasPurchaseOrderNumber() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Output only. The purchase order number of the account budget. It appears
       * on the invoice PDF as "Purchase order".
       * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The purchaseOrderNumber. */ public java.lang.String getPurchaseOrderNumber() { java.lang.Object ref = purchaseOrderNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); purchaseOrderNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The purchase order number of the account budget. It appears
       * on the invoice PDF as "Purchase order".
       * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for purchaseOrderNumber. */ public com.google.protobuf.ByteString getPurchaseOrderNumberBytes() { java.lang.Object ref = purchaseOrderNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); purchaseOrderNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The purchase order number of the account budget. It appears
       * on the invoice PDF as "Purchase order".
       * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The purchaseOrderNumber to set. * @return This builder for chaining. */ public Builder setPurchaseOrderNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } purchaseOrderNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Output only. The purchase order number of the account budget. It appears
       * on the invoice PDF as "Purchase order".
       * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPurchaseOrderNumber() { purchaseOrderNumber_ = getDefaultInstance().getPurchaseOrderNumber(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * Output only. The purchase order number of the account budget. It appears
       * on the invoice PDF as "Purchase order".
       * 
* * optional string purchase_order_number = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for purchaseOrderNumber to set. * @return This builder for chaining. */ public Builder setPurchaseOrderNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); purchaseOrderNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private long subtotalAmountMicros_ ; /** *
       * Output only. The pretax subtotal amount attributable to this budget
       * during the service period, in micros.
       * 
* * optional int64 subtotal_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the subtotalAmountMicros field is set. */ @java.lang.Override public boolean hasSubtotalAmountMicros() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Output only. The pretax subtotal amount attributable to this budget
       * during the service period, in micros.
       * 
* * optional int64 subtotal_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The subtotalAmountMicros. */ @java.lang.Override public long getSubtotalAmountMicros() { return subtotalAmountMicros_; } /** *
       * Output only. The pretax subtotal amount attributable to this budget
       * during the service period, in micros.
       * 
* * optional int64 subtotal_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The subtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setSubtotalAmountMicros(long value) { subtotalAmountMicros_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Output only. The pretax subtotal amount attributable to this budget
       * during the service period, in micros.
       * 
* * optional int64 subtotal_amount_micros = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000020); subtotalAmountMicros_ = 0L; onChanged(); return this; } private long taxAmountMicros_ ; /** *
       * Output only. The tax amount attributable to this budget during the
       * service period, in micros.
       * 
* * optional int64 tax_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the taxAmountMicros field is set. */ @java.lang.Override public boolean hasTaxAmountMicros() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Output only. The tax amount attributable to this budget during the
       * service period, in micros.
       * 
* * optional int64 tax_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The taxAmountMicros. */ @java.lang.Override public long getTaxAmountMicros() { return taxAmountMicros_; } /** *
       * Output only. The tax amount attributable to this budget during the
       * service period, in micros.
       * 
* * optional int64 tax_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The taxAmountMicros to set. * @return This builder for chaining. */ public Builder setTaxAmountMicros(long value) { taxAmountMicros_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Output only. The tax amount attributable to this budget during the
       * service period, in micros.
       * 
* * optional int64 tax_amount_micros = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00000040); taxAmountMicros_ = 0L; onChanged(); return this; } private long totalAmountMicros_ ; /** *
       * Output only. The total amount attributable to this budget during the
       * service period, in micros. This equals the sum of the account budget
       * subtotal amount and the account budget tax amount.
       * 
* * optional int64 total_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the totalAmountMicros field is set. */ @java.lang.Override public boolean hasTotalAmountMicros() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * Output only. The total amount attributable to this budget during the
       * service period, in micros. This equals the sum of the account budget
       * subtotal amount and the account budget tax amount.
       * 
* * optional int64 total_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The totalAmountMicros. */ @java.lang.Override public long getTotalAmountMicros() { return totalAmountMicros_; } /** *
       * Output only. The total amount attributable to this budget during the
       * service period, in micros. This equals the sum of the account budget
       * subtotal amount and the account budget tax amount.
       * 
* * optional int64 total_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The totalAmountMicros to set. * @return This builder for chaining. */ public Builder setTotalAmountMicros(long value) { totalAmountMicros_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * Output only. The total amount attributable to this budget during the
       * service period, in micros. This equals the sum of the account budget
       * subtotal amount and the account budget tax amount.
       * 
* * optional int64 total_amount_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000080); totalAmountMicros_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v18.common.DateRange billableActivityDateRange_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.DateRange, com.google.ads.googleads.v18.common.DateRange.Builder, com.google.ads.googleads.v18.common.DateRangeOrBuilder> billableActivityDateRangeBuilder_; /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billableActivityDateRange field is set. */ public boolean hasBillableActivityDateRange() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billableActivityDateRange. */ public com.google.ads.googleads.v18.common.DateRange getBillableActivityDateRange() { if (billableActivityDateRangeBuilder_ == null) { return billableActivityDateRange_ == null ? com.google.ads.googleads.v18.common.DateRange.getDefaultInstance() : billableActivityDateRange_; } else { return billableActivityDateRangeBuilder_.getMessage(); } } /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBillableActivityDateRange(com.google.ads.googleads.v18.common.DateRange value) { if (billableActivityDateRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } billableActivityDateRange_ = value; } else { billableActivityDateRangeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBillableActivityDateRange( com.google.ads.googleads.v18.common.DateRange.Builder builderForValue) { if (billableActivityDateRangeBuilder_ == null) { billableActivityDateRange_ = builderForValue.build(); } else { billableActivityDateRangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeBillableActivityDateRange(com.google.ads.googleads.v18.common.DateRange value) { if (billableActivityDateRangeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && billableActivityDateRange_ != null && billableActivityDateRange_ != com.google.ads.googleads.v18.common.DateRange.getDefaultInstance()) { getBillableActivityDateRangeBuilder().mergeFrom(value); } else { billableActivityDateRange_ = value; } } else { billableActivityDateRangeBuilder_.mergeFrom(value); } if (billableActivityDateRange_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearBillableActivityDateRange() { bitField0_ = (bitField0_ & ~0x00000100); billableActivityDateRange_ = null; if (billableActivityDateRangeBuilder_ != null) { billableActivityDateRangeBuilder_.dispose(); billableActivityDateRangeBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.common.DateRange.Builder getBillableActivityDateRangeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getBillableActivityDateRangeFieldBuilder().getBuilder(); } /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.common.DateRangeOrBuilder getBillableActivityDateRangeOrBuilder() { if (billableActivityDateRangeBuilder_ != null) { return billableActivityDateRangeBuilder_.getMessageOrBuilder(); } else { return billableActivityDateRange_ == null ? com.google.ads.googleads.v18.common.DateRange.getDefaultInstance() : billableActivityDateRange_; } } /** *
       * Output only. The billable activity date range of the account budget,
       * within the service date range of this invoice. The end date is inclusive.
       * This can be different from the account budget's start and end time.
       * 
* * .google.ads.googleads.v18.common.DateRange billable_activity_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.DateRange, com.google.ads.googleads.v18.common.DateRange.Builder, com.google.ads.googleads.v18.common.DateRangeOrBuilder> getBillableActivityDateRangeFieldBuilder() { if (billableActivityDateRangeBuilder_ == null) { billableActivityDateRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.DateRange, com.google.ads.googleads.v18.common.DateRange.Builder, com.google.ads.googleads.v18.common.DateRangeOrBuilder>( getBillableActivityDateRange(), getParentForChildren(), isClean()); billableActivityDateRange_ = null; } return billableActivityDateRangeBuilder_; } private long servedAmountMicros_ ; /** *
       * Output only. The pretax served amount attributable to this budget during
       * the service period, in micros. This is only useful to reconcile invoice
       * and delivery data.
       * 
* * optional int64 served_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the servedAmountMicros field is set. */ @java.lang.Override public boolean hasServedAmountMicros() { return ((bitField0_ & 0x00000200) != 0); } /** *
       * Output only. The pretax served amount attributable to this budget during
       * the service period, in micros. This is only useful to reconcile invoice
       * and delivery data.
       * 
* * optional int64 served_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The servedAmountMicros. */ @java.lang.Override public long getServedAmountMicros() { return servedAmountMicros_; } /** *
       * Output only. The pretax served amount attributable to this budget during
       * the service period, in micros. This is only useful to reconcile invoice
       * and delivery data.
       * 
* * optional int64 served_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The servedAmountMicros to set. * @return This builder for chaining. */ public Builder setServedAmountMicros(long value) { servedAmountMicros_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * Output only. The pretax served amount attributable to this budget during
       * the service period, in micros. This is only useful to reconcile invoice
       * and delivery data.
       * 
* * optional int64 served_amount_micros = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearServedAmountMicros() { bitField0_ = (bitField0_ & ~0x00000200); servedAmountMicros_ = 0L; onChanged(); return this; } private long billedAmountMicros_ ; /** *
       * Output only. The pretax billed amount attributable to this budget during
       * the service period, in micros. This does not account for any adjustments.
       * 
* * optional int64 billed_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the billedAmountMicros field is set. */ @java.lang.Override public boolean hasBilledAmountMicros() { return ((bitField0_ & 0x00000400) != 0); } /** *
       * Output only. The pretax billed amount attributable to this budget during
       * the service period, in micros. This does not account for any adjustments.
       * 
* * optional int64 billed_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The billedAmountMicros. */ @java.lang.Override public long getBilledAmountMicros() { return billedAmountMicros_; } /** *
       * Output only. The pretax billed amount attributable to this budget during
       * the service period, in micros. This does not account for any adjustments.
       * 
* * optional int64 billed_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The billedAmountMicros to set. * @return This builder for chaining. */ public Builder setBilledAmountMicros(long value) { billedAmountMicros_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * Output only. The pretax billed amount attributable to this budget during
       * the service period, in micros. This does not account for any adjustments.
       * 
* * optional int64 billed_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBilledAmountMicros() { bitField0_ = (bitField0_ & ~0x00000400); billedAmountMicros_ = 0L; onChanged(); return this; } private long overdeliveryAmountMicros_ ; /** *
       * Output only. The pretax overdelivery amount attributable to this budget
       * during the service period, in micros (negative value).
       * 
* * optional int64 overdelivery_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the overdeliveryAmountMicros field is set. */ @java.lang.Override public boolean hasOverdeliveryAmountMicros() { return ((bitField0_ & 0x00000800) != 0); } /** *
       * Output only. The pretax overdelivery amount attributable to this budget
       * during the service period, in micros (negative value).
       * 
* * optional int64 overdelivery_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The overdeliveryAmountMicros. */ @java.lang.Override public long getOverdeliveryAmountMicros() { return overdeliveryAmountMicros_; } /** *
       * Output only. The pretax overdelivery amount attributable to this budget
       * during the service period, in micros (negative value).
       * 
* * optional int64 overdelivery_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The overdeliveryAmountMicros to set. * @return This builder for chaining. */ public Builder setOverdeliveryAmountMicros(long value) { overdeliveryAmountMicros_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * Output only. The pretax overdelivery amount attributable to this budget
       * during the service period, in micros (negative value).
       * 
* * optional int64 overdelivery_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearOverdeliveryAmountMicros() { bitField0_ = (bitField0_ & ~0x00000800); overdeliveryAmountMicros_ = 0L; onChanged(); return this; } private long invalidActivityAmountMicros_ ; /** *
       * Output only. The pretax invalid activity amount attributable to this
       * budget in previous months, in micros (negative value).
       * 
* * optional int64 invalid_activity_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the invalidActivityAmountMicros field is set. */ @java.lang.Override public boolean hasInvalidActivityAmountMicros() { return ((bitField0_ & 0x00001000) != 0); } /** *
       * Output only. The pretax invalid activity amount attributable to this
       * budget in previous months, in micros (negative value).
       * 
* * optional int64 invalid_activity_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The invalidActivityAmountMicros. */ @java.lang.Override public long getInvalidActivityAmountMicros() { return invalidActivityAmountMicros_; } /** *
       * Output only. The pretax invalid activity amount attributable to this
       * budget in previous months, in micros (negative value).
       * 
* * optional int64 invalid_activity_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The invalidActivityAmountMicros to set. * @return This builder for chaining. */ public Builder setInvalidActivityAmountMicros(long value) { invalidActivityAmountMicros_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Output only. The pretax invalid activity amount attributable to this
       * budget in previous months, in micros (negative value).
       * 
* * optional int64 invalid_activity_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearInvalidActivityAmountMicros() { bitField0_ = (bitField0_ & ~0x00001000); invalidActivityAmountMicros_ = 0L; onChanged(); return this; } private java.util.List invalidActivitySummaries_ = java.util.Collections.emptyList(); private void ensureInvalidActivitySummariesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { invalidActivitySummaries_ = new java.util.ArrayList(invalidActivitySummaries_); bitField0_ |= 0x00002000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummaryOrBuilder> invalidActivitySummariesBuilder_; /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getInvalidActivitySummariesList() { if (invalidActivitySummariesBuilder_ == null) { return java.util.Collections.unmodifiableList(invalidActivitySummaries_); } else { return invalidActivitySummariesBuilder_.getMessageList(); } } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getInvalidActivitySummariesCount() { if (invalidActivitySummariesBuilder_ == null) { return invalidActivitySummaries_.size(); } else { return invalidActivitySummariesBuilder_.getCount(); } } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary getInvalidActivitySummaries(int index) { if (invalidActivitySummariesBuilder_ == null) { return invalidActivitySummaries_.get(index); } else { return invalidActivitySummariesBuilder_.getMessage(index); } } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setInvalidActivitySummaries( int index, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary value) { if (invalidActivitySummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.set(index, value); onChanged(); } else { invalidActivitySummariesBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setInvalidActivitySummaries( int index, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder builderForValue) { if (invalidActivitySummariesBuilder_ == null) { ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.set(index, builderForValue.build()); onChanged(); } else { invalidActivitySummariesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addInvalidActivitySummaries(com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary value) { if (invalidActivitySummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.add(value); onChanged(); } else { invalidActivitySummariesBuilder_.addMessage(value); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addInvalidActivitySummaries( int index, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary value) { if (invalidActivitySummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.add(index, value); onChanged(); } else { invalidActivitySummariesBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addInvalidActivitySummaries( com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder builderForValue) { if (invalidActivitySummariesBuilder_ == null) { ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.add(builderForValue.build()); onChanged(); } else { invalidActivitySummariesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addInvalidActivitySummaries( int index, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder builderForValue) { if (invalidActivitySummariesBuilder_ == null) { ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.add(index, builderForValue.build()); onChanged(); } else { invalidActivitySummariesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllInvalidActivitySummaries( java.lang.Iterable values) { if (invalidActivitySummariesBuilder_ == null) { ensureInvalidActivitySummariesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, invalidActivitySummaries_); onChanged(); } else { invalidActivitySummariesBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearInvalidActivitySummaries() { if (invalidActivitySummariesBuilder_ == null) { invalidActivitySummaries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { invalidActivitySummariesBuilder_.clear(); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeInvalidActivitySummaries(int index) { if (invalidActivitySummariesBuilder_ == null) { ensureInvalidActivitySummariesIsMutable(); invalidActivitySummaries_.remove(index); onChanged(); } else { invalidActivitySummariesBuilder_.remove(index); } return this; } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder getInvalidActivitySummariesBuilder( int index) { return getInvalidActivitySummariesFieldBuilder().getBuilder(index); } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummaryOrBuilder getInvalidActivitySummariesOrBuilder( int index) { if (invalidActivitySummariesBuilder_ == null) { return invalidActivitySummaries_.get(index); } else { return invalidActivitySummariesBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getInvalidActivitySummariesOrBuilderList() { if (invalidActivitySummariesBuilder_ != null) { return invalidActivitySummariesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(invalidActivitySummaries_); } } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder addInvalidActivitySummariesBuilder() { return getInvalidActivitySummariesFieldBuilder().addBuilder( com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.getDefaultInstance()); } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder addInvalidActivitySummariesBuilder( int index) { return getInvalidActivitySummariesFieldBuilder().addBuilder( index, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.getDefaultInstance()); } /** *
       * Output only. The list of summarized invalid activity credits with
       * original linkages.
       * 
* * repeated .google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary invalid_activity_summaries = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getInvalidActivitySummariesBuilderList() { return getInvalidActivitySummariesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummaryOrBuilder> getInvalidActivitySummariesFieldBuilder() { if (invalidActivitySummariesBuilder_ == null) { invalidActivitySummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummaryOrBuilder>( invalidActivitySummaries_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); invalidActivitySummaries_ = null; } return invalidActivitySummariesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary) private static final com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary(); } public static com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountBudgetSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InvalidActivitySummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Original month of service related to this invalid activity
     * credit.
     * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalMonthOfService field is set. */ boolean hasOriginalMonthOfService(); /** *
     * Output only. Original month of service related to this invalid activity
     * credit.
     * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for originalMonthOfService. */ int getOriginalMonthOfServiceValue(); /** *
     * Output only. Original month of service related to this invalid activity
     * credit.
     * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalMonthOfService. */ com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear getOriginalMonthOfService(); /** *
     * Output only. Original year of service related to this invalid activity
     * credit.
     * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalYearOfService field is set. */ boolean hasOriginalYearOfService(); /** *
     * Output only. Original year of service related to this invalid activity
     * credit.
     * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalYearOfService. */ java.lang.String getOriginalYearOfService(); /** *
     * Output only. Original year of service related to this invalid activity
     * credit.
     * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalYearOfService. */ com.google.protobuf.ByteString getOriginalYearOfServiceBytes(); /** *
     * Output only. Original invoice number related to this invalid activity
     * credit.
     * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalInvoiceId field is set. */ boolean hasOriginalInvoiceId(); /** *
     * Output only. Original invoice number related to this invalid activity
     * credit.
     * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalInvoiceId. */ java.lang.String getOriginalInvoiceId(); /** *
     * Output only. Original invoice number related to this invalid activity
     * credit.
     * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalInvoiceId. */ com.google.protobuf.ByteString getOriginalInvoiceIdBytes(); /** *
     * Output only. Original account budget name related to this invalid
     * activity credit.
     * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalAccountBudgetName field is set. */ boolean hasOriginalAccountBudgetName(); /** *
     * Output only. Original account budget name related to this invalid
     * activity credit.
     * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalAccountBudgetName. */ java.lang.String getOriginalAccountBudgetName(); /** *
     * Output only. Original account budget name related to this invalid
     * activity credit.
     * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalAccountBudgetName. */ com.google.protobuf.ByteString getOriginalAccountBudgetNameBytes(); /** *
     * Output only. Original purchase order number related to this invalid
     * activity credit.
     * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalPurchaseOrderNumber field is set. */ boolean hasOriginalPurchaseOrderNumber(); /** *
     * Output only. Original purchase order number related to this invalid
     * activity credit.
     * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalPurchaseOrderNumber. */ java.lang.String getOriginalPurchaseOrderNumber(); /** *
     * Output only. Original purchase order number related to this invalid
     * activity credit.
     * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalPurchaseOrderNumber. */ com.google.protobuf.ByteString getOriginalPurchaseOrderNumberBytes(); /** *
     * Output only. Invalid activity amount in micros.
     * 
* * optional int64 amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the amountMicros field is set. */ boolean hasAmountMicros(); /** *
     * Output only. Invalid activity amount in micros.
     * 
* * optional int64 amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The amountMicros. */ long getAmountMicros(); } /** *
   * Details about the invalid activity for the invoice that contain
   * additional details about invoice against which corrections are made.
   * 
* * Protobuf type {@code google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary} */ public static final class InvalidActivitySummary extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary) InvalidActivitySummaryOrBuilder { private static final long serialVersionUID = 0L; // Use InvalidActivitySummary.newBuilder() to construct. private InvalidActivitySummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InvalidActivitySummary() { originalMonthOfService_ = 0; originalYearOfService_ = ""; originalInvoiceId_ = ""; originalAccountBudgetName_ = ""; originalPurchaseOrderNumber_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InvalidActivitySummary(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_InvalidActivitySummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_InvalidActivitySummary_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.class, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder.class); } private int bitField0_; public static final int ORIGINAL_MONTH_OF_SERVICE_FIELD_NUMBER = 1; private int originalMonthOfService_ = 0; /** *
     * Output only. Original month of service related to this invalid activity
     * credit.
     * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalMonthOfService field is set. */ @java.lang.Override public boolean hasOriginalMonthOfService() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. Original month of service related to this invalid activity
     * credit.
     * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for originalMonthOfService. */ @java.lang.Override public int getOriginalMonthOfServiceValue() { return originalMonthOfService_; } /** *
     * Output only. Original month of service related to this invalid activity
     * credit.
     * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalMonthOfService. */ @java.lang.Override public com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear getOriginalMonthOfService() { com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear result = com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear.forNumber(originalMonthOfService_); return result == null ? com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear.UNRECOGNIZED : result; } public static final int ORIGINAL_YEAR_OF_SERVICE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object originalYearOfService_ = ""; /** *
     * Output only. Original year of service related to this invalid activity
     * credit.
     * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalYearOfService field is set. */ @java.lang.Override public boolean hasOriginalYearOfService() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Original year of service related to this invalid activity
     * credit.
     * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalYearOfService. */ @java.lang.Override public java.lang.String getOriginalYearOfService() { java.lang.Object ref = originalYearOfService_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalYearOfService_ = s; return s; } } /** *
     * Output only. Original year of service related to this invalid activity
     * credit.
     * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalYearOfService. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalYearOfServiceBytes() { java.lang.Object ref = originalYearOfService_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalYearOfService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGINAL_INVOICE_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object originalInvoiceId_ = ""; /** *
     * Output only. Original invoice number related to this invalid activity
     * credit.
     * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalInvoiceId field is set. */ @java.lang.Override public boolean hasOriginalInvoiceId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. Original invoice number related to this invalid activity
     * credit.
     * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalInvoiceId. */ @java.lang.Override public java.lang.String getOriginalInvoiceId() { java.lang.Object ref = originalInvoiceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalInvoiceId_ = s; return s; } } /** *
     * Output only. Original invoice number related to this invalid activity
     * credit.
     * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalInvoiceId. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceIdBytes() { java.lang.Object ref = originalInvoiceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalInvoiceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGINAL_ACCOUNT_BUDGET_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object originalAccountBudgetName_ = ""; /** *
     * Output only. Original account budget name related to this invalid
     * activity credit.
     * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalAccountBudgetName field is set. */ @java.lang.Override public boolean hasOriginalAccountBudgetName() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Output only. Original account budget name related to this invalid
     * activity credit.
     * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalAccountBudgetName. */ @java.lang.Override public java.lang.String getOriginalAccountBudgetName() { java.lang.Object ref = originalAccountBudgetName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalAccountBudgetName_ = s; return s; } } /** *
     * Output only. Original account budget name related to this invalid
     * activity credit.
     * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalAccountBudgetName. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalAccountBudgetNameBytes() { java.lang.Object ref = originalAccountBudgetName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalAccountBudgetName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGINAL_PURCHASE_ORDER_NUMBER_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object originalPurchaseOrderNumber_ = ""; /** *
     * Output only. Original purchase order number related to this invalid
     * activity credit.
     * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalPurchaseOrderNumber field is set. */ @java.lang.Override public boolean hasOriginalPurchaseOrderNumber() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Output only. Original purchase order number related to this invalid
     * activity credit.
     * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalPurchaseOrderNumber. */ @java.lang.Override public java.lang.String getOriginalPurchaseOrderNumber() { java.lang.Object ref = originalPurchaseOrderNumber_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalPurchaseOrderNumber_ = s; return s; } } /** *
     * Output only. Original purchase order number related to this invalid
     * activity credit.
     * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalPurchaseOrderNumber. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalPurchaseOrderNumberBytes() { java.lang.Object ref = originalPurchaseOrderNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalPurchaseOrderNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AMOUNT_MICROS_FIELD_NUMBER = 6; private long amountMicros_ = 0L; /** *
     * Output only. Invalid activity amount in micros.
     * 
* * optional int64 amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the amountMicros field is set. */ @java.lang.Override public boolean hasAmountMicros() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Output only. Invalid activity amount in micros.
     * 
* * optional int64 amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The amountMicros. */ @java.lang.Override public long getAmountMicros() { return amountMicros_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, originalMonthOfService_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, originalYearOfService_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, originalInvoiceId_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, originalAccountBudgetName_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, originalPurchaseOrderNumber_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(6, amountMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, originalMonthOfService_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, originalYearOfService_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, originalInvoiceId_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, originalAccountBudgetName_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, originalPurchaseOrderNumber_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, amountMicros_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary)) { return super.equals(obj); } com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary other = (com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary) obj; if (hasOriginalMonthOfService() != other.hasOriginalMonthOfService()) return false; if (hasOriginalMonthOfService()) { if (originalMonthOfService_ != other.originalMonthOfService_) return false; } if (hasOriginalYearOfService() != other.hasOriginalYearOfService()) return false; if (hasOriginalYearOfService()) { if (!getOriginalYearOfService() .equals(other.getOriginalYearOfService())) return false; } if (hasOriginalInvoiceId() != other.hasOriginalInvoiceId()) return false; if (hasOriginalInvoiceId()) { if (!getOriginalInvoiceId() .equals(other.getOriginalInvoiceId())) return false; } if (hasOriginalAccountBudgetName() != other.hasOriginalAccountBudgetName()) return false; if (hasOriginalAccountBudgetName()) { if (!getOriginalAccountBudgetName() .equals(other.getOriginalAccountBudgetName())) return false; } if (hasOriginalPurchaseOrderNumber() != other.hasOriginalPurchaseOrderNumber()) return false; if (hasOriginalPurchaseOrderNumber()) { if (!getOriginalPurchaseOrderNumber() .equals(other.getOriginalPurchaseOrderNumber())) return false; } if (hasAmountMicros() != other.hasAmountMicros()) return false; if (hasAmountMicros()) { if (getAmountMicros() != other.getAmountMicros()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOriginalMonthOfService()) { hash = (37 * hash) + ORIGINAL_MONTH_OF_SERVICE_FIELD_NUMBER; hash = (53 * hash) + originalMonthOfService_; } if (hasOriginalYearOfService()) { hash = (37 * hash) + ORIGINAL_YEAR_OF_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getOriginalYearOfService().hashCode(); } if (hasOriginalInvoiceId()) { hash = (37 * hash) + ORIGINAL_INVOICE_ID_FIELD_NUMBER; hash = (53 * hash) + getOriginalInvoiceId().hashCode(); } if (hasOriginalAccountBudgetName()) { hash = (37 * hash) + ORIGINAL_ACCOUNT_BUDGET_NAME_FIELD_NUMBER; hash = (53 * hash) + getOriginalAccountBudgetName().hashCode(); } if (hasOriginalPurchaseOrderNumber()) { hash = (37 * hash) + ORIGINAL_PURCHASE_ORDER_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getOriginalPurchaseOrderNumber().hashCode(); } if (hasAmountMicros()) { hash = (37 * hash) + AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmountMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Details about the invalid activity for the invoice that contain
     * additional details about invoice against which corrections are made.
     * 
* * Protobuf type {@code google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary) com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_InvalidActivitySummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_InvalidActivitySummary_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.class, com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.Builder.class); } // Construct using com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; originalMonthOfService_ = 0; originalYearOfService_ = ""; originalInvoiceId_ = ""; originalAccountBudgetName_ = ""; originalPurchaseOrderNumber_ = ""; amountMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_InvalidActivitySummary_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary getDefaultInstanceForType() { return com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary build() { com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary buildPartial() { com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary result = new com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.originalMonthOfService_ = originalMonthOfService_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.originalYearOfService_ = originalYearOfService_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.originalInvoiceId_ = originalInvoiceId_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.originalAccountBudgetName_ = originalAccountBudgetName_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.originalPurchaseOrderNumber_ = originalPurchaseOrderNumber_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.amountMicros_ = amountMicros_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary) { return mergeFrom((com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary other) { if (other == com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary.getDefaultInstance()) return this; if (other.hasOriginalMonthOfService()) { setOriginalMonthOfService(other.getOriginalMonthOfService()); } if (other.hasOriginalYearOfService()) { originalYearOfService_ = other.originalYearOfService_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasOriginalInvoiceId()) { originalInvoiceId_ = other.originalInvoiceId_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasOriginalAccountBudgetName()) { originalAccountBudgetName_ = other.originalAccountBudgetName_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasOriginalPurchaseOrderNumber()) { originalPurchaseOrderNumber_ = other.originalPurchaseOrderNumber_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasAmountMicros()) { setAmountMicros(other.getAmountMicros()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { originalMonthOfService_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { originalYearOfService_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { originalInvoiceId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { originalAccountBudgetName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { originalPurchaseOrderNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { amountMicros_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int originalMonthOfService_ = 0; /** *
       * Output only. Original month of service related to this invalid activity
       * credit.
       * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalMonthOfService field is set. */ @java.lang.Override public boolean hasOriginalMonthOfService() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. Original month of service related to this invalid activity
       * credit.
       * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for originalMonthOfService. */ @java.lang.Override public int getOriginalMonthOfServiceValue() { return originalMonthOfService_; } /** *
       * Output only. Original month of service related to this invalid activity
       * credit.
       * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for originalMonthOfService to set. * @return This builder for chaining. */ public Builder setOriginalMonthOfServiceValue(int value) { originalMonthOfService_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Original month of service related to this invalid activity
       * credit.
       * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalMonthOfService. */ @java.lang.Override public com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear getOriginalMonthOfService() { com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear result = com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear.forNumber(originalMonthOfService_); return result == null ? com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear.UNRECOGNIZED : result; } /** *
       * Output only. Original month of service related to this invalid activity
       * credit.
       * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The originalMonthOfService to set. * @return This builder for chaining. */ public Builder setOriginalMonthOfService(com.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; originalMonthOfService_ = value.getNumber(); onChanged(); return this; } /** *
       * Output only. Original month of service related to this invalid activity
       * credit.
       * 
* * optional .google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear original_month_of_service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearOriginalMonthOfService() { bitField0_ = (bitField0_ & ~0x00000001); originalMonthOfService_ = 0; onChanged(); return this; } private java.lang.Object originalYearOfService_ = ""; /** *
       * Output only. Original year of service related to this invalid activity
       * credit.
       * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalYearOfService field is set. */ public boolean hasOriginalYearOfService() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. Original year of service related to this invalid activity
       * credit.
       * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalYearOfService. */ public java.lang.String getOriginalYearOfService() { java.lang.Object ref = originalYearOfService_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalYearOfService_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Original year of service related to this invalid activity
       * credit.
       * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalYearOfService. */ public com.google.protobuf.ByteString getOriginalYearOfServiceBytes() { java.lang.Object ref = originalYearOfService_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalYearOfService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Original year of service related to this invalid activity
       * credit.
       * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The originalYearOfService to set. * @return This builder for chaining. */ public Builder setOriginalYearOfService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originalYearOfService_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Original year of service related to this invalid activity
       * credit.
       * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearOriginalYearOfService() { originalYearOfService_ = getDefaultInstance().getOriginalYearOfService(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. Original year of service related to this invalid activity
       * credit.
       * 
* * optional string original_year_of_service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for originalYearOfService to set. * @return This builder for chaining. */ public Builder setOriginalYearOfServiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalYearOfService_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object originalInvoiceId_ = ""; /** *
       * Output only. Original invoice number related to this invalid activity
       * credit.
       * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalInvoiceId field is set. */ public boolean hasOriginalInvoiceId() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Output only. Original invoice number related to this invalid activity
       * credit.
       * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalInvoiceId. */ public java.lang.String getOriginalInvoiceId() { java.lang.Object ref = originalInvoiceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalInvoiceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Original invoice number related to this invalid activity
       * credit.
       * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalInvoiceId. */ public com.google.protobuf.ByteString getOriginalInvoiceIdBytes() { java.lang.Object ref = originalInvoiceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalInvoiceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Original invoice number related to this invalid activity
       * credit.
       * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The originalInvoiceId to set. * @return This builder for chaining. */ public Builder setOriginalInvoiceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originalInvoiceId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. Original invoice number related to this invalid activity
       * credit.
       * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearOriginalInvoiceId() { originalInvoiceId_ = getDefaultInstance().getOriginalInvoiceId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Output only. Original invoice number related to this invalid activity
       * credit.
       * 
* * optional string original_invoice_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for originalInvoiceId to set. * @return This builder for chaining. */ public Builder setOriginalInvoiceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalInvoiceId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object originalAccountBudgetName_ = ""; /** *
       * Output only. Original account budget name related to this invalid
       * activity credit.
       * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalAccountBudgetName field is set. */ public boolean hasOriginalAccountBudgetName() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Output only. Original account budget name related to this invalid
       * activity credit.
       * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalAccountBudgetName. */ public java.lang.String getOriginalAccountBudgetName() { java.lang.Object ref = originalAccountBudgetName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalAccountBudgetName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Original account budget name related to this invalid
       * activity credit.
       * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalAccountBudgetName. */ public com.google.protobuf.ByteString getOriginalAccountBudgetNameBytes() { java.lang.Object ref = originalAccountBudgetName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalAccountBudgetName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Original account budget name related to this invalid
       * activity credit.
       * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The originalAccountBudgetName to set. * @return This builder for chaining. */ public Builder setOriginalAccountBudgetName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originalAccountBudgetName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Output only. Original account budget name related to this invalid
       * activity credit.
       * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearOriginalAccountBudgetName() { originalAccountBudgetName_ = getDefaultInstance().getOriginalAccountBudgetName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * Output only. Original account budget name related to this invalid
       * activity credit.
       * 
* * optional string original_account_budget_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for originalAccountBudgetName to set. * @return This builder for chaining. */ public Builder setOriginalAccountBudgetNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalAccountBudgetName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object originalPurchaseOrderNumber_ = ""; /** *
       * Output only. Original purchase order number related to this invalid
       * activity credit.
       * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the originalPurchaseOrderNumber field is set. */ public boolean hasOriginalPurchaseOrderNumber() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Output only. Original purchase order number related to this invalid
       * activity credit.
       * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The originalPurchaseOrderNumber. */ public java.lang.String getOriginalPurchaseOrderNumber() { java.lang.Object ref = originalPurchaseOrderNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalPurchaseOrderNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Original purchase order number related to this invalid
       * activity credit.
       * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for originalPurchaseOrderNumber. */ public com.google.protobuf.ByteString getOriginalPurchaseOrderNumberBytes() { java.lang.Object ref = originalPurchaseOrderNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalPurchaseOrderNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Original purchase order number related to this invalid
       * activity credit.
       * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The originalPurchaseOrderNumber to set. * @return This builder for chaining. */ public Builder setOriginalPurchaseOrderNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originalPurchaseOrderNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Output only. Original purchase order number related to this invalid
       * activity credit.
       * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearOriginalPurchaseOrderNumber() { originalPurchaseOrderNumber_ = getDefaultInstance().getOriginalPurchaseOrderNumber(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * Output only. Original purchase order number related to this invalid
       * activity credit.
       * 
* * optional string original_purchase_order_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for originalPurchaseOrderNumber to set. * @return This builder for chaining. */ public Builder setOriginalPurchaseOrderNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalPurchaseOrderNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private long amountMicros_ ; /** *
       * Output only. Invalid activity amount in micros.
       * 
* * optional int64 amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the amountMicros field is set. */ @java.lang.Override public boolean hasAmountMicros() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Output only. Invalid activity amount in micros.
       * 
* * optional int64 amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The amountMicros. */ @java.lang.Override public long getAmountMicros() { return amountMicros_; } /** *
       * Output only. Invalid activity amount in micros.
       * 
* * optional int64 amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The amountMicros to set. * @return This builder for chaining. */ public Builder setAmountMicros(long value) { amountMicros_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Output only. Invalid activity amount in micros.
       * 
* * optional int64 amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAmountMicros() { bitField0_ = (bitField0_ & ~0x00000020); amountMicros_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary) private static final com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary(); } public static com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InvalidActivitySummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int RESOURCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** *
   * 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) = { ... } * @return The resourceName. */ @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** *
   * 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) = { ... } * @return The bytes for resourceName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 25; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** *
   * 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]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * 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]; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
   * 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]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private int type_ = 0; /** *
   * Output only. The type of invoice.
   * 
* * .google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
   * Output only. The type of invoice.
   * 
* * .google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType getType() { com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType result = com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType.forNumber(type_); return result == null ? com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType.UNRECOGNIZED : result; } public static final int BILLING_SETUP_FIELD_NUMBER = 26; @SuppressWarnings("serial") private volatile java.lang.Object billingSetup_ = ""; /** *
   * 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]; * @return Whether the billingSetup field is set. */ @java.lang.Override public boolean hasBillingSetup() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * 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]; * @return The billingSetup. */ @java.lang.Override public java.lang.String getBillingSetup() { java.lang.Object ref = billingSetup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingSetup_ = s; return s; } } /** *
   * 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]; * @return The bytes for billingSetup. */ @java.lang.Override public com.google.protobuf.ByteString getBillingSetupBytes() { java.lang.Object ref = billingSetup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billingSetup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAYMENTS_ACCOUNT_ID_FIELD_NUMBER = 27; @SuppressWarnings("serial") private volatile java.lang.Object paymentsAccountId_ = ""; /** *
   * Output only. A 16 digit ID used to identify the payments account associated
   * with the billing setup, for example, "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]; * @return Whether the paymentsAccountId field is set. */ @java.lang.Override public boolean hasPaymentsAccountId() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Output only. A 16 digit ID used to identify the payments account associated
   * with the billing setup, for example, "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]; * @return The paymentsAccountId. */ @java.lang.Override public java.lang.String getPaymentsAccountId() { java.lang.Object ref = paymentsAccountId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentsAccountId_ = s; return s; } } /** *
   * Output only. A 16 digit ID used to identify the payments account associated
   * with the billing setup, for example, "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]; * @return The bytes for paymentsAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getPaymentsAccountIdBytes() { java.lang.Object ref = paymentsAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paymentsAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAYMENTS_PROFILE_ID_FIELD_NUMBER = 28; @SuppressWarnings("serial") private volatile java.lang.Object paymentsProfileId_ = ""; /** *
   * Output only. A 12 digit ID used to identify the payments profile associated
   * with the billing setup, for example, "1234-5678-9012". It appears on the
   * invoice PDF as "Billing ID".
   * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the paymentsProfileId field is set. */ @java.lang.Override public boolean hasPaymentsProfileId() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Output only. A 12 digit ID used to identify the payments profile associated
   * with the billing setup, for example, "1234-5678-9012". It appears on the
   * invoice PDF as "Billing ID".
   * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The paymentsProfileId. */ @java.lang.Override public java.lang.String getPaymentsProfileId() { java.lang.Object ref = paymentsProfileId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentsProfileId_ = s; return s; } } /** *
   * Output only. A 12 digit ID used to identify the payments profile associated
   * with the billing setup, for example, "1234-5678-9012". It appears on the
   * invoice PDF as "Billing ID".
   * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for paymentsProfileId. */ @java.lang.Override public com.google.protobuf.ByteString getPaymentsProfileIdBytes() { java.lang.Object ref = paymentsProfileId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paymentsProfileId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISSUE_DATE_FIELD_NUMBER = 29; @SuppressWarnings("serial") private volatile java.lang.Object issueDate_ = ""; /** *
   * 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]; * @return Whether the issueDate field is set. */ @java.lang.Override public boolean hasIssueDate() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * 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]; * @return The issueDate. */ @java.lang.Override public java.lang.String getIssueDate() { java.lang.Object ref = issueDate_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issueDate_ = s; return s; } } /** *
   * 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]; * @return The bytes for issueDate. */ @java.lang.Override public com.google.protobuf.ByteString getIssueDateBytes() { java.lang.Object ref = issueDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); issueDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DUE_DATE_FIELD_NUMBER = 30; @SuppressWarnings("serial") private volatile java.lang.Object dueDate_ = ""; /** *
   * Output only. The due date in yyyy-mm-dd format.
   * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dueDate field is set. */ @java.lang.Override public boolean hasDueDate() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Output only. The due date in yyyy-mm-dd format.
   * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dueDate. */ @java.lang.Override public java.lang.String getDueDate() { java.lang.Object ref = dueDate_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dueDate_ = s; return s; } } /** *
   * Output only. The due date in yyyy-mm-dd format.
   * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for dueDate. */ @java.lang.Override public com.google.protobuf.ByteString getDueDateBytes() { java.lang.Object ref = dueDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dueDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_DATE_RANGE_FIELD_NUMBER = 9; private com.google.ads.googleads.v18.common.DateRange serviceDateRange_; /** *
   * Output only. The service period date range of this invoice. The end date is
   * inclusive.
   * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the serviceDateRange field is set. */ @java.lang.Override public boolean hasServiceDateRange() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Output only. The service period date range of this invoice. The end date is
   * inclusive.
   * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The serviceDateRange. */ @java.lang.Override public com.google.ads.googleads.v18.common.DateRange getServiceDateRange() { return serviceDateRange_ == null ? com.google.ads.googleads.v18.common.DateRange.getDefaultInstance() : serviceDateRange_; } /** *
   * Output only. The service period date range of this invoice. The end date is
   * inclusive.
   * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.common.DateRangeOrBuilder getServiceDateRangeOrBuilder() { return serviceDateRange_ == null ? com.google.ads.googleads.v18.common.DateRange.getDefaultInstance() : serviceDateRange_; } public static final int CURRENCY_CODE_FIELD_NUMBER = 31; @SuppressWarnings("serial") private volatile java.lang.Object currencyCode_ = ""; /** *
   * 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]; * @return Whether the currencyCode field is set. */ @java.lang.Override public boolean hasCurrencyCode() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * 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]; * @return The currencyCode. */ @java.lang.Override public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** *
   * 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]; * @return The bytes for currencyCode. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currencyCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADJUSTMENTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 19; private long adjustmentsSubtotalAmountMicros_ = 0L; /** *
   * Output only. The pretax subtotal amount of invoice level adjustments, in
   * micros.
   * 
* * int64 adjustments_subtotal_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The adjustmentsSubtotalAmountMicros. */ @java.lang.Override public long getAdjustmentsSubtotalAmountMicros() { return adjustmentsSubtotalAmountMicros_; } public static final int ADJUSTMENTS_TAX_AMOUNT_MICROS_FIELD_NUMBER = 20; private long adjustmentsTaxAmountMicros_ = 0L; /** *
   * 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]; * @return The adjustmentsTaxAmountMicros. */ @java.lang.Override public long getAdjustmentsTaxAmountMicros() { return adjustmentsTaxAmountMicros_; } public static final int ADJUSTMENTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 21; private long adjustmentsTotalAmountMicros_ = 0L; /** *
   * Output only. The total amount of invoice level adjustments, in micros.
   * 
* * int64 adjustments_total_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The adjustmentsTotalAmountMicros. */ @java.lang.Override public long getAdjustmentsTotalAmountMicros() { return adjustmentsTotalAmountMicros_; } public static final int REGULATORY_COSTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 22; private long regulatoryCostsSubtotalAmountMicros_ = 0L; /** *
   * 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]; * @return The regulatoryCostsSubtotalAmountMicros. */ @java.lang.Override public long getRegulatoryCostsSubtotalAmountMicros() { return regulatoryCostsSubtotalAmountMicros_; } public static final int REGULATORY_COSTS_TAX_AMOUNT_MICROS_FIELD_NUMBER = 23; private long regulatoryCostsTaxAmountMicros_ = 0L; /** *
   * 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]; * @return The regulatoryCostsTaxAmountMicros. */ @java.lang.Override public long getRegulatoryCostsTaxAmountMicros() { return regulatoryCostsTaxAmountMicros_; } public static final int REGULATORY_COSTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 24; private long regulatoryCostsTotalAmountMicros_ = 0L; /** *
   * 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]; * @return The regulatoryCostsTotalAmountMicros. */ @java.lang.Override public long getRegulatoryCostsTotalAmountMicros() { return regulatoryCostsTotalAmountMicros_; } public static final int EXPORT_CHARGE_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 40; private long exportChargeSubtotalAmountMicros_ = 0L; /** *
   * Output only. The pretax subtotal amount of invoice level export charges, in
   * micros.
   * 
* * optional int64 export_charge_subtotal_amount_micros = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeSubtotalAmountMicros() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * Output only. The pretax subtotal amount of invoice level export charges, in
   * micros.
   * 
* * optional int64 export_charge_subtotal_amount_micros = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeSubtotalAmountMicros. */ @java.lang.Override public long getExportChargeSubtotalAmountMicros() { return exportChargeSubtotalAmountMicros_; } public static final int EXPORT_CHARGE_TAX_AMOUNT_MICROS_FIELD_NUMBER = 41; private long exportChargeTaxAmountMicros_ = 0L; /** *
   * Output only. The sum of taxes on the invoice level export charges, in
   * micros.
   * 
* * optional int64 export_charge_tax_amount_micros = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTaxAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeTaxAmountMicros() { return ((bitField0_ & 0x00000200) != 0); } /** *
   * Output only. The sum of taxes on the invoice level export charges, in
   * micros.
   * 
* * optional int64 export_charge_tax_amount_micros = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTaxAmountMicros. */ @java.lang.Override public long getExportChargeTaxAmountMicros() { return exportChargeTaxAmountMicros_; } public static final int EXPORT_CHARGE_TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 42; private long exportChargeTotalAmountMicros_ = 0L; /** *
   * Output only. The total amount of invoice level export charges, in micros.
   * 
* * optional int64 export_charge_total_amount_micros = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTotalAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeTotalAmountMicros() { return ((bitField0_ & 0x00000400) != 0); } /** *
   * Output only. The total amount of invoice level export charges, in micros.
   * 
* * optional int64 export_charge_total_amount_micros = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTotalAmountMicros. */ @java.lang.Override public long getExportChargeTotalAmountMicros() { return exportChargeTotalAmountMicros_; } public static final int SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER = 33; private long subtotalAmountMicros_ = 0L; /** *
   * Output only. The pretax subtotal amount, in micros. This is equal to the
   * sum of the AccountBudgetSummary subtotal amounts and
   * Invoice.adjustments_subtotal_amount_micros.
   * 
* * optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the subtotalAmountMicros field is set. */ @java.lang.Override public boolean hasSubtotalAmountMicros() { return ((bitField0_ & 0x00000800) != 0); } /** *
   * Output only. The pretax subtotal amount, in micros. This is equal to the
   * sum of the AccountBudgetSummary subtotal amounts and
   * Invoice.adjustments_subtotal_amount_micros.
   * 
* * optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The subtotalAmountMicros. */ @java.lang.Override public long getSubtotalAmountMicros() { return subtotalAmountMicros_; } public static final int TAX_AMOUNT_MICROS_FIELD_NUMBER = 34; private long taxAmountMicros_ = 0L; /** *
   * 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]; * @return Whether the taxAmountMicros field is set. */ @java.lang.Override public boolean hasTaxAmountMicros() { return ((bitField0_ & 0x00001000) != 0); } /** *
   * 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]; * @return The taxAmountMicros. */ @java.lang.Override public long getTaxAmountMicros() { return taxAmountMicros_; } public static final int TOTAL_AMOUNT_MICROS_FIELD_NUMBER = 35; private long totalAmountMicros_ = 0L; /** *
   * Output only. The total amount, in micros. This equals the sum of
   * Invoice.subtotal_amount_micros, Invoice.tax_amount_micros,
   * Invoice.regulatory_costs_subtotal_amount_micros, and
   * Invoice.export_charge_subtotal_amount_micros (which is separated into a
   * separate line item starting with V14.1).
   * 
* * optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the totalAmountMicros field is set. */ @java.lang.Override public boolean hasTotalAmountMicros() { return ((bitField0_ & 0x00002000) != 0); } /** *
   * Output only. The total amount, in micros. This equals the sum of
   * Invoice.subtotal_amount_micros, Invoice.tax_amount_micros,
   * Invoice.regulatory_costs_subtotal_amount_micros, and
   * Invoice.export_charge_subtotal_amount_micros (which is separated into a
   * separate line item starting with V14.1).
   * 
* * optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The totalAmountMicros. */ @java.lang.Override public long getTotalAmountMicros() { return totalAmountMicros_; } public static final int CORRECTED_INVOICE_FIELD_NUMBER = 36; @SuppressWarnings("serial") private volatile java.lang.Object correctedInvoice_ = ""; /** *
   * 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]; * @return Whether the correctedInvoice field is set. */ @java.lang.Override public boolean hasCorrectedInvoice() { return ((bitField0_ & 0x00004000) != 0); } /** *
   * 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]; * @return The correctedInvoice. */ @java.lang.Override public java.lang.String getCorrectedInvoice() { java.lang.Object ref = correctedInvoice_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); correctedInvoice_ = s; return s; } } /** *
   * 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]; * @return The bytes for correctedInvoice. */ @java.lang.Override public com.google.protobuf.ByteString getCorrectedInvoiceBytes() { java.lang.Object ref = correctedInvoice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); correctedInvoice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPLACED_INVOICES_FIELD_NUMBER = 37; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList replacedInvoices_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * 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]; * @return A list containing the replacedInvoices. */ public com.google.protobuf.ProtocolStringList getReplacedInvoicesList() { return replacedInvoices_; } /** *
   * 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]; * @return The count of replacedInvoices. */ public int getReplacedInvoicesCount() { return replacedInvoices_.size(); } /** *
   * 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]; * @param index The index of the element to return. * @return The replacedInvoices at the given index. */ public java.lang.String getReplacedInvoices(int index) { return replacedInvoices_.get(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]; * @param index The index of the value to return. * @return The bytes of the replacedInvoices at the given index. */ public com.google.protobuf.ByteString getReplacedInvoicesBytes(int index) { return replacedInvoices_.getByteString(index); } public static final int PDF_URL_FIELD_NUMBER = 38; @SuppressWarnings("serial") private volatile java.lang.Object pdfUrl_ = ""; /** *
   * 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]; * @return Whether the pdfUrl field is set. */ @java.lang.Override public boolean hasPdfUrl() { return ((bitField0_ & 0x00008000) != 0); } /** *
   * 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]; * @return The pdfUrl. */ @java.lang.Override public java.lang.String getPdfUrl() { java.lang.Object ref = pdfUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pdfUrl_ = s; return s; } } /** *
   * 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]; * @return The bytes for pdfUrl. */ @java.lang.Override public com.google.protobuf.ByteString getPdfUrlBytes() { java.lang.Object ref = pdfUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pdfUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCOUNT_BUDGET_SUMMARIES_FIELD_NUMBER = 18; @SuppressWarnings("serial") private java.util.List accountBudgetSummaries_; /** *
   * Output only. The list of summarized account budget information associated
   * with this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getAccountBudgetSummariesList() { return accountBudgetSummaries_; } /** *
   * Output only. The list of summarized account budget information associated
   * with this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getAccountBudgetSummariesOrBuilderList() { return accountBudgetSummaries_; } /** *
   * Output only. The list of summarized account budget information associated
   * with this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getAccountBudgetSummariesCount() { return accountBudgetSummaries_.size(); } /** *
   * Output only. The list of summarized account budget information associated
   * with this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary getAccountBudgetSummaries(int index) { return accountBudgetSummaries_.get(index); } /** *
   * Output only. The list of summarized account budget information associated
   * with this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummaryOrBuilder getAccountBudgetSummariesOrBuilder( int index) { return accountBudgetSummaries_.get(index); } public static final int ACCOUNT_SUMMARIES_FIELD_NUMBER = 39; @SuppressWarnings("serial") private java.util.List accountSummaries_; /** *
   * Output only. The list of summarized account information associated with
   * this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getAccountSummariesList() { return accountSummaries_; } /** *
   * Output only. The list of summarized account information associated with
   * this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getAccountSummariesOrBuilderList() { return accountSummaries_; } /** *
   * Output only. The list of summarized account information associated with
   * this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getAccountSummariesCount() { return accountSummaries_.size(); } /** *
   * Output only. The list of summarized account information associated with
   * this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountSummary getAccountSummaries(int index) { return accountSummaries_.get(index); } /** *
   * Output only. The list of summarized account information associated with
   * this invoice.
   * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice.AccountSummaryOrBuilder getAccountSummariesOrBuilder( int index) { return accountSummaries_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (type_ != com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType.UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(9, getServiceDateRange()); } for (int i = 0; i < accountBudgetSummaries_.size(); i++) { output.writeMessage(18, accountBudgetSummaries_.get(i)); } if (adjustmentsSubtotalAmountMicros_ != 0L) { output.writeInt64(19, adjustmentsSubtotalAmountMicros_); } if (adjustmentsTaxAmountMicros_ != 0L) { output.writeInt64(20, adjustmentsTaxAmountMicros_); } if (adjustmentsTotalAmountMicros_ != 0L) { output.writeInt64(21, adjustmentsTotalAmountMicros_); } if (regulatoryCostsSubtotalAmountMicros_ != 0L) { output.writeInt64(22, regulatoryCostsSubtotalAmountMicros_); } if (regulatoryCostsTaxAmountMicros_ != 0L) { output.writeInt64(23, regulatoryCostsTaxAmountMicros_); } if (regulatoryCostsTotalAmountMicros_ != 0L) { output.writeInt64(24, regulatoryCostsTotalAmountMicros_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, id_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, billingSetup_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, paymentsAccountId_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 28, paymentsProfileId_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, issueDate_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30, dueDate_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 31, currencyCode_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeInt64(33, subtotalAmountMicros_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeInt64(34, taxAmountMicros_); } if (((bitField0_ & 0x00002000) != 0)) { output.writeInt64(35, totalAmountMicros_); } if (((bitField0_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 36, correctedInvoice_); } for (int i = 0; i < replacedInvoices_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 37, replacedInvoices_.getRaw(i)); } if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 38, pdfUrl_); } for (int i = 0; i < accountSummaries_.size(); i++) { output.writeMessage(39, accountSummaries_.get(i)); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt64(40, exportChargeSubtotalAmountMicros_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeInt64(41, exportChargeTaxAmountMicros_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeInt64(42, exportChargeTotalAmountMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (type_ != com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getServiceDateRange()); } for (int i = 0; i < accountBudgetSummaries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, accountBudgetSummaries_.get(i)); } if (adjustmentsSubtotalAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, adjustmentsSubtotalAmountMicros_); } if (adjustmentsTaxAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(20, adjustmentsTaxAmountMicros_); } if (adjustmentsTotalAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(21, adjustmentsTotalAmountMicros_); } if (regulatoryCostsSubtotalAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, regulatoryCostsSubtotalAmountMicros_); } if (regulatoryCostsTaxAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(23, regulatoryCostsTaxAmountMicros_); } if (regulatoryCostsTotalAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(24, regulatoryCostsTotalAmountMicros_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, billingSetup_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, paymentsAccountId_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, paymentsProfileId_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, issueDate_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, dueDate_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, currencyCode_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(33, subtotalAmountMicros_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(34, taxAmountMicros_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(35, totalAmountMicros_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, correctedInvoice_); } { int dataSize = 0; for (int i = 0; i < replacedInvoices_.size(); i++) { dataSize += computeStringSizeNoTag(replacedInvoices_.getRaw(i)); } size += dataSize; size += 2 * getReplacedInvoicesList().size(); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(38, pdfUrl_); } for (int i = 0; i < accountSummaries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(39, accountSummaries_.get(i)); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(40, exportChargeSubtotalAmountMicros_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(41, exportChargeTaxAmountMicros_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(42, exportChargeTotalAmountMicros_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v18.resources.Invoice)) { return super.equals(obj); } com.google.ads.googleads.v18.resources.Invoice other = (com.google.ads.googleads.v18.resources.Invoice) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (type_ != other.type_) return false; if (hasBillingSetup() != other.hasBillingSetup()) return false; if (hasBillingSetup()) { if (!getBillingSetup() .equals(other.getBillingSetup())) return false; } if (hasPaymentsAccountId() != other.hasPaymentsAccountId()) return false; if (hasPaymentsAccountId()) { if (!getPaymentsAccountId() .equals(other.getPaymentsAccountId())) return false; } if (hasPaymentsProfileId() != other.hasPaymentsProfileId()) return false; if (hasPaymentsProfileId()) { if (!getPaymentsProfileId() .equals(other.getPaymentsProfileId())) return false; } if (hasIssueDate() != other.hasIssueDate()) return false; if (hasIssueDate()) { if (!getIssueDate() .equals(other.getIssueDate())) return false; } if (hasDueDate() != other.hasDueDate()) return false; if (hasDueDate()) { if (!getDueDate() .equals(other.getDueDate())) return false; } if (hasServiceDateRange() != other.hasServiceDateRange()) return false; if (hasServiceDateRange()) { if (!getServiceDateRange() .equals(other.getServiceDateRange())) return false; } if (hasCurrencyCode() != other.hasCurrencyCode()) return false; if (hasCurrencyCode()) { if (!getCurrencyCode() .equals(other.getCurrencyCode())) return false; } if (getAdjustmentsSubtotalAmountMicros() != other.getAdjustmentsSubtotalAmountMicros()) return false; if (getAdjustmentsTaxAmountMicros() != other.getAdjustmentsTaxAmountMicros()) return false; if (getAdjustmentsTotalAmountMicros() != other.getAdjustmentsTotalAmountMicros()) return false; if (getRegulatoryCostsSubtotalAmountMicros() != other.getRegulatoryCostsSubtotalAmountMicros()) return false; if (getRegulatoryCostsTaxAmountMicros() != other.getRegulatoryCostsTaxAmountMicros()) return false; if (getRegulatoryCostsTotalAmountMicros() != other.getRegulatoryCostsTotalAmountMicros()) return false; if (hasExportChargeSubtotalAmountMicros() != other.hasExportChargeSubtotalAmountMicros()) return false; if (hasExportChargeSubtotalAmountMicros()) { if (getExportChargeSubtotalAmountMicros() != other.getExportChargeSubtotalAmountMicros()) return false; } if (hasExportChargeTaxAmountMicros() != other.hasExportChargeTaxAmountMicros()) return false; if (hasExportChargeTaxAmountMicros()) { if (getExportChargeTaxAmountMicros() != other.getExportChargeTaxAmountMicros()) return false; } if (hasExportChargeTotalAmountMicros() != other.hasExportChargeTotalAmountMicros()) return false; if (hasExportChargeTotalAmountMicros()) { if (getExportChargeTotalAmountMicros() != other.getExportChargeTotalAmountMicros()) return false; } if (hasSubtotalAmountMicros() != other.hasSubtotalAmountMicros()) return false; if (hasSubtotalAmountMicros()) { if (getSubtotalAmountMicros() != other.getSubtotalAmountMicros()) return false; } if (hasTaxAmountMicros() != other.hasTaxAmountMicros()) return false; if (hasTaxAmountMicros()) { if (getTaxAmountMicros() != other.getTaxAmountMicros()) return false; } if (hasTotalAmountMicros() != other.hasTotalAmountMicros()) return false; if (hasTotalAmountMicros()) { if (getTotalAmountMicros() != other.getTotalAmountMicros()) return false; } if (hasCorrectedInvoice() != other.hasCorrectedInvoice()) return false; if (hasCorrectedInvoice()) { if (!getCorrectedInvoice() .equals(other.getCorrectedInvoice())) return false; } if (!getReplacedInvoicesList() .equals(other.getReplacedInvoicesList())) return false; if (hasPdfUrl() != other.hasPdfUrl()) return false; if (hasPdfUrl()) { if (!getPdfUrl() .equals(other.getPdfUrl())) return false; } if (!getAccountBudgetSummariesList() .equals(other.getAccountBudgetSummariesList())) return false; if (!getAccountSummariesList() .equals(other.getAccountSummariesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasBillingSetup()) { hash = (37 * hash) + BILLING_SETUP_FIELD_NUMBER; hash = (53 * hash) + getBillingSetup().hashCode(); } if (hasPaymentsAccountId()) { hash = (37 * hash) + PAYMENTS_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getPaymentsAccountId().hashCode(); } if (hasPaymentsProfileId()) { hash = (37 * hash) + PAYMENTS_PROFILE_ID_FIELD_NUMBER; hash = (53 * hash) + getPaymentsProfileId().hashCode(); } if (hasIssueDate()) { hash = (37 * hash) + ISSUE_DATE_FIELD_NUMBER; hash = (53 * hash) + getIssueDate().hashCode(); } if (hasDueDate()) { hash = (37 * hash) + DUE_DATE_FIELD_NUMBER; hash = (53 * hash) + getDueDate().hashCode(); } if (hasServiceDateRange()) { hash = (37 * hash) + SERVICE_DATE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getServiceDateRange().hashCode(); } if (hasCurrencyCode()) { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); } hash = (37 * hash) + ADJUSTMENTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAdjustmentsSubtotalAmountMicros()); hash = (37 * hash) + ADJUSTMENTS_TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAdjustmentsTaxAmountMicros()); hash = (37 * hash) + ADJUSTMENTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAdjustmentsTotalAmountMicros()); hash = (37 * hash) + REGULATORY_COSTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegulatoryCostsSubtotalAmountMicros()); hash = (37 * hash) + REGULATORY_COSTS_TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegulatoryCostsTaxAmountMicros()); hash = (37 * hash) + REGULATORY_COSTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegulatoryCostsTotalAmountMicros()); if (hasExportChargeSubtotalAmountMicros()) { hash = (37 * hash) + EXPORT_CHARGE_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExportChargeSubtotalAmountMicros()); } if (hasExportChargeTaxAmountMicros()) { hash = (37 * hash) + EXPORT_CHARGE_TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExportChargeTaxAmountMicros()); } if (hasExportChargeTotalAmountMicros()) { hash = (37 * hash) + EXPORT_CHARGE_TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExportChargeTotalAmountMicros()); } if (hasSubtotalAmountMicros()) { hash = (37 * hash) + SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSubtotalAmountMicros()); } if (hasTaxAmountMicros()) { hash = (37 * hash) + TAX_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTaxAmountMicros()); } if (hasTotalAmountMicros()) { hash = (37 * hash) + TOTAL_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalAmountMicros()); } if (hasCorrectedInvoice()) { hash = (37 * hash) + CORRECTED_INVOICE_FIELD_NUMBER; hash = (53 * hash) + getCorrectedInvoice().hashCode(); } if (getReplacedInvoicesCount() > 0) { hash = (37 * hash) + REPLACED_INVOICES_FIELD_NUMBER; hash = (53 * hash) + getReplacedInvoicesList().hashCode(); } if (hasPdfUrl()) { hash = (37 * hash) + PDF_URL_FIELD_NUMBER; hash = (53 * hash) + getPdfUrl().hashCode(); } if (getAccountBudgetSummariesCount() > 0) { hash = (37 * hash) + ACCOUNT_BUDGET_SUMMARIES_FIELD_NUMBER; hash = (53 * hash) + getAccountBudgetSummariesList().hashCode(); } if (getAccountSummariesCount() > 0) { hash = (37 * hash) + ACCOUNT_SUMMARIES_FIELD_NUMBER; hash = (53 * hash) + getAccountSummariesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.resources.Invoice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.Invoice parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v18.resources.Invoice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * 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 {@code google.ads.googleads.v18.resources.Invoice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.Invoice) com.google.ads.googleads.v18.resources.InvoiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.Invoice.class, com.google.ads.googleads.v18.resources.Invoice.Builder.class); } // Construct using com.google.ads.googleads.v18.resources.Invoice.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getServiceDateRangeFieldBuilder(); getAccountBudgetSummariesFieldBuilder(); getAccountSummariesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; resourceName_ = ""; id_ = ""; type_ = 0; billingSetup_ = ""; paymentsAccountId_ = ""; paymentsProfileId_ = ""; issueDate_ = ""; dueDate_ = ""; serviceDateRange_ = null; if (serviceDateRangeBuilder_ != null) { serviceDateRangeBuilder_.dispose(); serviceDateRangeBuilder_ = null; } currencyCode_ = ""; adjustmentsSubtotalAmountMicros_ = 0L; adjustmentsTaxAmountMicros_ = 0L; adjustmentsTotalAmountMicros_ = 0L; regulatoryCostsSubtotalAmountMicros_ = 0L; regulatoryCostsTaxAmountMicros_ = 0L; regulatoryCostsTotalAmountMicros_ = 0L; exportChargeSubtotalAmountMicros_ = 0L; exportChargeTaxAmountMicros_ = 0L; exportChargeTotalAmountMicros_ = 0L; subtotalAmountMicros_ = 0L; taxAmountMicros_ = 0L; totalAmountMicros_ = 0L; correctedInvoice_ = ""; replacedInvoices_ = com.google.protobuf.LazyStringArrayList.emptyList(); pdfUrl_ = ""; if (accountBudgetSummariesBuilder_ == null) { accountBudgetSummaries_ = java.util.Collections.emptyList(); } else { accountBudgetSummaries_ = null; accountBudgetSummariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); if (accountSummariesBuilder_ == null) { accountSummaries_ = java.util.Collections.emptyList(); } else { accountSummaries_ = null; accountSummariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x04000000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.resources.InvoiceProto.internal_static_google_ads_googleads_v18_resources_Invoice_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice getDefaultInstanceForType() { return com.google.ads.googleads.v18.resources.Invoice.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice build() { com.google.ads.googleads.v18.resources.Invoice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice buildPartial() { com.google.ads.googleads.v18.resources.Invoice result = new com.google.ads.googleads.v18.resources.Invoice(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v18.resources.Invoice result) { if (accountBudgetSummariesBuilder_ == null) { if (((bitField0_ & 0x02000000) != 0)) { accountBudgetSummaries_ = java.util.Collections.unmodifiableList(accountBudgetSummaries_); bitField0_ = (bitField0_ & ~0x02000000); } result.accountBudgetSummaries_ = accountBudgetSummaries_; } else { result.accountBudgetSummaries_ = accountBudgetSummariesBuilder_.build(); } if (accountSummariesBuilder_ == null) { if (((bitField0_ & 0x04000000) != 0)) { accountSummaries_ = java.util.Collections.unmodifiableList(accountSummaries_); bitField0_ = (bitField0_ & ~0x04000000); } result.accountSummaries_ = accountSummaries_; } else { result.accountSummaries_ = accountSummariesBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v18.resources.Invoice result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceName_ = resourceName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.billingSetup_ = billingSetup_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.paymentsAccountId_ = paymentsAccountId_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.paymentsProfileId_ = paymentsProfileId_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.issueDate_ = issueDate_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.dueDate_ = dueDate_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.serviceDateRange_ = serviceDateRangeBuilder_ == null ? serviceDateRange_ : serviceDateRangeBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { result.currencyCode_ = currencyCode_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000400) != 0)) { result.adjustmentsSubtotalAmountMicros_ = adjustmentsSubtotalAmountMicros_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.adjustmentsTaxAmountMicros_ = adjustmentsTaxAmountMicros_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.adjustmentsTotalAmountMicros_ = adjustmentsTotalAmountMicros_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.regulatoryCostsSubtotalAmountMicros_ = regulatoryCostsSubtotalAmountMicros_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.regulatoryCostsTaxAmountMicros_ = regulatoryCostsTaxAmountMicros_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.regulatoryCostsTotalAmountMicros_ = regulatoryCostsTotalAmountMicros_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.exportChargeSubtotalAmountMicros_ = exportChargeSubtotalAmountMicros_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00020000) != 0)) { result.exportChargeTaxAmountMicros_ = exportChargeTaxAmountMicros_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00040000) != 0)) { result.exportChargeTotalAmountMicros_ = exportChargeTotalAmountMicros_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00080000) != 0)) { result.subtotalAmountMicros_ = subtotalAmountMicros_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00100000) != 0)) { result.taxAmountMicros_ = taxAmountMicros_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00200000) != 0)) { result.totalAmountMicros_ = totalAmountMicros_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00400000) != 0)) { result.correctedInvoice_ = correctedInvoice_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00800000) != 0)) { replacedInvoices_.makeImmutable(); result.replacedInvoices_ = replacedInvoices_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.pdfUrl_ = pdfUrl_; to_bitField0_ |= 0x00008000; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v18.resources.Invoice) { return mergeFrom((com.google.ads.googleads.v18.resources.Invoice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.resources.Invoice other) { if (other == com.google.ads.googleads.v18.resources.Invoice.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasId()) { id_ = other.id_; bitField0_ |= 0x00000002; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasBillingSetup()) { billingSetup_ = other.billingSetup_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasPaymentsAccountId()) { paymentsAccountId_ = other.paymentsAccountId_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasPaymentsProfileId()) { paymentsProfileId_ = other.paymentsProfileId_; bitField0_ |= 0x00000020; onChanged(); } if (other.hasIssueDate()) { issueDate_ = other.issueDate_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasDueDate()) { dueDate_ = other.dueDate_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasServiceDateRange()) { mergeServiceDateRange(other.getServiceDateRange()); } if (other.hasCurrencyCode()) { currencyCode_ = other.currencyCode_; bitField0_ |= 0x00000200; onChanged(); } if (other.getAdjustmentsSubtotalAmountMicros() != 0L) { setAdjustmentsSubtotalAmountMicros(other.getAdjustmentsSubtotalAmountMicros()); } if (other.getAdjustmentsTaxAmountMicros() != 0L) { setAdjustmentsTaxAmountMicros(other.getAdjustmentsTaxAmountMicros()); } if (other.getAdjustmentsTotalAmountMicros() != 0L) { setAdjustmentsTotalAmountMicros(other.getAdjustmentsTotalAmountMicros()); } if (other.getRegulatoryCostsSubtotalAmountMicros() != 0L) { setRegulatoryCostsSubtotalAmountMicros(other.getRegulatoryCostsSubtotalAmountMicros()); } if (other.getRegulatoryCostsTaxAmountMicros() != 0L) { setRegulatoryCostsTaxAmountMicros(other.getRegulatoryCostsTaxAmountMicros()); } if (other.getRegulatoryCostsTotalAmountMicros() != 0L) { setRegulatoryCostsTotalAmountMicros(other.getRegulatoryCostsTotalAmountMicros()); } if (other.hasExportChargeSubtotalAmountMicros()) { setExportChargeSubtotalAmountMicros(other.getExportChargeSubtotalAmountMicros()); } if (other.hasExportChargeTaxAmountMicros()) { setExportChargeTaxAmountMicros(other.getExportChargeTaxAmountMicros()); } if (other.hasExportChargeTotalAmountMicros()) { setExportChargeTotalAmountMicros(other.getExportChargeTotalAmountMicros()); } if (other.hasSubtotalAmountMicros()) { setSubtotalAmountMicros(other.getSubtotalAmountMicros()); } if (other.hasTaxAmountMicros()) { setTaxAmountMicros(other.getTaxAmountMicros()); } if (other.hasTotalAmountMicros()) { setTotalAmountMicros(other.getTotalAmountMicros()); } if (other.hasCorrectedInvoice()) { correctedInvoice_ = other.correctedInvoice_; bitField0_ |= 0x00400000; onChanged(); } if (!other.replacedInvoices_.isEmpty()) { if (replacedInvoices_.isEmpty()) { replacedInvoices_ = other.replacedInvoices_; bitField0_ |= 0x00800000; } else { ensureReplacedInvoicesIsMutable(); replacedInvoices_.addAll(other.replacedInvoices_); } onChanged(); } if (other.hasPdfUrl()) { pdfUrl_ = other.pdfUrl_; bitField0_ |= 0x01000000; onChanged(); } if (accountBudgetSummariesBuilder_ == null) { if (!other.accountBudgetSummaries_.isEmpty()) { if (accountBudgetSummaries_.isEmpty()) { accountBudgetSummaries_ = other.accountBudgetSummaries_; bitField0_ = (bitField0_ & ~0x02000000); } else { ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.addAll(other.accountBudgetSummaries_); } onChanged(); } } else { if (!other.accountBudgetSummaries_.isEmpty()) { if (accountBudgetSummariesBuilder_.isEmpty()) { accountBudgetSummariesBuilder_.dispose(); accountBudgetSummariesBuilder_ = null; accountBudgetSummaries_ = other.accountBudgetSummaries_; bitField0_ = (bitField0_ & ~0x02000000); accountBudgetSummariesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAccountBudgetSummariesFieldBuilder() : null; } else { accountBudgetSummariesBuilder_.addAllMessages(other.accountBudgetSummaries_); } } } if (accountSummariesBuilder_ == null) { if (!other.accountSummaries_.isEmpty()) { if (accountSummaries_.isEmpty()) { accountSummaries_ = other.accountSummaries_; bitField0_ = (bitField0_ & ~0x04000000); } else { ensureAccountSummariesIsMutable(); accountSummaries_.addAll(other.accountSummaries_); } onChanged(); } } else { if (!other.accountSummaries_.isEmpty()) { if (accountSummariesBuilder_.isEmpty()) { accountSummariesBuilder_.dispose(); accountSummariesBuilder_ = null; accountSummaries_ = other.accountSummaries_; bitField0_ = (bitField0_ & ~0x04000000); accountSummariesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAccountSummariesFieldBuilder() : null; } else { accountSummariesBuilder_.addAllMessages(other.accountSummaries_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { resourceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 24: { type_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 74: { input.readMessage( getServiceDateRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 146: { com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary m = input.readMessage( com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.parser(), extensionRegistry); if (accountBudgetSummariesBuilder_ == null) { ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.add(m); } else { accountBudgetSummariesBuilder_.addMessage(m); } break; } // case 146 case 152: { adjustmentsSubtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 152 case 160: { adjustmentsTaxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 160 case 168: { adjustmentsTotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00001000; break; } // case 168 case 176: { regulatoryCostsSubtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00002000; break; } // case 176 case 184: { regulatoryCostsTaxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00004000; break; } // case 184 case 192: { regulatoryCostsTotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 192 case 202: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 202 case 210: { billingSetup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 210 case 218: { paymentsAccountId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 218 case 226: { paymentsProfileId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 226 case 234: { issueDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 234 case 242: { dueDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 242 case 250: { currencyCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 250 case 264: { subtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00080000; break; } // case 264 case 272: { taxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00100000; break; } // case 272 case 280: { totalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00200000; break; } // case 280 case 290: { correctedInvoice_ = input.readStringRequireUtf8(); bitField0_ |= 0x00400000; break; } // case 290 case 298: { java.lang.String s = input.readStringRequireUtf8(); ensureReplacedInvoicesIsMutable(); replacedInvoices_.add(s); break; } // case 298 case 306: { pdfUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x01000000; break; } // case 306 case 314: { com.google.ads.googleads.v18.resources.Invoice.AccountSummary m = input.readMessage( com.google.ads.googleads.v18.resources.Invoice.AccountSummary.parser(), extensionRegistry); if (accountSummariesBuilder_ == null) { ensureAccountSummariesIsMutable(); accountSummaries_.add(m); } else { accountSummariesBuilder_.addMessage(m); } break; } // case 314 case 320: { exportChargeSubtotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00010000; break; } // case 320 case 328: { exportChargeTaxAmountMicros_ = input.readInt64(); bitField0_ |= 0x00020000; break; } // case 328 case 336: { exportChargeTotalAmountMicros_ = input.readInt64(); bitField0_ |= 0x00040000; break; } // case 336 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object resourceName_ = ""; /** *
     * 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) = { ... } * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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) = { ... } * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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) = { ... } * @param value The resourceName to set. * @return This builder for chaining. */ public Builder setResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * 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) = { ... } * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * 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) = { ... } * @param value The bytes for resourceName to set. * @return This builder for chaining. */ public Builder setResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
     * 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]; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * 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]; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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]; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * 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]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int type_ = 0; /** *
     * Output only. The type of invoice.
     * 
* * .google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * Output only. The type of invoice.
     * 
* * .google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Output only. The type of invoice.
     * 
* * .google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType getType() { com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType result = com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType.forNumber(type_); return result == null ? com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType.UNRECOGNIZED : result; } /** *
     * Output only. The type of invoice.
     * 
* * .google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The type of invoice.
     * 
* * .google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } private java.lang.Object billingSetup_ = ""; /** *
     * 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]; * @return Whether the billingSetup field is set. */ public boolean hasBillingSetup() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * 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]; * @return The billingSetup. */ public java.lang.String getBillingSetup() { java.lang.Object ref = billingSetup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingSetup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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]; * @return The bytes for billingSetup. */ public com.google.protobuf.ByteString getBillingSetupBytes() { java.lang.Object ref = billingSetup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billingSetup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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]; * @param value The billingSetup to set. * @return This builder for chaining. */ public Builder setBillingSetup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } billingSetup_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearBillingSetup() { billingSetup_ = getDefaultInstance().getBillingSetup(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * 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]; * @param value The bytes for billingSetup to set. * @return This builder for chaining. */ public Builder setBillingSetupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); billingSetup_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object paymentsAccountId_ = ""; /** *
     * Output only. A 16 digit ID used to identify the payments account associated
     * with the billing setup, for example, "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]; * @return Whether the paymentsAccountId field is set. */ public boolean hasPaymentsAccountId() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Output only. A 16 digit ID used to identify the payments account associated
     * with the billing setup, for example, "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]; * @return The paymentsAccountId. */ public java.lang.String getPaymentsAccountId() { java.lang.Object ref = paymentsAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentsAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. A 16 digit ID used to identify the payments account associated
     * with the billing setup, for example, "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]; * @return The bytes for paymentsAccountId. */ public com.google.protobuf.ByteString getPaymentsAccountIdBytes() { java.lang.Object ref = paymentsAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paymentsAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. A 16 digit ID used to identify the payments account associated
     * with the billing setup, for example, "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]; * @param value The paymentsAccountId to set. * @return This builder for chaining. */ public Builder setPaymentsAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } paymentsAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Output only. A 16 digit ID used to identify the payments account associated
     * with the billing setup, for example, "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]; * @return This builder for chaining. */ public Builder clearPaymentsAccountId() { paymentsAccountId_ = getDefaultInstance().getPaymentsAccountId(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Output only. A 16 digit ID used to identify the payments account associated
     * with the billing setup, for example, "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]; * @param value The bytes for paymentsAccountId to set. * @return This builder for chaining. */ public Builder setPaymentsAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paymentsAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object paymentsProfileId_ = ""; /** *
     * Output only. A 12 digit ID used to identify the payments profile associated
     * with the billing setup, for example, "1234-5678-9012". It appears on the
     * invoice PDF as "Billing ID".
     * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the paymentsProfileId field is set. */ public boolean hasPaymentsProfileId() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Output only. A 12 digit ID used to identify the payments profile associated
     * with the billing setup, for example, "1234-5678-9012". It appears on the
     * invoice PDF as "Billing ID".
     * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The paymentsProfileId. */ public java.lang.String getPaymentsProfileId() { java.lang.Object ref = paymentsProfileId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentsProfileId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. A 12 digit ID used to identify the payments profile associated
     * with the billing setup, for example, "1234-5678-9012". It appears on the
     * invoice PDF as "Billing ID".
     * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for paymentsProfileId. */ public com.google.protobuf.ByteString getPaymentsProfileIdBytes() { java.lang.Object ref = paymentsProfileId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paymentsProfileId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. A 12 digit ID used to identify the payments profile associated
     * with the billing setup, for example, "1234-5678-9012". It appears on the
     * invoice PDF as "Billing ID".
     * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The paymentsProfileId to set. * @return This builder for chaining. */ public Builder setPaymentsProfileId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } paymentsProfileId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Output only. A 12 digit ID used to identify the payments profile associated
     * with the billing setup, for example, "1234-5678-9012". It appears on the
     * invoice PDF as "Billing ID".
     * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPaymentsProfileId() { paymentsProfileId_ = getDefaultInstance().getPaymentsProfileId(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Output only. A 12 digit ID used to identify the payments profile associated
     * with the billing setup, for example, "1234-5678-9012". It appears on the
     * invoice PDF as "Billing ID".
     * 
* * optional string payments_profile_id = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for paymentsProfileId to set. * @return This builder for chaining. */ public Builder setPaymentsProfileIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paymentsProfileId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object issueDate_ = ""; /** *
     * 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]; * @return Whether the issueDate field is set. */ public boolean hasIssueDate() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * 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]; * @return The issueDate. */ public java.lang.String getIssueDate() { java.lang.Object ref = issueDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issueDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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]; * @return The bytes for issueDate. */ public com.google.protobuf.ByteString getIssueDateBytes() { java.lang.Object ref = issueDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); issueDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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]; * @param value The issueDate to set. * @return This builder for chaining. */ public Builder setIssueDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } issueDate_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearIssueDate() { issueDate_ = getDefaultInstance().getIssueDate(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * 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]; * @param value The bytes for issueDate to set. * @return This builder for chaining. */ public Builder setIssueDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); issueDate_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object dueDate_ = ""; /** *
     * Output only. The due date in yyyy-mm-dd format.
     * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dueDate field is set. */ public boolean hasDueDate() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Output only. The due date in yyyy-mm-dd format.
     * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dueDate. */ public java.lang.String getDueDate() { java.lang.Object ref = dueDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dueDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The due date in yyyy-mm-dd format.
     * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for dueDate. */ public com.google.protobuf.ByteString getDueDateBytes() { java.lang.Object ref = dueDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dueDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The due date in yyyy-mm-dd format.
     * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The dueDate to set. * @return This builder for chaining. */ public Builder setDueDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dueDate_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. The due date in yyyy-mm-dd format.
     * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDueDate() { dueDate_ = getDefaultInstance().getDueDate(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     * Output only. The due date in yyyy-mm-dd format.
     * 
* * optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for dueDate to set. * @return This builder for chaining. */ public Builder setDueDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dueDate_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private com.google.ads.googleads.v18.common.DateRange serviceDateRange_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.DateRange, com.google.ads.googleads.v18.common.DateRange.Builder, com.google.ads.googleads.v18.common.DateRangeOrBuilder> serviceDateRangeBuilder_; /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the serviceDateRange field is set. */ public boolean hasServiceDateRange() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The serviceDateRange. */ public com.google.ads.googleads.v18.common.DateRange getServiceDateRange() { if (serviceDateRangeBuilder_ == null) { return serviceDateRange_ == null ? com.google.ads.googleads.v18.common.DateRange.getDefaultInstance() : serviceDateRange_; } else { return serviceDateRangeBuilder_.getMessage(); } } /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setServiceDateRange(com.google.ads.googleads.v18.common.DateRange value) { if (serviceDateRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serviceDateRange_ = value; } else { serviceDateRangeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setServiceDateRange( com.google.ads.googleads.v18.common.DateRange.Builder builderForValue) { if (serviceDateRangeBuilder_ == null) { serviceDateRange_ = builderForValue.build(); } else { serviceDateRangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeServiceDateRange(com.google.ads.googleads.v18.common.DateRange value) { if (serviceDateRangeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && serviceDateRange_ != null && serviceDateRange_ != com.google.ads.googleads.v18.common.DateRange.getDefaultInstance()) { getServiceDateRangeBuilder().mergeFrom(value); } else { serviceDateRange_ = value; } } else { serviceDateRangeBuilder_.mergeFrom(value); } if (serviceDateRange_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearServiceDateRange() { bitField0_ = (bitField0_ & ~0x00000100); serviceDateRange_ = null; if (serviceDateRangeBuilder_ != null) { serviceDateRangeBuilder_.dispose(); serviceDateRangeBuilder_ = null; } onChanged(); return this; } /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.common.DateRange.Builder getServiceDateRangeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getServiceDateRangeFieldBuilder().getBuilder(); } /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.common.DateRangeOrBuilder getServiceDateRangeOrBuilder() { if (serviceDateRangeBuilder_ != null) { return serviceDateRangeBuilder_.getMessageOrBuilder(); } else { return serviceDateRange_ == null ? com.google.ads.googleads.v18.common.DateRange.getDefaultInstance() : serviceDateRange_; } } /** *
     * Output only. The service period date range of this invoice. The end date is
     * inclusive.
     * 
* * .google.ads.googleads.v18.common.DateRange service_date_range = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.DateRange, com.google.ads.googleads.v18.common.DateRange.Builder, com.google.ads.googleads.v18.common.DateRangeOrBuilder> getServiceDateRangeFieldBuilder() { if (serviceDateRangeBuilder_ == null) { serviceDateRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.DateRange, com.google.ads.googleads.v18.common.DateRange.Builder, com.google.ads.googleads.v18.common.DateRangeOrBuilder>( getServiceDateRange(), getParentForChildren(), isClean()); serviceDateRange_ = null; } return serviceDateRangeBuilder_; } private java.lang.Object currencyCode_ = ""; /** *
     * 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]; * @return Whether the currencyCode field is set. */ public boolean hasCurrencyCode() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * 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]; * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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]; * @return The bytes for currencyCode. */ public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currencyCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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]; * @param value The currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currencyCode_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearCurrencyCode() { currencyCode_ = getDefaultInstance().getCurrencyCode(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** *
     * 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]; * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private long adjustmentsSubtotalAmountMicros_ ; /** *
     * Output only. The pretax subtotal amount of invoice level adjustments, in
     * micros.
     * 
* * int64 adjustments_subtotal_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The adjustmentsSubtotalAmountMicros. */ @java.lang.Override public long getAdjustmentsSubtotalAmountMicros() { return adjustmentsSubtotalAmountMicros_; } /** *
     * Output only. The pretax subtotal amount of invoice level adjustments, in
     * micros.
     * 
* * int64 adjustments_subtotal_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The adjustmentsSubtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setAdjustmentsSubtotalAmountMicros(long value) { adjustmentsSubtotalAmountMicros_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Output only. The pretax subtotal amount of invoice level adjustments, in
     * micros.
     * 
* * int64 adjustments_subtotal_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAdjustmentsSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00000400); adjustmentsSubtotalAmountMicros_ = 0L; onChanged(); return this; } private long adjustmentsTaxAmountMicros_ ; /** *
     * 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]; * @return The adjustmentsTaxAmountMicros. */ @java.lang.Override public long getAdjustmentsTaxAmountMicros() { return adjustmentsTaxAmountMicros_; } /** *
     * 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]; * @param value The adjustmentsTaxAmountMicros to set. * @return This builder for chaining. */ public Builder setAdjustmentsTaxAmountMicros(long value) { adjustmentsTaxAmountMicros_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearAdjustmentsTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00000800); adjustmentsTaxAmountMicros_ = 0L; onChanged(); return this; } private long adjustmentsTotalAmountMicros_ ; /** *
     * Output only. The total amount of invoice level adjustments, in micros.
     * 
* * int64 adjustments_total_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The adjustmentsTotalAmountMicros. */ @java.lang.Override public long getAdjustmentsTotalAmountMicros() { return adjustmentsTotalAmountMicros_; } /** *
     * Output only. The total amount of invoice level adjustments, in micros.
     * 
* * int64 adjustments_total_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The adjustmentsTotalAmountMicros to set. * @return This builder for chaining. */ public Builder setAdjustmentsTotalAmountMicros(long value) { adjustmentsTotalAmountMicros_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     * Output only. The total amount of invoice level adjustments, in micros.
     * 
* * int64 adjustments_total_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAdjustmentsTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00001000); adjustmentsTotalAmountMicros_ = 0L; onChanged(); return this; } private long regulatoryCostsSubtotalAmountMicros_ ; /** *
     * 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]; * @return The regulatoryCostsSubtotalAmountMicros. */ @java.lang.Override public long getRegulatoryCostsSubtotalAmountMicros() { return regulatoryCostsSubtotalAmountMicros_; } /** *
     * 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]; * @param value The regulatoryCostsSubtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setRegulatoryCostsSubtotalAmountMicros(long value) { regulatoryCostsSubtotalAmountMicros_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearRegulatoryCostsSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00002000); regulatoryCostsSubtotalAmountMicros_ = 0L; onChanged(); return this; } private long regulatoryCostsTaxAmountMicros_ ; /** *
     * 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]; * @return The regulatoryCostsTaxAmountMicros. */ @java.lang.Override public long getRegulatoryCostsTaxAmountMicros() { return regulatoryCostsTaxAmountMicros_; } /** *
     * 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]; * @param value The regulatoryCostsTaxAmountMicros to set. * @return This builder for chaining. */ public Builder setRegulatoryCostsTaxAmountMicros(long value) { regulatoryCostsTaxAmountMicros_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearRegulatoryCostsTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00004000); regulatoryCostsTaxAmountMicros_ = 0L; onChanged(); return this; } private long regulatoryCostsTotalAmountMicros_ ; /** *
     * 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]; * @return The regulatoryCostsTotalAmountMicros. */ @java.lang.Override public long getRegulatoryCostsTotalAmountMicros() { return regulatoryCostsTotalAmountMicros_; } /** *
     * 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]; * @param value The regulatoryCostsTotalAmountMicros to set. * @return This builder for chaining. */ public Builder setRegulatoryCostsTotalAmountMicros(long value) { regulatoryCostsTotalAmountMicros_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearRegulatoryCostsTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00008000); regulatoryCostsTotalAmountMicros_ = 0L; onChanged(); return this; } private long exportChargeSubtotalAmountMicros_ ; /** *
     * Output only. The pretax subtotal amount of invoice level export charges, in
     * micros.
     * 
* * optional int64 export_charge_subtotal_amount_micros = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeSubtotalAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeSubtotalAmountMicros() { return ((bitField0_ & 0x00010000) != 0); } /** *
     * Output only. The pretax subtotal amount of invoice level export charges, in
     * micros.
     * 
* * optional int64 export_charge_subtotal_amount_micros = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeSubtotalAmountMicros. */ @java.lang.Override public long getExportChargeSubtotalAmountMicros() { return exportChargeSubtotalAmountMicros_; } /** *
     * Output only. The pretax subtotal amount of invoice level export charges, in
     * micros.
     * 
* * optional int64 export_charge_subtotal_amount_micros = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The exportChargeSubtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setExportChargeSubtotalAmountMicros(long value) { exportChargeSubtotalAmountMicros_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     * Output only. The pretax subtotal amount of invoice level export charges, in
     * micros.
     * 
* * optional int64 export_charge_subtotal_amount_micros = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExportChargeSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00010000); exportChargeSubtotalAmountMicros_ = 0L; onChanged(); return this; } private long exportChargeTaxAmountMicros_ ; /** *
     * Output only. The sum of taxes on the invoice level export charges, in
     * micros.
     * 
* * optional int64 export_charge_tax_amount_micros = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTaxAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeTaxAmountMicros() { return ((bitField0_ & 0x00020000) != 0); } /** *
     * Output only. The sum of taxes on the invoice level export charges, in
     * micros.
     * 
* * optional int64 export_charge_tax_amount_micros = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTaxAmountMicros. */ @java.lang.Override public long getExportChargeTaxAmountMicros() { return exportChargeTaxAmountMicros_; } /** *
     * Output only. The sum of taxes on the invoice level export charges, in
     * micros.
     * 
* * optional int64 export_charge_tax_amount_micros = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The exportChargeTaxAmountMicros to set. * @return This builder for chaining. */ public Builder setExportChargeTaxAmountMicros(long value) { exportChargeTaxAmountMicros_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     * Output only. The sum of taxes on the invoice level export charges, in
     * micros.
     * 
* * optional int64 export_charge_tax_amount_micros = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExportChargeTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00020000); exportChargeTaxAmountMicros_ = 0L; onChanged(); return this; } private long exportChargeTotalAmountMicros_ ; /** *
     * Output only. The total amount of invoice level export charges, in micros.
     * 
* * optional int64 export_charge_total_amount_micros = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the exportChargeTotalAmountMicros field is set. */ @java.lang.Override public boolean hasExportChargeTotalAmountMicros() { return ((bitField0_ & 0x00040000) != 0); } /** *
     * Output only. The total amount of invoice level export charges, in micros.
     * 
* * optional int64 export_charge_total_amount_micros = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The exportChargeTotalAmountMicros. */ @java.lang.Override public long getExportChargeTotalAmountMicros() { return exportChargeTotalAmountMicros_; } /** *
     * Output only. The total amount of invoice level export charges, in micros.
     * 
* * optional int64 export_charge_total_amount_micros = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The exportChargeTotalAmountMicros to set. * @return This builder for chaining. */ public Builder setExportChargeTotalAmountMicros(long value) { exportChargeTotalAmountMicros_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     * Output only. The total amount of invoice level export charges, in micros.
     * 
* * optional int64 export_charge_total_amount_micros = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExportChargeTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00040000); exportChargeTotalAmountMicros_ = 0L; onChanged(); return this; } private long subtotalAmountMicros_ ; /** *
     * Output only. The pretax subtotal amount, in micros. This is equal to the
     * sum of the AccountBudgetSummary subtotal amounts and
     * Invoice.adjustments_subtotal_amount_micros.
     * 
* * optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the subtotalAmountMicros field is set. */ @java.lang.Override public boolean hasSubtotalAmountMicros() { return ((bitField0_ & 0x00080000) != 0); } /** *
     * Output only. The pretax subtotal amount, in micros. This is equal to the
     * sum of the AccountBudgetSummary subtotal amounts and
     * Invoice.adjustments_subtotal_amount_micros.
     * 
* * optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The subtotalAmountMicros. */ @java.lang.Override public long getSubtotalAmountMicros() { return subtotalAmountMicros_; } /** *
     * Output only. The pretax subtotal amount, in micros. This is equal to the
     * sum of the AccountBudgetSummary subtotal amounts and
     * Invoice.adjustments_subtotal_amount_micros.
     * 
* * optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The subtotalAmountMicros to set. * @return This builder for chaining. */ public Builder setSubtotalAmountMicros(long value) { subtotalAmountMicros_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     * Output only. The pretax subtotal amount, in micros. This is equal to the
     * sum of the AccountBudgetSummary subtotal amounts and
     * Invoice.adjustments_subtotal_amount_micros.
     * 
* * optional int64 subtotal_amount_micros = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSubtotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00080000); subtotalAmountMicros_ = 0L; onChanged(); return this; } private long taxAmountMicros_ ; /** *
     * 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]; * @return Whether the taxAmountMicros field is set. */ @java.lang.Override public boolean hasTaxAmountMicros() { return ((bitField0_ & 0x00100000) != 0); } /** *
     * 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]; * @return The taxAmountMicros. */ @java.lang.Override public long getTaxAmountMicros() { return taxAmountMicros_; } /** *
     * 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]; * @param value The taxAmountMicros to set. * @return This builder for chaining. */ public Builder setTaxAmountMicros(long value) { taxAmountMicros_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearTaxAmountMicros() { bitField0_ = (bitField0_ & ~0x00100000); taxAmountMicros_ = 0L; onChanged(); return this; } private long totalAmountMicros_ ; /** *
     * Output only. The total amount, in micros. This equals the sum of
     * Invoice.subtotal_amount_micros, Invoice.tax_amount_micros,
     * Invoice.regulatory_costs_subtotal_amount_micros, and
     * Invoice.export_charge_subtotal_amount_micros (which is separated into a
     * separate line item starting with V14.1).
     * 
* * optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the totalAmountMicros field is set. */ @java.lang.Override public boolean hasTotalAmountMicros() { return ((bitField0_ & 0x00200000) != 0); } /** *
     * Output only. The total amount, in micros. This equals the sum of
     * Invoice.subtotal_amount_micros, Invoice.tax_amount_micros,
     * Invoice.regulatory_costs_subtotal_amount_micros, and
     * Invoice.export_charge_subtotal_amount_micros (which is separated into a
     * separate line item starting with V14.1).
     * 
* * optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The totalAmountMicros. */ @java.lang.Override public long getTotalAmountMicros() { return totalAmountMicros_; } /** *
     * Output only. The total amount, in micros. This equals the sum of
     * Invoice.subtotal_amount_micros, Invoice.tax_amount_micros,
     * Invoice.regulatory_costs_subtotal_amount_micros, and
     * Invoice.export_charge_subtotal_amount_micros (which is separated into a
     * separate line item starting with V14.1).
     * 
* * optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The totalAmountMicros to set. * @return This builder for chaining. */ public Builder setTotalAmountMicros(long value) { totalAmountMicros_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** *
     * Output only. The total amount, in micros. This equals the sum of
     * Invoice.subtotal_amount_micros, Invoice.tax_amount_micros,
     * Invoice.regulatory_costs_subtotal_amount_micros, and
     * Invoice.export_charge_subtotal_amount_micros (which is separated into a
     * separate line item starting with V14.1).
     * 
* * optional int64 total_amount_micros = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTotalAmountMicros() { bitField0_ = (bitField0_ & ~0x00200000); totalAmountMicros_ = 0L; onChanged(); return this; } private java.lang.Object correctedInvoice_ = ""; /** *
     * 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]; * @return Whether the correctedInvoice field is set. */ public boolean hasCorrectedInvoice() { return ((bitField0_ & 0x00400000) != 0); } /** *
     * 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]; * @return The correctedInvoice. */ public java.lang.String getCorrectedInvoice() { java.lang.Object ref = correctedInvoice_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); correctedInvoice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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]; * @return The bytes for correctedInvoice. */ public com.google.protobuf.ByteString getCorrectedInvoiceBytes() { java.lang.Object ref = correctedInvoice_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); correctedInvoice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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]; * @param value The correctedInvoice to set. * @return This builder for chaining. */ public Builder setCorrectedInvoice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } correctedInvoice_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearCorrectedInvoice() { correctedInvoice_ = getDefaultInstance().getCorrectedInvoice(); bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } /** *
     * 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]; * @param value The bytes for correctedInvoice to set. * @return This builder for chaining. */ public Builder setCorrectedInvoiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); correctedInvoice_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList replacedInvoices_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureReplacedInvoicesIsMutable() { if (!replacedInvoices_.isModifiable()) { replacedInvoices_ = new com.google.protobuf.LazyStringArrayList(replacedInvoices_); } bitField0_ |= 0x00800000; } /** *
     * 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]; * @return A list containing the replacedInvoices. */ public com.google.protobuf.ProtocolStringList getReplacedInvoicesList() { replacedInvoices_.makeImmutable(); return replacedInvoices_; } /** *
     * 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]; * @return The count of replacedInvoices. */ public int getReplacedInvoicesCount() { return replacedInvoices_.size(); } /** *
     * 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]; * @param index The index of the element to return. * @return The replacedInvoices at the given index. */ public java.lang.String getReplacedInvoices(int index) { return replacedInvoices_.get(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]; * @param index The index of the value to return. * @return The bytes of the replacedInvoices at the given index. */ public com.google.protobuf.ByteString getReplacedInvoicesBytes(int index) { return replacedInvoices_.getByteString(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]; * @param index The index to set the value at. * @param value The replacedInvoices to set. * @return This builder for chaining. */ public Builder setReplacedInvoices( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReplacedInvoicesIsMutable(); replacedInvoices_.set(index, value); bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     * 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]; * @param value The replacedInvoices to add. * @return This builder for chaining. */ public Builder addReplacedInvoices( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReplacedInvoicesIsMutable(); replacedInvoices_.add(value); bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     * 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]; * @param values The replacedInvoices to add. * @return This builder for chaining. */ public Builder addAllReplacedInvoices( java.lang.Iterable values) { ensureReplacedInvoicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, replacedInvoices_); bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearReplacedInvoices() { replacedInvoices_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00800000);; onChanged(); return this; } /** *
     * 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]; * @param value The bytes of the replacedInvoices to add. * @return This builder for chaining. */ public Builder addReplacedInvoicesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureReplacedInvoicesIsMutable(); replacedInvoices_.add(value); bitField0_ |= 0x00800000; onChanged(); return this; } private java.lang.Object pdfUrl_ = ""; /** *
     * 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]; * @return Whether the pdfUrl field is set. */ public boolean hasPdfUrl() { return ((bitField0_ & 0x01000000) != 0); } /** *
     * 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]; * @return The pdfUrl. */ public java.lang.String getPdfUrl() { java.lang.Object ref = pdfUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pdfUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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]; * @return The bytes for pdfUrl. */ public com.google.protobuf.ByteString getPdfUrlBytes() { java.lang.Object ref = pdfUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pdfUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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]; * @param value The pdfUrl to set. * @return This builder for chaining. */ public Builder setPdfUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pdfUrl_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     * 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]; * @return This builder for chaining. */ public Builder clearPdfUrl() { pdfUrl_ = getDefaultInstance().getPdfUrl(); bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } /** *
     * 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]; * @param value The bytes for pdfUrl to set. * @return This builder for chaining. */ public Builder setPdfUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pdfUrl_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } private java.util.List accountBudgetSummaries_ = java.util.Collections.emptyList(); private void ensureAccountBudgetSummariesIsMutable() { if (!((bitField0_ & 0x02000000) != 0)) { accountBudgetSummaries_ = new java.util.ArrayList(accountBudgetSummaries_); bitField0_ |= 0x02000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummaryOrBuilder> accountBudgetSummariesBuilder_; /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getAccountBudgetSummariesList() { if (accountBudgetSummariesBuilder_ == null) { return java.util.Collections.unmodifiableList(accountBudgetSummaries_); } else { return accountBudgetSummariesBuilder_.getMessageList(); } } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getAccountBudgetSummariesCount() { if (accountBudgetSummariesBuilder_ == null) { return accountBudgetSummaries_.size(); } else { return accountBudgetSummariesBuilder_.getCount(); } } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary getAccountBudgetSummaries(int index) { if (accountBudgetSummariesBuilder_ == null) { return accountBudgetSummaries_.get(index); } else { return accountBudgetSummariesBuilder_.getMessage(index); } } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAccountBudgetSummaries( int index, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary value) { if (accountBudgetSummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.set(index, value); onChanged(); } else { accountBudgetSummariesBuilder_.setMessage(index, value); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAccountBudgetSummaries( int index, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder builderForValue) { if (accountBudgetSummariesBuilder_ == null) { ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.set(index, builderForValue.build()); onChanged(); } else { accountBudgetSummariesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAccountBudgetSummaries(com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary value) { if (accountBudgetSummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.add(value); onChanged(); } else { accountBudgetSummariesBuilder_.addMessage(value); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAccountBudgetSummaries( int index, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary value) { if (accountBudgetSummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.add(index, value); onChanged(); } else { accountBudgetSummariesBuilder_.addMessage(index, value); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAccountBudgetSummaries( com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder builderForValue) { if (accountBudgetSummariesBuilder_ == null) { ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.add(builderForValue.build()); onChanged(); } else { accountBudgetSummariesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAccountBudgetSummaries( int index, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder builderForValue) { if (accountBudgetSummariesBuilder_ == null) { ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.add(index, builderForValue.build()); onChanged(); } else { accountBudgetSummariesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllAccountBudgetSummaries( java.lang.Iterable values) { if (accountBudgetSummariesBuilder_ == null) { ensureAccountBudgetSummariesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, accountBudgetSummaries_); onChanged(); } else { accountBudgetSummariesBuilder_.addAllMessages(values); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAccountBudgetSummaries() { if (accountBudgetSummariesBuilder_ == null) { accountBudgetSummaries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x02000000); onChanged(); } else { accountBudgetSummariesBuilder_.clear(); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeAccountBudgetSummaries(int index) { if (accountBudgetSummariesBuilder_ == null) { ensureAccountBudgetSummariesIsMutable(); accountBudgetSummaries_.remove(index); onChanged(); } else { accountBudgetSummariesBuilder_.remove(index); } return this; } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder getAccountBudgetSummariesBuilder( int index) { return getAccountBudgetSummariesFieldBuilder().getBuilder(index); } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummaryOrBuilder getAccountBudgetSummariesOrBuilder( int index) { if (accountBudgetSummariesBuilder_ == null) { return accountBudgetSummaries_.get(index); } else { return accountBudgetSummariesBuilder_.getMessageOrBuilder(index); } } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getAccountBudgetSummariesOrBuilderList() { if (accountBudgetSummariesBuilder_ != null) { return accountBudgetSummariesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(accountBudgetSummaries_); } } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder addAccountBudgetSummariesBuilder() { return getAccountBudgetSummariesFieldBuilder().addBuilder( com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.getDefaultInstance()); } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder addAccountBudgetSummariesBuilder( int index) { return getAccountBudgetSummariesFieldBuilder().addBuilder( index, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.getDefaultInstance()); } /** *
     * Output only. The list of summarized account budget information associated
     * with this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary account_budget_summaries = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getAccountBudgetSummariesBuilderList() { return getAccountBudgetSummariesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummaryOrBuilder> getAccountBudgetSummariesFieldBuilder() { if (accountBudgetSummariesBuilder_ == null) { accountBudgetSummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary.Builder, com.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummaryOrBuilder>( accountBudgetSummaries_, ((bitField0_ & 0x02000000) != 0), getParentForChildren(), isClean()); accountBudgetSummaries_ = null; } return accountBudgetSummariesBuilder_; } private java.util.List accountSummaries_ = java.util.Collections.emptyList(); private void ensureAccountSummariesIsMutable() { if (!((bitField0_ & 0x04000000) != 0)) { accountSummaries_ = new java.util.ArrayList(accountSummaries_); bitField0_ |= 0x04000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.AccountSummary, com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder, com.google.ads.googleads.v18.resources.Invoice.AccountSummaryOrBuilder> accountSummariesBuilder_; /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getAccountSummariesList() { if (accountSummariesBuilder_ == null) { return java.util.Collections.unmodifiableList(accountSummaries_); } else { return accountSummariesBuilder_.getMessageList(); } } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getAccountSummariesCount() { if (accountSummariesBuilder_ == null) { return accountSummaries_.size(); } else { return accountSummariesBuilder_.getCount(); } } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountSummary getAccountSummaries(int index) { if (accountSummariesBuilder_ == null) { return accountSummaries_.get(index); } else { return accountSummariesBuilder_.getMessage(index); } } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAccountSummaries( int index, com.google.ads.googleads.v18.resources.Invoice.AccountSummary value) { if (accountSummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAccountSummariesIsMutable(); accountSummaries_.set(index, value); onChanged(); } else { accountSummariesBuilder_.setMessage(index, value); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAccountSummaries( int index, com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder builderForValue) { if (accountSummariesBuilder_ == null) { ensureAccountSummariesIsMutable(); accountSummaries_.set(index, builderForValue.build()); onChanged(); } else { accountSummariesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAccountSummaries(com.google.ads.googleads.v18.resources.Invoice.AccountSummary value) { if (accountSummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAccountSummariesIsMutable(); accountSummaries_.add(value); onChanged(); } else { accountSummariesBuilder_.addMessage(value); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAccountSummaries( int index, com.google.ads.googleads.v18.resources.Invoice.AccountSummary value) { if (accountSummariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAccountSummariesIsMutable(); accountSummaries_.add(index, value); onChanged(); } else { accountSummariesBuilder_.addMessage(index, value); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAccountSummaries( com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder builderForValue) { if (accountSummariesBuilder_ == null) { ensureAccountSummariesIsMutable(); accountSummaries_.add(builderForValue.build()); onChanged(); } else { accountSummariesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAccountSummaries( int index, com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder builderForValue) { if (accountSummariesBuilder_ == null) { ensureAccountSummariesIsMutable(); accountSummaries_.add(index, builderForValue.build()); onChanged(); } else { accountSummariesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllAccountSummaries( java.lang.Iterable values) { if (accountSummariesBuilder_ == null) { ensureAccountSummariesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, accountSummaries_); onChanged(); } else { accountSummariesBuilder_.addAllMessages(values); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAccountSummaries() { if (accountSummariesBuilder_ == null) { accountSummaries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x04000000); onChanged(); } else { accountSummariesBuilder_.clear(); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeAccountSummaries(int index) { if (accountSummariesBuilder_ == null) { ensureAccountSummariesIsMutable(); accountSummaries_.remove(index); onChanged(); } else { accountSummariesBuilder_.remove(index); } return this; } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder getAccountSummariesBuilder( int index) { return getAccountSummariesFieldBuilder().getBuilder(index); } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountSummaryOrBuilder getAccountSummariesOrBuilder( int index) { if (accountSummariesBuilder_ == null) { return accountSummaries_.get(index); } else { return accountSummariesBuilder_.getMessageOrBuilder(index); } } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getAccountSummariesOrBuilderList() { if (accountSummariesBuilder_ != null) { return accountSummariesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(accountSummaries_); } } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder addAccountSummariesBuilder() { return getAccountSummariesFieldBuilder().addBuilder( com.google.ads.googleads.v18.resources.Invoice.AccountSummary.getDefaultInstance()); } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder addAccountSummariesBuilder( int index) { return getAccountSummariesFieldBuilder().addBuilder( index, com.google.ads.googleads.v18.resources.Invoice.AccountSummary.getDefaultInstance()); } /** *
     * Output only. The list of summarized account information associated with
     * this invoice.
     * 
* * repeated .google.ads.googleads.v18.resources.Invoice.AccountSummary account_summaries = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getAccountSummariesBuilderList() { return getAccountSummariesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.AccountSummary, com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder, com.google.ads.googleads.v18.resources.Invoice.AccountSummaryOrBuilder> getAccountSummariesFieldBuilder() { if (accountSummariesBuilder_ == null) { accountSummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.resources.Invoice.AccountSummary, com.google.ads.googleads.v18.resources.Invoice.AccountSummary.Builder, com.google.ads.googleads.v18.resources.Invoice.AccountSummaryOrBuilder>( accountSummaries_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); accountSummaries_ = null; } return accountSummariesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.Invoice) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.Invoice) private static final com.google.ads.googleads.v18.resources.Invoice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.Invoice(); } public static com.google.ads.googleads.v18.resources.Invoice getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Invoice parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v18.resources.Invoice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy