Class UserProperty.Builder (0.1.0)

public static final class UserProperty.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UserProperty.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public UserProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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.