Class Incentive.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<Incentive.Builder>
com.google.ads.googleads.v23.services.Incentive.Builder
All Implemented Interfaces:
IncentiveOrBuilder, 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:
Incentive

public static final class Incentive.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder> implements IncentiveOrBuilder
 An incentive that a user can claim for their account.
 
Protobuf type google.ads.googleads.v23.services.Incentive
  • 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<Incentive.Builder>
    • clear

      public Incentive.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<Incentive.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.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public Incentive.Builder mergeFrom(Incentive other)
    • 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,Incentive.Builder>
    • mergeFrom

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

      public boolean hasIncentiveId()
       The incentive ID of this incentive. This is used to identify which
       incentive is selected by the user in the CYO flow.
       
      optional int64 incentive_id = 1;
      Specified by:
      hasIncentiveId in interface IncentiveOrBuilder
      Returns:
      Whether the incentiveId field is set.
    • getIncentiveId

      public long getIncentiveId()
       The incentive ID of this incentive. This is used to identify which
       incentive is selected by the user in the CYO flow.
       
      optional int64 incentive_id = 1;
      Specified by:
      getIncentiveId in interface IncentiveOrBuilder
      Returns:
      The incentiveId.
    • setIncentiveId

      public Incentive.Builder setIncentiveId(long value)
       The incentive ID of this incentive. This is used to identify which
       incentive is selected by the user in the CYO flow.
       
      optional int64 incentive_id = 1;
      Parameters:
      value - The incentiveId to set.
      Returns:
      This builder for chaining.
    • clearIncentiveId

      public Incentive.Builder clearIncentiveId()
       The incentive ID of this incentive. This is used to identify which
       incentive is selected by the user in the CYO flow.
       
      optional int64 incentive_id = 1;
      Returns:
      This builder for chaining.
    • hasRequirement

      public boolean hasRequirement()
       The requirement for this incentive.
       
      optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;
      Specified by:
      hasRequirement in interface IncentiveOrBuilder
      Returns:
      Whether the requirement field is set.
    • getRequirement

      public Incentive.Requirement getRequirement()
       The requirement for this incentive.
       
      optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;
      Specified by:
      getRequirement in interface IncentiveOrBuilder
      Returns:
      The requirement.
    • setRequirement

      public Incentive.Builder setRequirement(Incentive.Requirement value)
       The requirement for this incentive.
       
      optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;
    • setRequirement

      public Incentive.Builder setRequirement(Incentive.Requirement.Builder builderForValue)
       The requirement for this incentive.
       
      optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;
    • mergeRequirement

      public Incentive.Builder mergeRequirement(Incentive.Requirement value)
       The requirement for this incentive.
       
      optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;
    • clearRequirement

      public Incentive.Builder clearRequirement()
       The requirement for this incentive.
       
      optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;
    • getRequirementBuilder

      public Incentive.Requirement.Builder getRequirementBuilder()
       The requirement for this incentive.
       
      optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;
    • getRequirementOrBuilder

      public Incentive.RequirementOrBuilder getRequirementOrBuilder()
       The requirement for this incentive.
       
      optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;
      Specified by:
      getRequirementOrBuilder in interface IncentiveOrBuilder
    • hasIncentiveTermsAndConditionsUrl

      public boolean hasIncentiveTermsAndConditionsUrl()
       The URL of the terms and conditions for THIS incentive offer ONLY.
      
       This is different from the terms_and_conditions_url field in
       AcquisitionIncentiveOffer which is a combination of all the Incentive
       offers in a CYO offer.
       
      optional string incentive_terms_and_conditions_url = 3;
      Specified by:
      hasIncentiveTermsAndConditionsUrl in interface IncentiveOrBuilder
      Returns:
      Whether the incentiveTermsAndConditionsUrl field is set.
    • getIncentiveTermsAndConditionsUrl

      public String getIncentiveTermsAndConditionsUrl()
       The URL of the terms and conditions for THIS incentive offer ONLY.
      
       This is different from the terms_and_conditions_url field in
       AcquisitionIncentiveOffer which is a combination of all the Incentive
       offers in a CYO offer.
       
      optional string incentive_terms_and_conditions_url = 3;
      Specified by:
      getIncentiveTermsAndConditionsUrl in interface IncentiveOrBuilder
      Returns:
      The incentiveTermsAndConditionsUrl.
    • getIncentiveTermsAndConditionsUrlBytes

      public com.google.protobuf.ByteString getIncentiveTermsAndConditionsUrlBytes()
       The URL of the terms and conditions for THIS incentive offer ONLY.
      
       This is different from the terms_and_conditions_url field in
       AcquisitionIncentiveOffer which is a combination of all the Incentive
       offers in a CYO offer.
       
      optional string incentive_terms_and_conditions_url = 3;
      Specified by:
      getIncentiveTermsAndConditionsUrlBytes in interface IncentiveOrBuilder
      Returns:
      The bytes for incentiveTermsAndConditionsUrl.
    • setIncentiveTermsAndConditionsUrl

      public Incentive.Builder setIncentiveTermsAndConditionsUrl(String value)
       The URL of the terms and conditions for THIS incentive offer ONLY.
      
       This is different from the terms_and_conditions_url field in
       AcquisitionIncentiveOffer which is a combination of all the Incentive
       offers in a CYO offer.
       
      optional string incentive_terms_and_conditions_url = 3;
      Parameters:
      value - The incentiveTermsAndConditionsUrl to set.
      Returns:
      This builder for chaining.
    • clearIncentiveTermsAndConditionsUrl

      public Incentive.Builder clearIncentiveTermsAndConditionsUrl()
       The URL of the terms and conditions for THIS incentive offer ONLY.
      
       This is different from the terms_and_conditions_url field in
       AcquisitionIncentiveOffer which is a combination of all the Incentive
       offers in a CYO offer.
       
      optional string incentive_terms_and_conditions_url = 3;
      Returns:
      This builder for chaining.
    • setIncentiveTermsAndConditionsUrlBytes

      public Incentive.Builder setIncentiveTermsAndConditionsUrlBytes(com.google.protobuf.ByteString value)
       The URL of the terms and conditions for THIS incentive offer ONLY.
      
       This is different from the terms_and_conditions_url field in
       AcquisitionIncentiveOffer which is a combination of all the Incentive
       offers in a CYO offer.
       
      optional string incentive_terms_and_conditions_url = 3;
      Parameters:
      value - The bytes for incentiveTermsAndConditionsUrl to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       The type of the incentive.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;
      Specified by:
      hasType in interface IncentiveOrBuilder
      Returns:
      Whether the type field is set.
    • getTypeValue

      public int getTypeValue()
       The type of the incentive.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;
      Specified by:
      getTypeValue in interface IncentiveOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Incentive.Builder setTypeValue(int value)
       The type of the incentive.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       The type of the incentive.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;
      Specified by:
      getType in interface IncentiveOrBuilder
      Returns:
      The type.
    • setType

       The type of the incentive.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Incentive.Builder clearType()
       The type of the incentive.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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