public static final class VertexRanker.TextRecordSpec.Builder extends GeneratedMessage.Builder<VertexRanker.TextRecordSpec.Builder> implements VertexRanker.TextRecordSpecOrBuilderThe record spec for text search.
Protobuf type google.cloud.vectorsearch.v1beta.VertexRanker.TextRecordSpec
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > VertexRanker.TextRecordSpec.BuilderImplements
VertexRanker.TextRecordSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public VertexRanker.TextRecordSpec build()| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec |
|
buildPartial()
public VertexRanker.TextRecordSpec buildPartial()| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec |
|
clear()
public VertexRanker.TextRecordSpec.Builder clear()| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
|
clearContentTemplate()
public VertexRanker.TextRecordSpec.Builder clearContentTemplate()Optional. The template used to generate the record's content.
string content_template = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |
clearQuery()
public VertexRanker.TextRecordSpec.Builder clearQuery()Required. The query against which the records are ranked and scored.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |
clearTitleTemplate()
public VertexRanker.TextRecordSpec.Builder clearTitleTemplate()Optional. The template used to generate the record's title.
string title_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |
getContentTemplate()
public String getContentTemplate()Optional. The template used to generate the record's content.
string content_template = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The contentTemplate. |
getContentTemplateBytes()
public ByteString getContentTemplateBytes()Optional. The template used to generate the record's content.
string content_template = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentTemplate. |
getDefaultInstanceForType()
public VertexRanker.TextRecordSpec getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getQuery()
public String getQuery()Required. The query against which the records are ranked and scored.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The query. |
getQueryBytes()
public ByteString getQueryBytes()Required. The query against which the records are ranked and scored.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for query. |
getTitleTemplate()
public String getTitleTemplate()Optional. The template used to generate the record's title.
string title_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The titleTemplate. |
getTitleTemplateBytes()
public ByteString getTitleTemplateBytes()Optional. The template used to generate the record's title.
string title_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for titleTemplate. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(VertexRanker.TextRecordSpec other)
public VertexRanker.TextRecordSpec.Builder mergeFrom(VertexRanker.TextRecordSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
VertexRanker.TextRecordSpec |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VertexRanker.TextRecordSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public VertexRanker.TextRecordSpec.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
|
setContentTemplate(String value)
public VertexRanker.TextRecordSpec.Builder setContentTemplate(String value)Optional. The template used to generate the record's content.
string content_template = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contentTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |
setContentTemplateBytes(ByteString value)
public VertexRanker.TextRecordSpec.Builder setContentTemplateBytes(ByteString value)Optional. The template used to generate the record's content.
string content_template = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contentTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |
setQuery(String value)
public VertexRanker.TextRecordSpec.Builder setQuery(String value)Required. The query against which the records are ranked and scored.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe query to set. |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |
setQueryBytes(ByteString value)
public VertexRanker.TextRecordSpec.Builder setQueryBytes(ByteString value)Required. The query against which the records are ranked and scored.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for query to set. |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |
setTitleTemplate(String value)
public VertexRanker.TextRecordSpec.Builder setTitleTemplate(String value)Optional. The template used to generate the record's title.
string title_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe titleTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |
setTitleTemplateBytes(ByteString value)
public VertexRanker.TextRecordSpec.Builder setTitleTemplateBytes(ByteString value)Optional. The template used to generate the record's title.
string title_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for titleTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.TextRecordSpec.Builder |
This builder for chaining. |