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

public static final class FetchIncentiveRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FetchIncentiveRequest.Builder> implements FetchIncentiveRequestOrBuilder
 Request for getting the acquisition incentive for a user.
 
Protobuf type google.ads.googleads.v23.services.FetchIncentiveRequest
  • 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<FetchIncentiveRequest.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<FetchIncentiveRequest.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<FetchIncentiveRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public FetchIncentiveRequest.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<FetchIncentiveRequest.Builder>
      Throws:
      IOException
    • hasLanguageCode

      public boolean hasLanguageCode()
       Optional. User's language code.
       If not provided, the server will default to "en".
       Possible language codes:
       https://developers.google.com/google-ads/api/data/codes-formats#languages
       
      optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLanguageCode in interface FetchIncentiveRequestOrBuilder
      Returns:
      Whether the languageCode field is set.
    • getLanguageCode

      public String getLanguageCode()
       Optional. User's language code.
       If not provided, the server will default to "en".
       Possible language codes:
       https://developers.google.com/google-ads/api/data/codes-formats#languages
       
      optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface FetchIncentiveRequestOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. User's language code.
       If not provided, the server will default to "en".
       Possible language codes:
       https://developers.google.com/google-ads/api/data/codes-formats#languages
       
      optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface FetchIncentiveRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public FetchIncentiveRequest.Builder setLanguageCode(String value)
       Optional. User's language code.
       If not provided, the server will default to "en".
       Possible language codes:
       https://developers.google.com/google-ads/api/data/codes-formats#languages
       
      optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public FetchIncentiveRequest.Builder clearLanguageCode()
       Optional. User's language code.
       If not provided, the server will default to "en".
       Possible language codes:
       https://developers.google.com/google-ads/api/data/codes-formats#languages
       
      optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public FetchIncentiveRequest.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Optional. User's language code.
       If not provided, the server will default to "en".
       Possible language codes:
       https://developers.google.com/google-ads/api/data/codes-formats#languages
       
      optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • hasCountryCode

      public boolean hasCountryCode()
       Optional. User's country code.
       If not provided, the server will default to "US".
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCountryCode in interface FetchIncentiveRequestOrBuilder
      Returns:
      Whether the countryCode field is set.
    • getCountryCode

      public String getCountryCode()
       Optional. User's country code.
       If not provided, the server will default to "US".
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCountryCode in interface FetchIncentiveRequestOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       Optional. User's country code.
       If not provided, the server will default to "US".
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCountryCodeBytes in interface FetchIncentiveRequestOrBuilder
      Returns:
      The bytes for countryCode.
    • setCountryCode

      public FetchIncentiveRequest.Builder setCountryCode(String value)
       Optional. User's country code.
       If not provided, the server will default to "US".
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

      public FetchIncentiveRequest.Builder clearCountryCode()
       Optional. User's country code.
       If not provided, the server will default to "US".
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public FetchIncentiveRequest.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       Optional. User's country code.
       If not provided, the server will default to "US".
       Possible country codes:
       https://developers.google.com/google-ads/api/data/codes-formats#country_codes
       
      optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • hasEmail

      public boolean hasEmail()
       Optional. Email of the user that the requested incentive is meant for.
       Will be used for channel partners who do NOT use OAuth to authenticate on
       behalf of user.
       
      optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEmail in interface FetchIncentiveRequestOrBuilder
      Returns:
      Whether the email field is set.
    • getEmail

      public String getEmail()
       Optional. Email of the user that the requested incentive is meant for.
       Will be used for channel partners who do NOT use OAuth to authenticate on
       behalf of user.
       
      optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEmail in interface FetchIncentiveRequestOrBuilder
      Returns:
      The email.
    • getEmailBytes

      public com.google.protobuf.ByteString getEmailBytes()
       Optional. Email of the user that the requested incentive is meant for.
       Will be used for channel partners who do NOT use OAuth to authenticate on
       behalf of user.
       
      optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEmailBytes in interface FetchIncentiveRequestOrBuilder
      Returns:
      The bytes for email.
    • setEmail

      public FetchIncentiveRequest.Builder setEmail(String value)
       Optional. Email of the user that the requested incentive is meant for.
       Will be used for channel partners who do NOT use OAuth to authenticate on
       behalf of user.
       
      optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The email to set.
      Returns:
      This builder for chaining.
    • clearEmail

      public FetchIncentiveRequest.Builder clearEmail()
       Optional. Email of the user that the requested incentive is meant for.
       Will be used for channel partners who do NOT use OAuth to authenticate on
       behalf of user.
       
      optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEmailBytes

      public FetchIncentiveRequest.Builder setEmailBytes(com.google.protobuf.ByteString value)
       Optional. Email of the user that the requested incentive is meant for.
       Will be used for channel partners who do NOT use OAuth to authenticate on
       behalf of user.
       
      optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for email to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Optional. The type of incentive to get.
       Defaults to ACQUISITION.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasType in interface FetchIncentiveRequestOrBuilder
      Returns:
      Whether the type field is set.
    • getTypeValue

      public int getTypeValue()
       Optional. The type of incentive to get.
       Defaults to ACQUISITION.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTypeValue in interface FetchIncentiveRequestOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

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

       Optional. The type of incentive to get.
       Defaults to ACQUISITION.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getType in interface FetchIncentiveRequestOrBuilder
      Returns:
      The type.
    • setType

       Optional. The type of incentive to get.
       Defaults to ACQUISITION.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public FetchIncentiveRequest.Builder clearType()
       Optional. The type of incentive to get.
       Defaults to ACQUISITION.
       
      optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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