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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Required.The customer ID of the account that the incentive is being applied to.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The incentive ID of this incentive.clone()Required.com.google.protobuf.ByteStringRequired.The customer ID of the account that the incentive is being applied to.com.google.protobuf.ByteStringThe customer ID of the account that the incentive is being applied to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe incentive ID of this incentive.booleanRequired.booleanThe customer ID of the account that the incentive is being applied to.booleanThe incentive ID of this incentive.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(ApplyIncentiveRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCountryCode(String value) Required.setCountryCodeBytes(com.google.protobuf.ByteString value) Required.setCustomerId(String value) The customer ID of the account that the incentive is being applied to.setCustomerIdBytes(com.google.protobuf.ByteString value) The customer ID of the account that the incentive is being applied to.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSelectedIncentiveId(long value) The incentive ID of this incentive.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getParentForChildrenMethods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension, setExtension, setExtensionMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtensionMethods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.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<ApplyIncentiveRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- 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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-
setField
public ApplyIncentiveRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-
clearField
public ApplyIncentiveRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-
clearOneof
public ApplyIncentiveRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-
setRepeatedField
public ApplyIncentiveRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-
addRepeatedField
public ApplyIncentiveRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApplyIncentiveRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasSelectedIncentiveIdin interfaceApplyIncentiveRequestOrBuilder- 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:
getSelectedIncentiveIdin interfaceApplyIncentiveRequestOrBuilder- Returns:
- The selectedIncentiveId.
-
setSelectedIncentiveId
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
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:
hasCustomerIdin interfaceApplyIncentiveRequestOrBuilder- Returns:
- Whether the customerId field is set.
-
getCustomerId
The customer ID of the account that the incentive is being applied to.
optional string customer_id = 2;- Specified by:
getCustomerIdin interfaceApplyIncentiveRequestOrBuilder- 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:
getCustomerIdBytesin interfaceApplyIncentiveRequestOrBuilder- Returns:
- The bytes for customerId.
-
setCustomerId
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
The customer ID of the account that the incentive is being applied to.
optional string customer_id = 2;- Returns:
- This builder for chaining.
-
setCustomerIdBytes
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:
hasCountryCodein interfaceApplyIncentiveRequestOrBuilder- Returns:
- Whether the countryCode field is set.
-
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:
getCountryCodein interfaceApplyIncentiveRequestOrBuilder- 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:
getCountryCodeBytesin interfaceApplyIncentiveRequestOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-
mergeUnknownFields
public final ApplyIncentiveRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveRequest.Builder>
-