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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UserProperty.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UserProperty build()
buildPartial()
public UserProperty buildPartial()
clear()
public UserProperty.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public UserProperty.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UserProperty.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPropertyName()
public UserProperty.Builder clearPropertyName()
Required. The name of the user property to use.
string property_name = 1 [(.google.api.field_behavior) = REQUIRED];
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];
clone()
public UserProperty.Builder clone()
Overrides
getDefaultInstanceForType()
public UserProperty getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UserProperty other)
public UserProperty.Builder mergeFrom(UserProperty other)
public UserProperty.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UserProperty.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UserProperty.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UserProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UserProperty.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UserProperty.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-19 UTC."],[],[]]