# Interface GenerateProductTextSuggestionsRequestOrBuilder (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 GenerateProductTextSuggestionsRequestOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getName()

    public abstract String getName()

Required. The name of the account to generate text suggestions for. This
acts as a container for the request and does not affect the generation
itself, as this is a stateless API. Format: accounts/{account}

`string name = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Required. The name of the account to generate text suggestions for. This
acts as a container for the request and does not affect the generation
itself, as this is a stateless API. Format: accounts/{account}

`string name = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getOutputSpec()

    public abstract OutputSpec getOutputSpec()

Optional. Configuration parameters that directly influence what content is
generated, and how that content is rendered in the final response.

`
optional .google.shopping.merchant.productstudio.v1alpha.OutputSpec output_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.OutputSpec` | The outputSpec. |

### getOutputSpecOrBuilder()

    public abstract OutputSpecOrBuilder getOutputSpecOrBuilder()

Optional. Configuration parameters that directly influence what content is
generated, and how that content is rendered in the final response.

`
optional .google.shopping.merchant.productstudio.v1alpha.OutputSpec output_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.OutputSpecOrBuilder` |   |

### getProductInfo()

    public abstract ProductInfo getProductInfo()

Required. Available information about the product. Used to inform the genAI
models.

`
.google.shopping.merchant.productstudio.v1alpha.ProductInfo product_info = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.ProductInfo` | The productInfo. |

### getProductInfoOrBuilder()

    public abstract ProductInfoOrBuilder getProductInfoOrBuilder()

Required. Available information about the product. Used to inform the genAI
models.

`
.google.shopping.merchant.productstudio.v1alpha.ProductInfo product_info = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.ProductInfoOrBuilder` |   |

### getTitleExamples(int index)

    public abstract TitleExample getTitleExamples(int index)

Optional. Provide some hand-crafted examples of title improvements that are
unique to your use case. This is a general tool that handles multiple
product categories, but your brand identity may require custom
functionality. Feel free to specify that here.

`
repeated .google.shopping.merchant.productstudio.v1alpha.TitleExample title_examples = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.TitleExample` |   |

### getTitleExamplesCount()

    public abstract int getTitleExamplesCount()

Optional. Provide some hand-crafted examples of title improvements that are
unique to your use case. This is a general tool that handles multiple
product categories, but your brand identity may require custom
functionality. Feel free to specify that here.

`
repeated .google.shopping.merchant.productstudio.v1alpha.TitleExample title_examples = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getTitleExamplesList()

    public abstract List<TitleExample> getTitleExamplesList()

Optional. Provide some hand-crafted examples of title improvements that are
unique to your use case. This is a general tool that handles multiple
product categories, but your brand identity may require custom
functionality. Feel free to specify that here.

`
repeated .google.shopping.merchant.productstudio.v1alpha.TitleExample title_examples = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.TitleExample>` |   |

### getTitleExamplesOrBuilder(int index)

    public abstract TitleExampleOrBuilder getTitleExamplesOrBuilder(int index)

Optional. Provide some hand-crafted examples of title improvements that are
unique to your use case. This is a general tool that handles multiple
product categories, but your brand identity may require custom
functionality. Feel free to specify that here.

`
repeated .google.shopping.merchant.productstudio.v1alpha.TitleExample title_examples = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.TitleExampleOrBuilder` |   |

### getTitleExamplesOrBuilderList()

    public abstract List<? extends TitleExampleOrBuilder> getTitleExamplesOrBuilderList()

Optional. Provide some hand-crafted examples of title improvements that are
unique to your use case. This is a general tool that handles multiple
product categories, but your brand identity may require custom
functionality. Feel free to specify that here.

`
repeated .google.shopping.merchant.productstudio.v1alpha.TitleExample title_examples = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.shopping.merchant.productstudio.v1alpha.TitleExampleOrBuilder>` |   |

### hasOutputSpec()

    public abstract boolean hasOutputSpec()

Optional. Configuration parameters that directly influence what content is
generated, and how that content is rendered in the final response.

`
optional .google.shopping.merchant.productstudio.v1alpha.OutputSpec output_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasProductInfo()

    public abstract boolean hasProductInfo()

Required. Available information about the product. Used to inform the genAI
models.

`
.google.shopping.merchant.productstudio.v1alpha.ProductInfo product_info = 2 [(.google.api.field_behavior) = REQUIRED];
`

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