Class Invoice.CampaignSummary.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Invoice.CampaignSummary.Builder>
com.google.ads.googleads.v23.resources.Invoice.CampaignSummary.Builder
All Implemented Interfaces:
Invoice.CampaignSummaryOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Invoice.CampaignSummary

public static final class Invoice.CampaignSummary.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Invoice.CampaignSummary.Builder> implements Invoice.CampaignSummaryOrBuilder
 Represents campaign level billable cost information associated with an
 account budget.
 
Protobuf type google.ads.googleads.v23.resources.Invoice.CampaignSummary
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Invoice.CampaignSummary.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Invoice.CampaignSummary.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Invoice.CampaignSummary.Builder>
    • getDefaultInstanceForType

      public Invoice.CampaignSummary getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Invoice.CampaignSummary.Builder>
    • setField

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

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

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

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

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

      public Invoice.CampaignSummary.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Invoice.CampaignSummary.Builder>
    • mergeFrom

    • isInitialized

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

      public Invoice.CampaignSummary.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Invoice.CampaignSummary.Builder>
      Throws:
      IOException
    • hasCampaignDescription

      public boolean hasCampaignDescription()
       Output only. The description of the campaign. This is generally the same
       as the campaign name, but may differ.
       
      optional string campaign_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCampaignDescription in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      Whether the campaignDescription field is set.
    • getCampaignDescription

      public String getCampaignDescription()
       Output only. The description of the campaign. This is generally the same
       as the campaign name, but may differ.
       
      optional string campaign_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCampaignDescription in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      The campaignDescription.
    • getCampaignDescriptionBytes

      public com.google.protobuf.ByteString getCampaignDescriptionBytes()
       Output only. The description of the campaign. This is generally the same
       as the campaign name, but may differ.
       
      optional string campaign_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCampaignDescriptionBytes in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      The bytes for campaignDescription.
    • setCampaignDescription

      public Invoice.CampaignSummary.Builder setCampaignDescription(String value)
       Output only. The description of the campaign. This is generally the same
       as the campaign name, but may differ.
       
      optional string campaign_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The campaignDescription to set.
      Returns:
      This builder for chaining.
    • clearCampaignDescription

      public Invoice.CampaignSummary.Builder clearCampaignDescription()
       Output only. The description of the campaign. This is generally the same
       as the campaign name, but may differ.
       
      optional string campaign_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCampaignDescriptionBytes

      public Invoice.CampaignSummary.Builder setCampaignDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. The description of the campaign. This is generally the same
       as the campaign name, but may differ.
       
      optional string campaign_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for campaignDescription to set.
      Returns:
      This builder for chaining.
    • hasQuantity

      public boolean hasQuantity()
       Output only. The quantity served for the given unit of measure.
       
      optional int64 quantity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasQuantity in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      Whether the quantity field is set.
    • getQuantity

      public long getQuantity()
       Output only. The quantity served for the given unit of measure.
       
      optional int64 quantity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getQuantity in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      The quantity.
    • setQuantity

      public Invoice.CampaignSummary.Builder setQuantity(long value)
       Output only. The quantity served for the given unit of measure.
       
      optional int64 quantity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The quantity to set.
      Returns:
      This builder for chaining.
    • clearQuantity

      public Invoice.CampaignSummary.Builder clearQuantity()
       Output only. The quantity served for the given unit of measure.
       
      optional int64 quantity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasUnitOfMeasure

      public boolean hasUnitOfMeasure()
       Output only. The unit of measure for the quantity served.
       
      optional .google.ads.googleads.v23.enums.UnitOfMeasureEnum.UnitOfMeasure unit_of_measure = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUnitOfMeasure in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      Whether the unitOfMeasure field is set.
    • getUnitOfMeasureValue

      public int getUnitOfMeasureValue()
       Output only. The unit of measure for the quantity served.
       
      optional .google.ads.googleads.v23.enums.UnitOfMeasureEnum.UnitOfMeasure unit_of_measure = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUnitOfMeasureValue in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      The enum numeric value on the wire for unitOfMeasure.
    • setUnitOfMeasureValue

      public Invoice.CampaignSummary.Builder setUnitOfMeasureValue(int value)
       Output only. The unit of measure for the quantity served.
       
      optional .google.ads.googleads.v23.enums.UnitOfMeasureEnum.UnitOfMeasure unit_of_measure = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for unitOfMeasure to set.
      Returns:
      This builder for chaining.
    • getUnitOfMeasure

      public UnitOfMeasureEnum.UnitOfMeasure getUnitOfMeasure()
       Output only. The unit of measure for the quantity served.
       
      optional .google.ads.googleads.v23.enums.UnitOfMeasureEnum.UnitOfMeasure unit_of_measure = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUnitOfMeasure in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      The unitOfMeasure.
    • setUnitOfMeasure

       Output only. The unit of measure for the quantity served.
       
      optional .google.ads.googleads.v23.enums.UnitOfMeasureEnum.UnitOfMeasure unit_of_measure = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The unitOfMeasure to set.
      Returns:
      This builder for chaining.
    • clearUnitOfMeasure

      public Invoice.CampaignSummary.Builder clearUnitOfMeasure()
       Output only. The unit of measure for the quantity served.
       
      optional .google.ads.googleads.v23.enums.UnitOfMeasureEnum.UnitOfMeasure unit_of_measure = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasAmountMicros

      public boolean hasAmountMicros()
       Output only. The amount attributable to this campaign for the given unit
       of measure during the service period, in micros. The currency code for
       this amount is the same as the Invoice.currency_code.
       
      optional int64 amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAmountMicros in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      Whether the amountMicros field is set.
    • getAmountMicros

      public long getAmountMicros()
       Output only. The amount attributable to this campaign for the given unit
       of measure during the service period, in micros. The currency code for
       this amount is the same as the Invoice.currency_code.
       
      optional int64 amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAmountMicros in interface Invoice.CampaignSummaryOrBuilder
      Returns:
      The amountMicros.
    • setAmountMicros

      public Invoice.CampaignSummary.Builder setAmountMicros(long value)
       Output only. The amount attributable to this campaign for the given unit
       of measure during the service period, in micros. The currency code for
       this amount is the same as the Invoice.currency_code.
       
      optional int64 amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The amountMicros to set.
      Returns:
      This builder for chaining.
    • clearAmountMicros

      public Invoice.CampaignSummary.Builder clearAmountMicros()
       Output only. The amount attributable to this campaign for the given unit
       of measure during the service period, in micros. The currency code for
       this amount is the same as the Invoice.currency_code.
       
      optional int64 amount_micros = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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