public static final class VertexRanker.Builder extends GeneratedMessageV3.Builder<VertexRanker.Builder> implements VertexRankerOrBuilderDefines a ranker using the Vertex AI ranking service. See https://cloud.google.com/generative-ai-app-builder/docs/ranking for details.
Protobuf type google.cloud.vectorsearch.v1beta.VertexRanker
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VertexRanker.BuilderImplements
VertexRankerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VertexRanker.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
build()
public VertexRanker build()| Returns | |
|---|---|
| Type | Description |
VertexRanker |
|
buildPartial()
public VertexRanker buildPartial()| Returns | |
|---|---|
| Type | Description |
VertexRanker |
|
clear()
public VertexRanker.Builder clear()| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
clearContentTemplate()
public VertexRanker.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.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public VertexRanker.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
clearModel()
public VertexRanker.Builder clearModel()Required. The model used for ranking documents. If no model is specified, then semantic-ranker-default@latest is used.
string model = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public VertexRanker.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
clearQuery()
public VertexRanker.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.Builder |
This builder for chaining. |
clearTitleTemplate()
public VertexRanker.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.Builder |
This builder for chaining. |
clone()
public VertexRanker.Builder clone()| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
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 getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
VertexRanker |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getModel()
public String getModel()Required. The model used for ranking documents. If no model is specified, then semantic-ranker-default@latest is used.
string model = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The model. |
getModelBytes()
public ByteString getModelBytes()Required. The model used for ranking documents. If no model is specified, then semantic-ranker-default@latest is used.
string model = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for model. |
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(VertexRanker other)
public VertexRanker.Builder mergeFrom(VertexRanker other)| Parameter | |
|---|---|
| Name | Description |
other |
VertexRanker |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VertexRanker.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public VertexRanker.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VertexRanker.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
setContentTemplate(String value)
public VertexRanker.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.Builder |
This builder for chaining. |
setContentTemplateBytes(ByteString value)
public VertexRanker.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.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public VertexRanker.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
setModel(String value)
public VertexRanker.Builder setModel(String value)Required. The model used for ranking documents. If no model is specified, then semantic-ranker-default@latest is used.
string model = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe model to set. |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
This builder for chaining. |
setModelBytes(ByteString value)
public VertexRanker.Builder setModelBytes(ByteString value)Required. The model used for ranking documents. If no model is specified, then semantic-ranker-default@latest is used.
string model = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for model to set. |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
This builder for chaining. |
setQuery(String value)
public VertexRanker.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.Builder |
This builder for chaining. |
setQueryBytes(ByteString value)
public VertexRanker.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.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VertexRanker.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|
setTitleTemplate(String value)
public VertexRanker.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.Builder |
This builder for chaining. |
setTitleTemplateBytes(ByteString value)
public VertexRanker.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.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final VertexRanker.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
VertexRanker.Builder |
|