public static final class CustomVariable.Builder extends GeneratedMessageV3.Builder<CustomVariable.Builder> implements CustomVariableOrBuilderCustom variable for ads conversions.
Protobuf type google.ads.datamanager.v1.CustomVariable
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomVariable.BuilderImplements
CustomVariableOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDestinationReferences(Iterable<String> values)
public CustomVariable.Builder addAllDestinationReferences(Iterable<String> values)Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The destinationReferences to add. |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
addDestinationReferences(String value)
public CustomVariable.Builder addDestinationReferences(String value)Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe destinationReferences to add. |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
addDestinationReferencesBytes(ByteString value)
public CustomVariable.Builder addDestinationReferencesBytes(ByteString value)Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the destinationReferences to add. |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomVariable.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
build()
public CustomVariable build()| Returns | |
|---|---|
| Type | Description |
CustomVariable |
|
buildPartial()
public CustomVariable buildPartial()| Returns | |
|---|---|
| Type | Description |
CustomVariable |
|
clear()
public CustomVariable.Builder clear()| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
clearDestinationReferences()
public CustomVariable.Builder clearDestinationReferences()Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CustomVariable.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomVariable.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
clearValue()
public CustomVariable.Builder clearValue()Optional. The value to store for the custom variable.
string value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
clearVariable()
public CustomVariable.Builder clearVariable()Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.
string variable = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
clone()
public CustomVariable.Builder clone()| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
getDefaultInstanceForType()
public CustomVariable getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomVariable |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinationReferences(int index)
public String getDestinationReferences(int index)Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The destinationReferences at the given index. |
getDestinationReferencesBytes(int index)
public ByteString getDestinationReferencesBytes(int index)Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the destinationReferences at the given index. |
getDestinationReferencesCount()
public int getDestinationReferencesCount()Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of destinationReferences. |
getDestinationReferencesList()
public ProtocolStringList getDestinationReferencesList()Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the destinationReferences. |
getValue()
public String getValue()Optional. The value to store for the custom variable.
string value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
public ByteString getValueBytes()Optional. The value to store for the custom variable.
string value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for value. |
getVariable()
public String getVariable()Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.
string variable = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The variable. |
getVariableBytes()
public ByteString getVariableBytes()Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.
string variable = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for variable. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CustomVariable other)
public CustomVariable.Builder mergeFrom(CustomVariable other)| Parameter | |
|---|---|
| Name | Description |
other |
CustomVariable |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomVariable.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CustomVariable.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomVariable.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
setDestinationReferences(int index, String value)
public CustomVariable.Builder setDestinationReferences(int index, String value)Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
repeated string destination_references = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe destinationReferences to set. |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CustomVariable.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomVariable.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomVariable.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
|
setValue(String value)
public CustomVariable.Builder setValue(String value)Optional. The value to store for the custom variable.
string value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe value to set. |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
setValueBytes(ByteString value)
public CustomVariable.Builder setValueBytes(ByteString value)Optional. The value to store for the custom variable.
string value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
setVariable(String value)
public CustomVariable.Builder setVariable(String value)Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.
string variable = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe variable to set. |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |
setVariableBytes(ByteString value)
public CustomVariable.Builder setVariableBytes(ByteString value)Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.
string variable = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for variable to set. |
| Returns | |
|---|---|
| Type | Description |
CustomVariable.Builder |
This builder for chaining. |