Class Invoice.AdjustmentSummary.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.AdjustmentSummary.Builder>
com.google.ads.googleads.v23.resources.Invoice.AdjustmentSummary.Builder
All Implemented Interfaces:
Invoice.AdjustmentSummaryOrBuilder, 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.AdjustmentSummary

public static final class Invoice.AdjustmentSummary.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Invoice.AdjustmentSummary.Builder> implements Invoice.AdjustmentSummaryOrBuilder
 Represents adjustment information associated with an account.
 
Protobuf type google.ads.googleads.v23.resources.Invoice.AdjustmentSummary
  • 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.AdjustmentSummary.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.AdjustmentSummary.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.AdjustmentSummary.Builder>
    • getDefaultInstanceForType

      public Invoice.AdjustmentSummary 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.AdjustmentSummary build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

      public Invoice.AdjustmentSummary.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.AdjustmentSummary.Builder>
      Throws:
      IOException
    • hasAdjustmentDescription

      public boolean hasAdjustmentDescription()
       Output only. The description of the adjustment. Example: Incentive
       Adjustment, discount.
       
      optional string adjustment_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAdjustmentDescription in interface Invoice.AdjustmentSummaryOrBuilder
      Returns:
      Whether the adjustmentDescription field is set.
    • getAdjustmentDescription

      public String getAdjustmentDescription()
       Output only. The description of the adjustment. Example: Incentive
       Adjustment, discount.
       
      optional string adjustment_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdjustmentDescription in interface Invoice.AdjustmentSummaryOrBuilder
      Returns:
      The adjustmentDescription.
    • getAdjustmentDescriptionBytes

      public com.google.protobuf.ByteString getAdjustmentDescriptionBytes()
       Output only. The description of the adjustment. Example: Incentive
       Adjustment, discount.
       
      optional string adjustment_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdjustmentDescriptionBytes in interface Invoice.AdjustmentSummaryOrBuilder
      Returns:
      The bytes for adjustmentDescription.
    • setAdjustmentDescription

      public Invoice.AdjustmentSummary.Builder setAdjustmentDescription(String value)
       Output only. The description of the adjustment. Example: Incentive
       Adjustment, discount.
       
      optional string adjustment_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The adjustmentDescription to set.
      Returns:
      This builder for chaining.
    • clearAdjustmentDescription

      public Invoice.AdjustmentSummary.Builder clearAdjustmentDescription()
       Output only. The description of the adjustment. Example: Incentive
       Adjustment, discount.
       
      optional string adjustment_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAdjustmentDescriptionBytes

      public Invoice.AdjustmentSummary.Builder setAdjustmentDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. The description of the adjustment. Example: Incentive
       Adjustment, discount.
       
      optional string adjustment_description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for adjustmentDescription to set.
      Returns:
      This builder for chaining.
    • hasAmountMicros

      public boolean hasAmountMicros()
       Output only. The amount of the adjustment, in micros. The currency code
       for this amount is the same as the Invoice.currency_code.
       
      optional int64 amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAmountMicros in interface Invoice.AdjustmentSummaryOrBuilder
      Returns:
      Whether the amountMicros field is set.
    • getAmountMicros

      public long getAmountMicros()
       Output only. The amount of the adjustment, in micros. The currency code
       for this amount is the same as the Invoice.currency_code.
       
      optional int64 amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAmountMicros in interface Invoice.AdjustmentSummaryOrBuilder
      Returns:
      The amountMicros.
    • setAmountMicros

      public Invoice.AdjustmentSummary.Builder setAmountMicros(long value)
       Output only. The amount of the adjustment, in micros. The currency code
       for this amount is the same as the Invoice.currency_code.
       
      optional int64 amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The amountMicros to set.
      Returns:
      This builder for chaining.
    • clearAmountMicros

      public Invoice.AdjustmentSummary.Builder clearAmountMicros()
       Output only. The amount of the adjustment, in micros. The currency code
       for this amount is the same as the Invoice.currency_code.
       
      optional int64 amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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