# Interface VertexRanker.TextRecordSpecOrBuilder (0.15.0)

0.15.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.1.0

    public static interface VertexRanker.TextRecordSpecOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getContentTemplate()

    public abstract String getContentTemplate()

Optional. The template used to generate the record's content.

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

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

### getContentTemplateBytes()

    public abstract ByteString getContentTemplateBytes()

Optional. The template used to generate the record's content.

`string content_template = 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 contentTemplate. |

### getQuery()

    public abstract String getQuery()

Required. The query against which the records are ranked and scored.

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

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

### getQueryBytes()

    public abstract ByteString getQueryBytes()

Required. The query against which the records are ranked and scored.

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

### getTitleTemplate()

    public abstract String getTitleTemplate()

Optional. The template used to generate the record's title.

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

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

### getTitleTemplateBytes()

    public abstract ByteString getTitleTemplateBytes()

Optional. The template used to generate the record's title.

`string title_template = 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 titleTemplate. |