# Interface ItemCustomVariableOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface ItemCustomVariableOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDestinationReferences(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The destinationReferences at the given index. |

### getDestinationReferencesBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the destinationReferences at the given index. |

### getDestinationReferencesCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of destinationReferences. |

### getDestinationReferencesList()

    public abstract List<String> 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the destinationReferences. |

### getValue()

    public abstract String getValue()

Optional. The value to store for the custom variable.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The value. |

### getValueBytes()

    public abstract ByteString getValueBytes()

Optional. The value to store for the custom variable.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for value. |

### getVariable()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The variable. |

### getVariableBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for variable. |