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

public static final class ApplyIncentiveRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder> implements ApplyIncentiveRequestOrBuilder
 Request message for applying an incentive.
 
Protobuf type google.ads.googleads.v23.services.ApplyIncentiveRequest
  • 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<ApplyIncentiveRequest.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<ApplyIncentiveRequest.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<ApplyIncentiveRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public ApplyIncentiveRequest.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<ApplyIncentiveRequest.Builder>
      Throws:
      IOException
    • hasSelectedIncentiveId

      public boolean hasSelectedIncentiveId()
       The incentive ID of this incentive. This is used to identify which
       incentive is selected by the user in the CYO flow.
       
      optional int64 selected_incentive_id = 1;
      Specified by:
      hasSelectedIncentiveId in interface ApplyIncentiveRequestOrBuilder
      Returns:
      Whether the selectedIncentiveId field is set.
    • getSelectedIncentiveId

      public long getSelectedIncentiveId()
       The incentive ID of this incentive. This is used to identify which
       incentive is selected by the user in the CYO flow.
       
      optional int64 selected_incentive_id = 1;
      Specified by:
      getSelectedIncentiveId in interface ApplyIncentiveRequestOrBuilder
      Returns:
      The selectedIncentiveId.
    • setSelectedIncentiveId

      public ApplyIncentiveRequest.Builder setSelectedIncentiveId(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 selected_incentive_id = 1;
      Parameters:
      value - The selectedIncentiveId to set.
      Returns:
      This builder for chaining.
    • clearSelectedIncentiveId

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

      public boolean hasCustomerId()
       The customer ID of the account that the incentive is being applied to.
       
      optional string customer_id = 2;
      Specified by:
      hasCustomerId in interface ApplyIncentiveRequestOrBuilder
      Returns:
      Whether the customerId field is set.
    • getCustomerId

      public String getCustomerId()
       The customer ID of the account that the incentive is being applied to.
       
      optional string customer_id = 2;
      Specified by:
      getCustomerId in interface ApplyIncentiveRequestOrBuilder
      Returns:
      The customerId.
    • getCustomerIdBytes

      public com.google.protobuf.ByteString getCustomerIdBytes()
       The customer ID of the account that the incentive is being applied to.
       
      optional string customer_id = 2;
      Specified by:
      getCustomerIdBytes in interface ApplyIncentiveRequestOrBuilder
      Returns:
      The bytes for customerId.
    • setCustomerId

      public ApplyIncentiveRequest.Builder setCustomerId(String value)
       The customer ID of the account that the incentive is being applied to.
       
      optional string customer_id = 2;
      Parameters:
      value - The customerId to set.
      Returns:
      This builder for chaining.
    • clearCustomerId

      public ApplyIncentiveRequest.Builder clearCustomerId()
       The customer ID of the account that the incentive is being applied to.
       
      optional string customer_id = 2;
      Returns:
      This builder for chaining.
    • setCustomerIdBytes

      public ApplyIncentiveRequest.Builder setCustomerIdBytes(com.google.protobuf.ByteString value)
       The customer ID of the account that the incentive is being applied to.
       
      optional string customer_id = 2;
      Parameters:
      value - The bytes for customerId to set.
      Returns:
      This builder for chaining.
    • hasCountryCode

      public boolean hasCountryCode()
       Required. User's country code.
       Required. This field must be equal to the Google Ads account's billing
       country. Incentive eligibility, terms of service, and reward values are
       often country-specific. This country code is used to ensure the selected
       incentive is applicable to the user.
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCountryCode in interface ApplyIncentiveRequestOrBuilder
      Returns:
      Whether the countryCode field is set.
    • getCountryCode

      public String getCountryCode()
       Required. User's country code.
       Required. This field must be equal to the Google Ads account's billing
       country. Incentive eligibility, terms of service, and reward values are
       often country-specific. This country code is used to ensure the selected
       incentive is applicable to the user.
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCountryCode in interface ApplyIncentiveRequestOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       Required. User's country code.
       Required. This field must be equal to the Google Ads account's billing
       country. Incentive eligibility, terms of service, and reward values are
       often country-specific. This country code is used to ensure the selected
       incentive is applicable to the user.
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCountryCodeBytes in interface ApplyIncentiveRequestOrBuilder
      Returns:
      The bytes for countryCode.
    • setCountryCode

      public ApplyIncentiveRequest.Builder setCountryCode(String value)
       Required. User's country code.
       Required. This field must be equal to the Google Ads account's billing
       country. Incentive eligibility, terms of service, and reward values are
       often country-specific. This country code is used to ensure the selected
       incentive is applicable to the user.
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

      public ApplyIncentiveRequest.Builder clearCountryCode()
       Required. User's country code.
       Required. This field must be equal to the Google Ads account's billing
       country. Incentive eligibility, terms of service, and reward values are
       often country-specific. This country code is used to ensure the selected
       incentive is applicable to the user.
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public ApplyIncentiveRequest.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       Required. User's country code.
       Required. This field must be equal to the Google Ads account's billing
       country. Incentive eligibility, terms of service, and reward values are
       often country-specific. This country code is used to ensure the selected
       incentive is applicable to the user.
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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