Class FetchIncentiveRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FetchIncentiveRequest.Builder>
com.google.ads.googleads.v25.services.FetchIncentiveRequest.Builder
- All Implemented Interfaces:
FetchIncentiveRequestOrBuilder,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.GeneratedMessage.Builder<FetchIncentiveRequest.Builder>
implements FetchIncentiveRequestOrBuilder
Request for getting the acquisition incentive for a user.Protobuf type
google.ads.googleads.v25.services.FetchIncentiveRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail()Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanhasEmail()Optional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FetchIncentiveRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCountryCode(String value) Optional.setCountryCodeBytes(com.google.protobuf.ByteString value) Optional.Optional.setEmailBytes(com.google.protobuf.ByteString value) Optional.Optional.setIncentiveTypeValue(int value) Optional.setLanguageCode(String value) Optional.setLanguageCodeBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FetchIncentiveRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FetchIncentiveRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FetchIncentiveRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FetchIncentiveRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FetchIncentiveRequest.Builder>
-
mergeFrom
public FetchIncentiveRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasLanguageCodein interfaceFetchIncentiveRequestOrBuilder- Returns:
- Whether the languageCode field is set.
-
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:
getLanguageCodein interfaceFetchIncentiveRequestOrBuilder- 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:
getLanguageCodeBytesin interfaceFetchIncentiveRequestOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
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
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
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:
hasCountryCodein interfaceFetchIncentiveRequestOrBuilder- Returns:
- Whether the countryCode field is set.
-
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:
getCountryCodein interfaceFetchIncentiveRequestOrBuilder- 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:
getCountryCodeBytesin interfaceFetchIncentiveRequestOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
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
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
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:
hasEmailin interfaceFetchIncentiveRequestOrBuilder- Returns:
- Whether the email field is set.
-
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:
getEmailin interfaceFetchIncentiveRequestOrBuilder- 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:
getEmailBytesin interfaceFetchIncentiveRequestOrBuilder- Returns:
- The bytes for email.
-
setEmail
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
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
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.
-
hasIncentiveType
public boolean hasIncentiveType()Optional. The type of incentive to get. Defaults to ACQUISITION.
optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIncentiveTypein interfaceFetchIncentiveRequestOrBuilder- Returns:
- Whether the incentiveType field is set.
-
getIncentiveTypeValue
public int getIncentiveTypeValue()Optional. The type of incentive to get. Defaults to ACQUISITION.
optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIncentiveTypeValuein interfaceFetchIncentiveRequestOrBuilder- Returns:
- The enum numeric value on the wire for incentiveType.
-
setIncentiveTypeValue
Optional. The type of incentive to get. Defaults to ACQUISITION.
optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for incentiveType to set.- Returns:
- This builder for chaining.
-
getIncentiveType
Optional. The type of incentive to get. Defaults to ACQUISITION.
optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIncentiveTypein interfaceFetchIncentiveRequestOrBuilder- Returns:
- The incentiveType.
-
setIncentiveType
Optional. The type of incentive to get. Defaults to ACQUISITION.
optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The incentiveType to set.- Returns:
- This builder for chaining.
-
clearIncentiveType
Optional. The type of incentive to get. Defaults to ACQUISITION.
optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-