# Interface OutputSpecOrBuilder (0.33.0)

0.33.0 (latest) 0.31.0 0.28.0 0.27.0 0.25.0 0.23.0 0.22.0 0.20.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.10.0 0.8.0 0.7.0 0.4.0 0.3.0 0.2.0

    public interface OutputSpecOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAttributeOrder(int index)

    public abstract String getAttributeOrder(int index)

Optional. The order that generated attributes should be placed in the
generated title. Eg., if the attribute order is \["brand", "product",
"size"\], the generated title will have brand first, followed by the product
name, and then size information after that.

`repeated string attribute_order = 5 [(.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 attributeOrder at the given index. |

### getAttributeOrderBytes(int index)

    public abstract ByteString getAttributeOrderBytes(int index)

Optional. The order that generated attributes should be placed in the
generated title. Eg., if the attribute order is \["brand", "product",
"size"\], the generated title will have brand first, followed by the product
name, and then size information after that.

`repeated string attribute_order = 5 [(.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 attributeOrder at the given index. |

### getAttributeOrderCount()

    public abstract int getAttributeOrderCount()

Optional. The order that generated attributes should be placed in the
generated title. Eg., if the attribute order is \["brand", "product",
"size"\], the generated title will have brand first, followed by the product
name, and then size information after that.

`repeated string attribute_order = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of attributeOrder. |

### getAttributeOrderList()

    public abstract List<String> getAttributeOrderList()

Optional. The order that generated attributes should be placed in the
generated title. Eg., if the attribute order is \["brand", "product",
"size"\], the generated title will have brand first, followed by the product
name, and then size information after that.

`repeated string attribute_order = 5 [(.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 attributeOrder. |

### getAttributeSeparator()

    public abstract String getAttributeSeparator()

Optional. Character used to separate attributes in the generated title.
For example, '\|', '-', ','.

`optional string attribute_separator = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getAttributeSeparatorBytes()

    public abstract ByteString getAttributeSeparatorBytes()

Optional. Character used to separate attributes in the generated title.
For example, '\|', '-', ','.

`optional string attribute_separator = 6 [(.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 attributeSeparator. |

### getEditorialChanges()

    public abstract String getEditorialChanges()

Optional. Any editorial changes for the generated product data. For
example, replace Small with "S", do not modify color if already present.

`optional string editorial_changes = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getEditorialChangesBytes()

    public abstract ByteString getEditorialChangesBytes()

Optional. Any editorial changes for the generated product data. For
example, replace Small with "S", do not modify color if already present.

`optional string editorial_changes = 3 [(.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 editorialChanges. |

### getTargetLanguage()

    public abstract String getTargetLanguage()

Optional. The language for output titles/descriptions. For example.
'German', 'es', 'FR'. Default is 'en'.

`optional string target_language = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTargetLanguageBytes()

    public abstract ByteString getTargetLanguageBytes()

Optional. The language for output titles/descriptions. For example.
'German', 'es', 'FR'. Default is 'en'.

`optional string target_language = 4 [(.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 targetLanguage. |

### getTone()

    public abstract String getTone()

Optional. The tone of the output generated text. Supported tones are:
"playful", "formal", "persuasive", and "conversational"

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

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

### getToneBytes()

    public abstract ByteString getToneBytes()

Optional. The tone of the output generated text. Supported tones are:
"playful", "formal", "persuasive", and "conversational"

`optional string tone = 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 tone. |

### getWorkflowId()

    public abstract String getWorkflowId()

Optional. The workflow to execute for the provided product data. Workflows
may populate the response's title, description, or both. Currently
supported workflow_ids are: "title", "description", and "tide"

`optional string workflow_id = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getWorkflowIdBytes()

    public abstract ByteString getWorkflowIdBytes()

Optional. The workflow to execute for the provided product data. Workflows
may populate the response's title, description, or both. Currently
supported workflow_ids are: "title", "description", and "tide"

`optional string workflow_id = 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 workflowId. |

### hasAttributeSeparator()

    public abstract boolean hasAttributeSeparator()

Optional. Character used to separate attributes in the generated title.
For example, '\|', '-', ','.

`optional string attribute_separator = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the attributeSeparator field is set. |

### hasEditorialChanges()

    public abstract boolean hasEditorialChanges()

Optional. Any editorial changes for the generated product data. For
example, replace Small with "S", do not modify color if already present.

`optional string editorial_changes = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the editorialChanges field is set. |

### hasTargetLanguage()

    public abstract boolean hasTargetLanguage()

Optional. The language for output titles/descriptions. For example.
'German', 'es', 'FR'. Default is 'en'.

`optional string target_language = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the targetLanguage field is set. |

### hasTone()

    public abstract boolean hasTone()

Optional. The tone of the output generated text. Supported tones are:
"playful", "formal", "persuasive", and "conversational"

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the tone field is set. |

### hasWorkflowId()

    public abstract boolean hasWorkflowId()

Optional. The workflow to execute for the provided product data. Workflows
may populate the response's title, description, or both. Currently
supported workflow_ids are: "title", "description", and "tide"

`optional string workflow_id = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the workflowId field is set. |