Class ItemCustomVariable (0.14.0)

public final class ItemCustomVariable extends GeneratedMessage implements ItemCustomVariableOrBuilder

Item-level custom variable for ads conversions.

Protobuf type google.ads.datamanager.v1.ItemCustomVariable

Static Fields

DESTINATION_REFERENCES_FIELD_NUMBER

public static final int DESTINATION_REFERENCES_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

VARIABLE_FIELD_NUMBER

public static final int VARIABLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ItemCustomVariable getDefaultInstance()
Returns
Type Description
ItemCustomVariable

getDescriptor()

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

newBuilder()

public static ItemCustomVariable.Builder newBuilder()
Returns
Type Description
ItemCustomVariable.Builder

newBuilder(ItemCustomVariable prototype)

public static ItemCustomVariable.Builder newBuilder(ItemCustomVariable prototype)
Parameter
Name Description
prototype ItemCustomVariable
Returns
Type Description
ItemCustomVariable.Builder

parseDelimitedFrom(InputStream input)

public static ItemCustomVariable parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ItemCustomVariable parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ItemCustomVariable parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ItemCustomVariable parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ItemCustomVariable parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ItemCustomVariable parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ItemCustomVariable parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ItemCustomVariable parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ItemCustomVariable parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ItemCustomVariable parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ItemCustomVariable parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ItemCustomVariable parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ItemCustomVariable
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ItemCustomVariable> parser()
Returns
Type Description
Parser<ItemCustomVariable>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ItemCustomVariable getDefaultInstanceForType()
Returns
Type Description
ItemCustomVariable

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 int

The 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 int

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

getParserForType()

public Parser<ItemCustomVariable> getParserForType()
Returns
Type Description
Parser<ItemCustomVariable>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ItemCustomVariable.Builder newBuilderForType()
Returns
Type Description
ItemCustomVariable.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ItemCustomVariable.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ItemCustomVariable.Builder
Overrides

toBuilder()

public ItemCustomVariable.Builder toBuilder()
Returns
Type Description
ItemCustomVariable.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException