Class Invoice
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.Invoice
- All Implemented Interfaces:
InvoiceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Invoice
extends com.google.protobuf.GeneratedMessageV3
implements InvoiceOrBuilder
An invoice. All invoice information is snapshotted to match the PDF invoice. For invoices older than the launch of InvoiceService, the snapshotted information may not match the PDF invoice.Protobuf type
google.ads.googleads.v18.resources.Invoice- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a summarized account budget billable cost.static interfacestatic final classRepresents a summarized view at account level.static interfacestatic final classAn invoice.static final classDetails about the invalid activity for the invoice that contain additional details about invoice against which corrections are made.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAccountBudgetSummaries(int index) Output only.intOutput only.Output only.getAccountBudgetSummariesOrBuilder(int index) Output only.List<? extends Invoice.AccountBudgetSummaryOrBuilder>Output only.getAccountSummaries(int index) Output only.intOutput only.Output only.getAccountSummariesOrBuilder(int index) Output only.List<? extends Invoice.AccountSummaryOrBuilder>Output only.longOutput only.longOutput only.longOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.static Invoicestatic final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.longOutput only.longOutput only.longOutput only.getId()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<Invoice>Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.longOutput only.longOutput only.longOutput only.getReplacedInvoices(int index) Output only.com.google.protobuf.ByteStringgetReplacedInvoicesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Output only.com.google.protobuf.ByteStringOutput only.intOutput only.Output only.longOutput only.longOutput only.longOutput only.getType()Output only.intOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanhasId()Output only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Invoice.Builderstatic Invoice.BuildernewBuilder(Invoice prototype) protected Invoice.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static InvoiceparseDelimitedFrom(InputStream input) static InvoiceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InvoiceparseFrom(byte[] data) static InvoiceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InvoiceparseFrom(com.google.protobuf.ByteString data) static InvoiceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InvoiceparseFrom(com.google.protobuf.CodedInputStream input) static InvoiceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InvoiceparseFrom(InputStream input) static InvoiceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InvoiceparseFrom(ByteBuffer data) static InvoiceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Invoice>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
BILLING_SETUP_FIELD_NUMBER
public static final int BILLING_SETUP_FIELD_NUMBER- See Also:
-
PAYMENTS_ACCOUNT_ID_FIELD_NUMBER
public static final int PAYMENTS_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
PAYMENTS_PROFILE_ID_FIELD_NUMBER
public static final int PAYMENTS_PROFILE_ID_FIELD_NUMBER- See Also:
-
ISSUE_DATE_FIELD_NUMBER
public static final int ISSUE_DATE_FIELD_NUMBER- See Also:
-
DUE_DATE_FIELD_NUMBER
public static final int DUE_DATE_FIELD_NUMBER- See Also:
-
SERVICE_DATE_RANGE_FIELD_NUMBER
public static final int SERVICE_DATE_RANGE_FIELD_NUMBER- See Also:
-
CURRENCY_CODE_FIELD_NUMBER
public static final int CURRENCY_CODE_FIELD_NUMBER- See Also:
-
ADJUSTMENTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER
public static final int ADJUSTMENTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
ADJUSTMENTS_TAX_AMOUNT_MICROS_FIELD_NUMBER
public static final int ADJUSTMENTS_TAX_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
ADJUSTMENTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER
public static final int ADJUSTMENTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
REGULATORY_COSTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER
public static final int REGULATORY_COSTS_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
REGULATORY_COSTS_TAX_AMOUNT_MICROS_FIELD_NUMBER
public static final int REGULATORY_COSTS_TAX_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
REGULATORY_COSTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER
public static final int REGULATORY_COSTS_TOTAL_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
EXPORT_CHARGE_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER
public static final int EXPORT_CHARGE_SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
EXPORT_CHARGE_TAX_AMOUNT_MICROS_FIELD_NUMBER
public static final int EXPORT_CHARGE_TAX_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
EXPORT_CHARGE_TOTAL_AMOUNT_MICROS_FIELD_NUMBER
public static final int EXPORT_CHARGE_TOTAL_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER
public static final int SUBTOTAL_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
TAX_AMOUNT_MICROS_FIELD_NUMBER
public static final int TAX_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
TOTAL_AMOUNT_MICROS_FIELD_NUMBER
public static final int TOTAL_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
CORRECTED_INVOICE_FIELD_NUMBER
public static final int CORRECTED_INVOICE_FIELD_NUMBER- See Also:
-
REPLACED_INVOICES_FIELD_NUMBER
public static final int REPLACED_INVOICES_FIELD_NUMBER- See Also:
-
PDF_URL_FIELD_NUMBER
public static final int PDF_URL_FIELD_NUMBER- See Also:
-
ACCOUNT_BUDGET_SUMMARIES_FIELD_NUMBER
public static final int ACCOUNT_BUDGET_SUMMARIES_FIELD_NUMBER- See Also:
-
ACCOUNT_SUMMARIES_FIELD_NUMBER
public static final int ACCOUNT_SUMMARIES_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getResourceName
Output only. The resource name of the invoice. Multiple customers can share a given invoice, so multiple resource names may point to the same invoice. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceInvoiceOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the invoice. Multiple customers can share a given invoice, so multiple resource names may point to the same invoice. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for resourceName.
-
hasId
public boolean hasId()Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceInvoiceOrBuilder- Returns:
- Whether the id field is set.
-
getId
Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceInvoiceOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
optional string id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for id.
-
getTypeValue
public int getTypeValue()Output only. The type of invoice.
.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeValuein interfaceInvoiceOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
Output only. The type of invoice.
.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypein interfaceInvoiceOrBuilder- Returns:
- The type.
-
hasBillingSetup
public boolean hasBillingSetup()Output only. The resource name of this invoice's billing setup. `customers/{customer_id}/billingSetups/{billing_setup_id}`optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasBillingSetupin interfaceInvoiceOrBuilder- Returns:
- Whether the billingSetup field is set.
-
getBillingSetup
Output only. The resource name of this invoice's billing setup. `customers/{customer_id}/billingSetups/{billing_setup_id}`optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBillingSetupin interfaceInvoiceOrBuilder- Returns:
- The billingSetup.
-
getBillingSetupBytes
public com.google.protobuf.ByteString getBillingSetupBytes()Output only. The resource name of this invoice's billing setup. `customers/{customer_id}/billingSetups/{billing_setup_id}`optional string billing_setup = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBillingSetupBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for billingSetup.
-
hasPaymentsAccountId
public boolean hasPaymentsAccountId()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];- Specified by:
hasPaymentsAccountIdin interfaceInvoiceOrBuilder- Returns:
- Whether the paymentsAccountId field is set.
-
getPaymentsAccountId
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];- Specified by:
getPaymentsAccountIdin interfaceInvoiceOrBuilder- Returns:
- The paymentsAccountId.
-
getPaymentsAccountIdBytes
public com.google.protobuf.ByteString getPaymentsAccountIdBytes()Output only. A 16 digit ID used to identify the payments account associated with the billing setup, 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];- Specified by:
getPaymentsAccountIdBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for paymentsAccountId.
-
hasPaymentsProfileId
public boolean hasPaymentsProfileId()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];- Specified by:
hasPaymentsProfileIdin interfaceInvoiceOrBuilder- Returns:
- Whether the paymentsProfileId field is set.
-
getPaymentsProfileId
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];- Specified by:
getPaymentsProfileIdin interfaceInvoiceOrBuilder- Returns:
- The paymentsProfileId.
-
getPaymentsProfileIdBytes
public com.google.protobuf.ByteString getPaymentsProfileIdBytes()Output only. A 12 digit ID used to identify the payments profile associated with the billing setup, 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];- Specified by:
getPaymentsProfileIdBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for paymentsProfileId.
-
hasIssueDate
public boolean hasIssueDate()Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as either "Issue date" or "Invoice date".
optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIssueDatein interfaceInvoiceOrBuilder- Returns:
- Whether the issueDate field is set.
-
getIssueDate
Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as either "Issue date" or "Invoice date".
optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIssueDatein interfaceInvoiceOrBuilder- Returns:
- The issueDate.
-
getIssueDateBytes
public com.google.protobuf.ByteString getIssueDateBytes()Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as either "Issue date" or "Invoice date".
optional string issue_date = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIssueDateBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for issueDate.
-
hasDueDate
public boolean hasDueDate()Output only. The due date in yyyy-mm-dd format.
optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDueDatein interfaceInvoiceOrBuilder- Returns:
- Whether the dueDate field is set.
-
getDueDate
Output only. The due date in yyyy-mm-dd format.
optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDueDatein interfaceInvoiceOrBuilder- Returns:
- The dueDate.
-
getDueDateBytes
public com.google.protobuf.ByteString getDueDateBytes()Output only. The due date in yyyy-mm-dd format.
optional string due_date = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDueDateBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for dueDate.
-
hasServiceDateRange
public boolean hasServiceDateRange()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];- Specified by:
hasServiceDateRangein interfaceInvoiceOrBuilder- Returns:
- Whether the serviceDateRange field is set.
-
getServiceDateRange
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];- Specified by:
getServiceDateRangein interfaceInvoiceOrBuilder- Returns:
- The serviceDateRange.
-
getServiceDateRangeOrBuilder
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];- Specified by:
getServiceDateRangeOrBuilderin interfaceInvoiceOrBuilder
-
hasCurrencyCode
public boolean hasCurrencyCode()Output only. The currency code. All costs are returned in this currency. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCurrencyCodein interfaceInvoiceOrBuilder- Returns:
- Whether the currencyCode field is set.
-
getCurrencyCode
Output only. The currency code. All costs are returned in this currency. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrencyCodein interfaceInvoiceOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()Output only. The currency code. All costs are returned in this currency. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrencyCodeBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for currencyCode.
-
getAdjustmentsSubtotalAmountMicros
public long getAdjustmentsSubtotalAmountMicros()Output only. The pretax subtotal amount of invoice level adjustments, in micros.
int64 adjustments_subtotal_amount_micros = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdjustmentsSubtotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The adjustmentsSubtotalAmountMicros.
-
getAdjustmentsTaxAmountMicros
public long getAdjustmentsTaxAmountMicros()Output only. The sum of taxes on the invoice level adjustments, in micros.
int64 adjustments_tax_amount_micros = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdjustmentsTaxAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The adjustmentsTaxAmountMicros.
-
getAdjustmentsTotalAmountMicros
public long getAdjustmentsTotalAmountMicros()Output only. The total amount of invoice level adjustments, in micros.
int64 adjustments_total_amount_micros = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdjustmentsTotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The adjustmentsTotalAmountMicros.
-
getRegulatoryCostsSubtotalAmountMicros
public long getRegulatoryCostsSubtotalAmountMicros()Output only. The pretax subtotal amount of invoice level regulatory costs, in micros.
int64 regulatory_costs_subtotal_amount_micros = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRegulatoryCostsSubtotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The regulatoryCostsSubtotalAmountMicros.
-
getRegulatoryCostsTaxAmountMicros
public long getRegulatoryCostsTaxAmountMicros()Output only. The sum of taxes on the invoice level regulatory costs, in micros.
int64 regulatory_costs_tax_amount_micros = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRegulatoryCostsTaxAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The regulatoryCostsTaxAmountMicros.
-
getRegulatoryCostsTotalAmountMicros
public long getRegulatoryCostsTotalAmountMicros()Output only. The total amount of invoice level regulatory costs, in micros.
int64 regulatory_costs_total_amount_micros = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRegulatoryCostsTotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The regulatoryCostsTotalAmountMicros.
-
hasExportChargeSubtotalAmountMicros
public boolean hasExportChargeSubtotalAmountMicros()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];- Specified by:
hasExportChargeSubtotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- Whether the exportChargeSubtotalAmountMicros field is set.
-
getExportChargeSubtotalAmountMicros
public long getExportChargeSubtotalAmountMicros()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];- Specified by:
getExportChargeSubtotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The exportChargeSubtotalAmountMicros.
-
hasExportChargeTaxAmountMicros
public boolean hasExportChargeTaxAmountMicros()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];- Specified by:
hasExportChargeTaxAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- Whether the exportChargeTaxAmountMicros field is set.
-
getExportChargeTaxAmountMicros
public long getExportChargeTaxAmountMicros()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];- Specified by:
getExportChargeTaxAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The exportChargeTaxAmountMicros.
-
hasExportChargeTotalAmountMicros
public boolean hasExportChargeTotalAmountMicros()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];- Specified by:
hasExportChargeTotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- Whether the exportChargeTotalAmountMicros field is set.
-
getExportChargeTotalAmountMicros
public long getExportChargeTotalAmountMicros()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];- Specified by:
getExportChargeTotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The exportChargeTotalAmountMicros.
-
hasSubtotalAmountMicros
public boolean hasSubtotalAmountMicros()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];- Specified by:
hasSubtotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- Whether the subtotalAmountMicros field is set.
-
getSubtotalAmountMicros
public long getSubtotalAmountMicros()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];- Specified by:
getSubtotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The subtotalAmountMicros.
-
hasTaxAmountMicros
public boolean hasTaxAmountMicros()Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the AccountBudgetSummary tax amounts, plus taxes not associated with a specific account budget.
optional int64 tax_amount_micros = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTaxAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- Whether the taxAmountMicros field is set.
-
getTaxAmountMicros
public long getTaxAmountMicros()Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the AccountBudgetSummary tax amounts, plus taxes not associated with a specific account budget.
optional int64 tax_amount_micros = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTaxAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The taxAmountMicros.
-
hasTotalAmountMicros
public boolean hasTotalAmountMicros()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];- Specified by:
hasTotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- Whether the totalAmountMicros field is set.
-
getTotalAmountMicros
public long getTotalAmountMicros()Output only. The total amount, in micros. This equals the sum of Invoice.subtotal_amount_micros, 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];- Specified by:
getTotalAmountMicrosin interfaceInvoiceOrBuilder- Returns:
- The totalAmountMicros.
-
hasCorrectedInvoice
public boolean hasCorrectedInvoice()Output only. The resource name of the original invoice corrected, wrote off, or canceled by this invoice, if applicable. If `corrected_invoice` is set, `replaced_invoices` will not be set. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCorrectedInvoicein interfaceInvoiceOrBuilder- Returns:
- Whether the correctedInvoice field is set.
-
getCorrectedInvoice
Output only. The resource name of the original invoice corrected, wrote off, or canceled by this invoice, if applicable. If `corrected_invoice` is set, `replaced_invoices` will not be set. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCorrectedInvoicein interfaceInvoiceOrBuilder- Returns:
- The correctedInvoice.
-
getCorrectedInvoiceBytes
public com.google.protobuf.ByteString getCorrectedInvoiceBytes()Output only. The resource name of the original invoice corrected, wrote off, or canceled by this invoice, if applicable. If `corrected_invoice` is set, `replaced_invoices` will not be set. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`optional string corrected_invoice = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCorrectedInvoiceBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for correctedInvoice.
-
getReplacedInvoicesList
public com.google.protobuf.ProtocolStringList getReplacedInvoicesList()Output only. The resource name of the original invoice(s) being rebilled or replaced by this invoice, if applicable. There might be multiple replaced invoices due to invoice consolidation. The replaced invoices may not belong to the same payments account. If `replaced_invoices` is set, `corrected_invoice` will not be set. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReplacedInvoicesListin interfaceInvoiceOrBuilder- Returns:
- A list containing the replacedInvoices.
-
getReplacedInvoicesCount
public int getReplacedInvoicesCount()Output only. The resource name of the original invoice(s) being rebilled or replaced by this invoice, if applicable. There might be multiple replaced invoices due to invoice consolidation. The replaced invoices may not belong to the same payments account. If `replaced_invoices` is set, `corrected_invoice` will not be set. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReplacedInvoicesCountin interfaceInvoiceOrBuilder- Returns:
- The count of replacedInvoices.
-
getReplacedInvoices
Output only. The resource name of the original invoice(s) being rebilled or replaced by this invoice, if applicable. There might be multiple replaced invoices due to invoice consolidation. The replaced invoices may not belong to the same payments account. If `replaced_invoices` is set, `corrected_invoice` will not be set. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReplacedInvoicesin interfaceInvoiceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The replacedInvoices at the given index.
-
getReplacedInvoicesBytes
public com.google.protobuf.ByteString getReplacedInvoicesBytes(int index) Output only. The resource name of the original invoice(s) being rebilled or replaced by this invoice, if applicable. There might be multiple replaced invoices due to invoice consolidation. The replaced invoices may not belong to the same payments account. If `replaced_invoices` is set, `corrected_invoice` will not be set. Invoice resource names have the form: `customers/{customer_id}/invoices/{invoice_id}`repeated string replaced_invoices = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReplacedInvoicesBytesin interfaceInvoiceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the replacedInvoices at the given index.
-
hasPdfUrl
public boolean hasPdfUrl()Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth token to request the PDF with this URL.
optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPdfUrlin interfaceInvoiceOrBuilder- Returns:
- Whether the pdfUrl field is set.
-
getPdfUrl
Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth token to request the PDF with this URL.
optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPdfUrlin interfaceInvoiceOrBuilder- Returns:
- The pdfUrl.
-
getPdfUrlBytes
public com.google.protobuf.ByteString getPdfUrlBytes()Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth token to request the PDF with this URL.
optional string pdf_url = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPdfUrlBytesin interfaceInvoiceOrBuilder- Returns:
- The bytes for pdfUrl.
-
getAccountBudgetSummariesList
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];- Specified by:
getAccountBudgetSummariesListin interfaceInvoiceOrBuilder
-
getAccountBudgetSummariesOrBuilderList
public List<? extends Invoice.AccountBudgetSummaryOrBuilder> getAccountBudgetSummariesOrBuilderList()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];- Specified by:
getAccountBudgetSummariesOrBuilderListin interfaceInvoiceOrBuilder
-
getAccountBudgetSummariesCount
public int getAccountBudgetSummariesCount()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];- Specified by:
getAccountBudgetSummariesCountin interfaceInvoiceOrBuilder
-
getAccountBudgetSummaries
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];- Specified by:
getAccountBudgetSummariesin interfaceInvoiceOrBuilder
-
getAccountBudgetSummariesOrBuilder
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];- Specified by:
getAccountBudgetSummariesOrBuilderin interfaceInvoiceOrBuilder
-
getAccountSummariesList
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];- Specified by:
getAccountSummariesListin interfaceInvoiceOrBuilder
-
getAccountSummariesOrBuilderList
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];- Specified by:
getAccountSummariesOrBuilderListin interfaceInvoiceOrBuilder
-
getAccountSummariesCount
public int getAccountSummariesCount()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];- Specified by:
getAccountSummariesCountin interfaceInvoiceOrBuilder
-
getAccountSummaries
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];- Specified by:
getAccountSummariesin interfaceInvoiceOrBuilder
-
getAccountSummariesOrBuilder
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];- Specified by:
getAccountSummariesOrBuilderin interfaceInvoiceOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Invoice parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Invoice parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Invoice parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Invoice parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Invoice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Invoice parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Invoice parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Invoice parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Invoice parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Invoice.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-