Class UserProperties.Builder (0.1.0)

public static final class UserProperties.Builder extends GeneratedMessageV3.Builder<UserProperties.Builder> implements UserPropertiesOrBuilder

Advertiser-assessed information about the user at the time that the event happened. See https://support.google.com/google-ads/answer/14007601 for more details.

Protobuf type google.ads.datamanager.v1.UserProperties

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAdditionalUserProperties(UserProperty value)

public UserProperties.Builder addAdditionalUserProperties(UserProperty value)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value UserProperty
Returns
Type Description
UserProperties.Builder

addAdditionalUserProperties(UserProperty.Builder builderForValue)

public UserProperties.Builder addAdditionalUserProperties(UserProperty.Builder builderForValue)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue UserProperty.Builder
Returns
Type Description
UserProperties.Builder

addAdditionalUserProperties(int index, UserProperty value)

public UserProperties.Builder addAdditionalUserProperties(int index, UserProperty value)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value UserProperty
Returns
Type Description
UserProperties.Builder

addAdditionalUserProperties(int index, UserProperty.Builder builderForValue)

public UserProperties.Builder addAdditionalUserProperties(int index, UserProperty.Builder builderForValue)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue UserProperty.Builder
Returns
Type Description
UserProperties.Builder

addAdditionalUserPropertiesBuilder()

public UserProperty.Builder addAdditionalUserPropertiesBuilder()

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserProperty.Builder

addAdditionalUserPropertiesBuilder(int index)

public UserProperty.Builder addAdditionalUserPropertiesBuilder(int index)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserProperty.Builder

addAllAdditionalUserProperties(Iterable<? extends UserProperty> values)

public UserProperties.Builder addAllAdditionalUserProperties(Iterable<? extends UserProperty> values)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.ads.datamanager.v1.UserProperty>
Returns
Type Description
UserProperties.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UserProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserProperties.Builder
Overrides

build()

public UserProperties build()
Returns
Type Description
UserProperties

buildPartial()

public UserProperties buildPartial()
Returns
Type Description
UserProperties

clear()

public UserProperties.Builder clear()
Returns
Type Description
UserProperties.Builder
Overrides

clearAdditionalUserProperties()

public UserProperties.Builder clearAdditionalUserProperties()

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserProperties.Builder

clearCustomerType()

public UserProperties.Builder clearCustomerType()

Optional. Type of the customer associated with the event.

.google.ads.datamanager.v1.CustomerType customer_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserProperties.Builder

This builder for chaining.

clearCustomerValueBucket()

public UserProperties.Builder clearCustomerValueBucket()

Optional. The advertiser-assessed value of the customer.

.google.ads.datamanager.v1.CustomerValueBucket customer_value_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UserProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UserProperties.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UserProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UserProperties.Builder
Overrides

clone()

public UserProperties.Builder clone()
Returns
Type Description
UserProperties.Builder
Overrides

getAdditionalUserProperties(int index)

public UserProperty getAdditionalUserProperties(int index)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserProperty

getAdditionalUserPropertiesBuilder(int index)

public UserProperty.Builder getAdditionalUserPropertiesBuilder(int index)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserProperty.Builder

getAdditionalUserPropertiesBuilderList()

public List<UserProperty.Builder> getAdditionalUserPropertiesBuilderList()

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAdditionalUserPropertiesCount()

public int getAdditionalUserPropertiesCount()

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAdditionalUserPropertiesList()

public List<UserProperty> getAdditionalUserPropertiesList()

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<UserProperty>

getAdditionalUserPropertiesOrBuilder(int index)

public UserPropertyOrBuilder getAdditionalUserPropertiesOrBuilder(int index)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserPropertyOrBuilder

getAdditionalUserPropertiesOrBuilderList()

public List<? extends UserPropertyOrBuilder> getAdditionalUserPropertiesOrBuilderList()

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.ads.datamanager.v1.UserPropertyOrBuilder>

getCustomerType()

public CustomerType getCustomerType()

Optional. Type of the customer associated with the event.

.google.ads.datamanager.v1.CustomerType customer_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomerType

The customerType.

getCustomerTypeValue()

public int getCustomerTypeValue()

Optional. Type of the customer associated with the event.

.google.ads.datamanager.v1.CustomerType customer_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for customerType.

getCustomerValueBucket()

public CustomerValueBucket getCustomerValueBucket()

Optional. The advertiser-assessed value of the customer.

.google.ads.datamanager.v1.CustomerValueBucket customer_value_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomerValueBucket

The customerValueBucket.

getCustomerValueBucketValue()

public int getCustomerValueBucketValue()

Optional. The advertiser-assessed value of the customer.

.google.ads.datamanager.v1.CustomerValueBucket customer_value_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for customerValueBucket.

getDefaultInstanceForType()

public UserProperties getDefaultInstanceForType()
Returns
Type Description
UserProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserProperties other)

public UserProperties.Builder mergeFrom(UserProperties other)
Parameter
Name Description
other UserProperties
Returns
Type Description
UserProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UserProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UserProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserProperties.Builder
Overrides

removeAdditionalUserProperties(int index)

public UserProperties.Builder removeAdditionalUserProperties(int index)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserProperties.Builder

setAdditionalUserProperties(int index, UserProperty value)

public UserProperties.Builder setAdditionalUserProperties(int index, UserProperty value)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value UserProperty
Returns
Type Description
UserProperties.Builder

setAdditionalUserProperties(int index, UserProperty.Builder builderForValue)

public UserProperties.Builder setAdditionalUserProperties(int index, UserProperty.Builder builderForValue)

Optional. A bucket of any additional user properties for the user associated with this event.

repeated .google.ads.datamanager.v1.UserProperty additional_user_properties = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue UserProperty.Builder
Returns
Type Description
UserProperties.Builder

setCustomerType(CustomerType value)

public UserProperties.Builder setCustomerType(CustomerType value)

Optional. Type of the customer associated with the event.

.google.ads.datamanager.v1.CustomerType customer_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CustomerType

The customerType to set.

Returns
Type Description
UserProperties.Builder

This builder for chaining.

setCustomerTypeValue(int value)

public UserProperties.Builder setCustomerTypeValue(int value)

Optional. Type of the customer associated with the event.

.google.ads.datamanager.v1.CustomerType customer_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for customerType to set.

Returns
Type Description
UserProperties.Builder

This builder for chaining.

setCustomerValueBucket(CustomerValueBucket value)

public UserProperties.Builder setCustomerValueBucket(CustomerValueBucket value)

Optional. The advertiser-assessed value of the customer.

.google.ads.datamanager.v1.CustomerValueBucket customer_value_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CustomerValueBucket

The customerValueBucket to set.

Returns
Type Description
UserProperties.Builder

This builder for chaining.

setCustomerValueBucketValue(int value)

public UserProperties.Builder setCustomerValueBucketValue(int value)

Optional. The advertiser-assessed value of the customer.

.google.ads.datamanager.v1.CustomerValueBucket customer_value_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for customerValueBucket to set.

Returns
Type Description
UserProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UserProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserProperties.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UserProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UserProperties.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UserProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserProperties.Builder
Overrides