Class UserProperty.Builder (0.6.0)

public static final class UserProperty.Builder extends GeneratedMessage.Builder<UserProperty.Builder> implements UserPropertyOrBuilder

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

Protobuf type google.ads.datamanager.v1.UserProperty

Static Methods

getDescriptor()

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

Methods

build()

public UserProperty build()
Returns
Type Description
UserProperty

buildPartial()

public UserProperty buildPartial()
Returns
Type Description
UserProperty

clear()

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

clearPropertyName()

public UserProperty.Builder clearPropertyName()

Required. The name of the user property to use.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserProperty.Builder

This builder for chaining.

clearValue()

public UserProperty.Builder clearValue()

Required. The string representation of the value of the user property to use.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserProperty.Builder

This builder for chaining.

getDefaultInstanceForType()

public UserProperty getDefaultInstanceForType()
Returns
Type Description
UserProperty

getDescriptorForType()

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

getPropertyName()

public String getPropertyName()

Required. The name of the user property to use.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The propertyName.

getPropertyNameBytes()

public ByteString getPropertyNameBytes()

Required. The name of the user property to use.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for propertyName.

getValue()

public String getValue()

Required. The string representation of the value of the user property to use.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. The string representation of the value of the user property to use.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserProperty other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPropertyName(String value)

public UserProperty.Builder setPropertyName(String value)

Required. The name of the user property to use.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The propertyName to set.

Returns
Type Description
UserProperty.Builder

This builder for chaining.

setPropertyNameBytes(ByteString value)

public UserProperty.Builder setPropertyNameBytes(ByteString value)

Required. The name of the user property to use.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for propertyName to set.

Returns
Type Description
UserProperty.Builder

This builder for chaining.

setValue(String value)

public UserProperty.Builder setValue(String value)

Required. The string representation of the value of the user property to use.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
UserProperty.Builder

This builder for chaining.

setValueBytes(ByteString value)

public UserProperty.Builder setValueBytes(ByteString value)

Required. The string representation of the value of the user property to use.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
UserProperty.Builder

This builder for chaining.