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

public static final class IncentiveOffer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<IncentiveOffer.Builder> implements IncentiveOfferOrBuilder
 An acquisition incentive offer for a user. An offer means how the user is
 treated. An offer can have no incentive or multiple incentives.
 
Protobuf type google.ads.googleads.v23.services.IncentiveOffer
  • 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<IncentiveOffer.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

      public IncentiveOffer.Builder mergeFrom(IncentiveOffer 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,IncentiveOffer.Builder>
    • mergeFrom

      public IncentiveOffer.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<IncentiveOffer.Builder>
      Throws:
      IOException
    • getIncentiveDetailsCase

      public IncentiveOffer.IncentiveDetailsCase getIncentiveDetailsCase()
      Specified by:
      getIncentiveDetailsCase in interface IncentiveOfferOrBuilder
    • clearIncentiveDetails

      public IncentiveOffer.Builder clearIncentiveDetails()
    • hasType

      public boolean hasType()
       Required. The type of this acquisition incentive offer.
       
      optional .google.ads.googleads.v23.services.IncentiveOffer.OfferType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasType in interface IncentiveOfferOrBuilder
      Returns:
      Whether the type field is set.
    • getTypeValue

      public int getTypeValue()
       Required. The type of this acquisition incentive offer.
       
      optional .google.ads.googleads.v23.services.IncentiveOffer.OfferType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface IncentiveOfferOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public IncentiveOffer.Builder setTypeValue(int value)
       Required. The type of this acquisition incentive offer.
       
      optional .google.ads.googleads.v23.services.IncentiveOffer.OfferType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public IncentiveOffer.OfferType getType()
       Required. The type of this acquisition incentive offer.
       
      optional .google.ads.googleads.v23.services.IncentiveOffer.OfferType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface IncentiveOfferOrBuilder
      Returns:
      The type.
    • setType

       Required. The type of this acquisition incentive offer.
       
      optional .google.ads.googleads.v23.services.IncentiveOffer.OfferType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public IncentiveOffer.Builder clearType()
       Required. The type of this acquisition incentive offer.
       
      optional .google.ads.googleads.v23.services.IncentiveOffer.OfferType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasConsolidatedTermsAndConditionsUrl

      public boolean hasConsolidatedTermsAndConditionsUrl()
       Optional. The URL of the terms and conditions for the incentive offer.
       
      optional string consolidated_terms_and_conditions_url = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasConsolidatedTermsAndConditionsUrl in interface IncentiveOfferOrBuilder
      Returns:
      Whether the consolidatedTermsAndConditionsUrl field is set.
    • getConsolidatedTermsAndConditionsUrl

      public String getConsolidatedTermsAndConditionsUrl()
       Optional. The URL of the terms and conditions for the incentive offer.
       
      optional string consolidated_terms_and_conditions_url = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConsolidatedTermsAndConditionsUrl in interface IncentiveOfferOrBuilder
      Returns:
      The consolidatedTermsAndConditionsUrl.
    • getConsolidatedTermsAndConditionsUrlBytes

      public com.google.protobuf.ByteString getConsolidatedTermsAndConditionsUrlBytes()
       Optional. The URL of the terms and conditions for the incentive offer.
       
      optional string consolidated_terms_and_conditions_url = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConsolidatedTermsAndConditionsUrlBytes in interface IncentiveOfferOrBuilder
      Returns:
      The bytes for consolidatedTermsAndConditionsUrl.
    • setConsolidatedTermsAndConditionsUrl

      public IncentiveOffer.Builder setConsolidatedTermsAndConditionsUrl(String value)
       Optional. The URL of the terms and conditions for the incentive offer.
       
      optional string consolidated_terms_and_conditions_url = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The consolidatedTermsAndConditionsUrl to set.
      Returns:
      This builder for chaining.
    • clearConsolidatedTermsAndConditionsUrl

      public IncentiveOffer.Builder clearConsolidatedTermsAndConditionsUrl()
       Optional. The URL of the terms and conditions for the incentive offer.
       
      optional string consolidated_terms_and_conditions_url = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setConsolidatedTermsAndConditionsUrlBytes

      public IncentiveOffer.Builder setConsolidatedTermsAndConditionsUrlBytes(com.google.protobuf.ByteString value)
       Optional. The URL of the terms and conditions for the incentive offer.
       
      optional string consolidated_terms_and_conditions_url = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for consolidatedTermsAndConditionsUrl to set.
      Returns:
      This builder for chaining.
    • hasCyoIncentives

      public boolean hasCyoIncentives()
       CYO incentives. Set when type is CYO_INCENTIVE.
       
      .google.ads.googleads.v23.services.CyoIncentives cyo_incentives = 3;
      Specified by:
      hasCyoIncentives in interface IncentiveOfferOrBuilder
      Returns:
      Whether the cyoIncentives field is set.
    • getCyoIncentives

      public CyoIncentives getCyoIncentives()
       CYO incentives. Set when type is CYO_INCENTIVE.
       
      .google.ads.googleads.v23.services.CyoIncentives cyo_incentives = 3;
      Specified by:
      getCyoIncentives in interface IncentiveOfferOrBuilder
      Returns:
      The cyoIncentives.
    • setCyoIncentives

      public IncentiveOffer.Builder setCyoIncentives(CyoIncentives value)
       CYO incentives. Set when type is CYO_INCENTIVE.
       
      .google.ads.googleads.v23.services.CyoIncentives cyo_incentives = 3;
    • setCyoIncentives

      public IncentiveOffer.Builder setCyoIncentives(CyoIncentives.Builder builderForValue)
       CYO incentives. Set when type is CYO_INCENTIVE.
       
      .google.ads.googleads.v23.services.CyoIncentives cyo_incentives = 3;
    • mergeCyoIncentives

      public IncentiveOffer.Builder mergeCyoIncentives(CyoIncentives value)
       CYO incentives. Set when type is CYO_INCENTIVE.
       
      .google.ads.googleads.v23.services.CyoIncentives cyo_incentives = 3;
    • clearCyoIncentives

      public IncentiveOffer.Builder clearCyoIncentives()
       CYO incentives. Set when type is CYO_INCENTIVE.
       
      .google.ads.googleads.v23.services.CyoIncentives cyo_incentives = 3;
    • getCyoIncentivesBuilder

      public CyoIncentives.Builder getCyoIncentivesBuilder()
       CYO incentives. Set when type is CYO_INCENTIVE.
       
      .google.ads.googleads.v23.services.CyoIncentives cyo_incentives = 3;
    • getCyoIncentivesOrBuilder

      public CyoIncentivesOrBuilder getCyoIncentivesOrBuilder()
       CYO incentives. Set when type is CYO_INCENTIVE.
       
      .google.ads.googleads.v23.services.CyoIncentives cyo_incentives = 3;
      Specified by:
      getCyoIncentivesOrBuilder in interface IncentiveOfferOrBuilder
    • setUnknownFields

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

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