Class Incentive.Requirement.Spend.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Incentive.Requirement.Spend.Builder>
com.google.ads.googleads.v23.services.Incentive.Requirement.Spend.Builder
All Implemented Interfaces:
Incentive.Requirement.SpendOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Incentive.Requirement.Spend

public static final class Incentive.Requirement.Spend.Builder extends com.google.protobuf.GeneratedMessage.Builder<Incentive.Requirement.Spend.Builder> implements Incentive.Requirement.SpendOrBuilder
 Spend requirements for an incentive.
 
Protobuf type google.ads.googleads.v23.services.Incentive.Requirement.Spend
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Incentive.Requirement.Spend.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.GeneratedMessage.Builder<Incentive.Requirement.Spend.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<Incentive.Requirement.Spend.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Incentive.Requirement.Spend buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Incentive.Requirement.Spend.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<Incentive.Requirement.Spend.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Incentive.Requirement.Spend.Builder>
    • mergeFrom

      public Incentive.Requirement.Spend.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<Incentive.Requirement.Spend.Builder>
      Throws:
      IOException
    • hasAwardAmount

      public boolean hasAwardAmount()
       Required. Amount in free spend that user will be granted after spending
       target amount. Denominated in the currency of the country passed in the
       get request.
       
      optional .google.type.Money award_amount = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAwardAmount in interface Incentive.Requirement.SpendOrBuilder
      Returns:
      Whether the awardAmount field is set.
    • getAwardAmount

      public com.google.type.Money getAwardAmount()
       Required. Amount in free spend that user will be granted after spending
       target amount. Denominated in the currency of the country passed in the
       get request.
       
      optional .google.type.Money award_amount = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAwardAmount in interface Incentive.Requirement.SpendOrBuilder
      Returns:
      The awardAmount.
    • setAwardAmount

      public Incentive.Requirement.Spend.Builder setAwardAmount(com.google.type.Money value)
       Required. Amount in free spend that user will be granted after spending
       target amount. Denominated in the currency of the country passed in the
       get request.
       
      optional .google.type.Money award_amount = 1 [(.google.api.field_behavior) = REQUIRED];
    • setAwardAmount

      public Incentive.Requirement.Spend.Builder setAwardAmount(com.google.type.Money.Builder builderForValue)
       Required. Amount in free spend that user will be granted after spending
       target amount. Denominated in the currency of the country passed in the
       get request.
       
      optional .google.type.Money award_amount = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeAwardAmount

      public Incentive.Requirement.Spend.Builder mergeAwardAmount(com.google.type.Money value)
       Required. Amount in free spend that user will be granted after spending
       target amount. Denominated in the currency of the country passed in the
       get request.
       
      optional .google.type.Money award_amount = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearAwardAmount

      public Incentive.Requirement.Spend.Builder clearAwardAmount()
       Required. Amount in free spend that user will be granted after spending
       target amount. Denominated in the currency of the country passed in the
       get request.
       
      optional .google.type.Money award_amount = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAwardAmountBuilder

      public com.google.type.Money.Builder getAwardAmountBuilder()
       Required. Amount in free spend that user will be granted after spending
       target amount. Denominated in the currency of the country passed in the
       get request.
       
      optional .google.type.Money award_amount = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAwardAmountOrBuilder

      public com.google.type.MoneyOrBuilder getAwardAmountOrBuilder()
       Required. Amount in free spend that user will be granted after spending
       target amount. Denominated in the currency of the country passed in the
       get request.
       
      optional .google.type.Money award_amount = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAwardAmountOrBuilder in interface Incentive.Requirement.SpendOrBuilder
    • hasRequiredAmount

      public boolean hasRequiredAmount()
       Required. Amount that user must spend to receive the award amount.
       Denominated in the currency of the country passed in the get request.
       
      optional .google.type.Money required_amount = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRequiredAmount in interface Incentive.Requirement.SpendOrBuilder
      Returns:
      Whether the requiredAmount field is set.
    • getRequiredAmount

      public com.google.type.Money getRequiredAmount()
       Required. Amount that user must spend to receive the award amount.
       Denominated in the currency of the country passed in the get request.
       
      optional .google.type.Money required_amount = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequiredAmount in interface Incentive.Requirement.SpendOrBuilder
      Returns:
      The requiredAmount.
    • setRequiredAmount

      public Incentive.Requirement.Spend.Builder setRequiredAmount(com.google.type.Money value)
       Required. Amount that user must spend to receive the award amount.
       Denominated in the currency of the country passed in the get request.
       
      optional .google.type.Money required_amount = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRequiredAmount

      public Incentive.Requirement.Spend.Builder setRequiredAmount(com.google.type.Money.Builder builderForValue)
       Required. Amount that user must spend to receive the award amount.
       Denominated in the currency of the country passed in the get request.
       
      optional .google.type.Money required_amount = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeRequiredAmount

      public Incentive.Requirement.Spend.Builder mergeRequiredAmount(com.google.type.Money value)
       Required. Amount that user must spend to receive the award amount.
       Denominated in the currency of the country passed in the get request.
       
      optional .google.type.Money required_amount = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRequiredAmount

      public Incentive.Requirement.Spend.Builder clearRequiredAmount()
       Required. Amount that user must spend to receive the award amount.
       Denominated in the currency of the country passed in the get request.
       
      optional .google.type.Money required_amount = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequiredAmountBuilder

      public com.google.type.Money.Builder getRequiredAmountBuilder()
       Required. Amount that user must spend to receive the award amount.
       Denominated in the currency of the country passed in the get request.
       
      optional .google.type.Money required_amount = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequiredAmountOrBuilder

      public com.google.type.MoneyOrBuilder getRequiredAmountOrBuilder()
       Required. Amount that user must spend to receive the award amount.
       Denominated in the currency of the country passed in the get request.
       
      optional .google.type.Money required_amount = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequiredAmountOrBuilder in interface Incentive.Requirement.SpendOrBuilder