Class VertexRanker.TextRecordSpec (0.15.0)

public static final class VertexRanker.TextRecordSpec extends GeneratedMessage implements VertexRanker.TextRecordSpecOrBuilder

The record spec for text search.

Protobuf type google.cloud.vectorsearch.v1beta.VertexRanker.TextRecordSpec

Static Fields

CONTENT_TEMPLATE_FIELD_NUMBER

public static final int CONTENT_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

QUERY_FIELD_NUMBER

public static final int QUERY_FIELD_NUMBER
Field Value
Type Description
int

TITLE_TEMPLATE_FIELD_NUMBER

public static final int TITLE_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VertexRanker.TextRecordSpec getDefaultInstance()
Returns
Type Description
VertexRanker.TextRecordSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static VertexRanker.TextRecordSpec.Builder newBuilder()
Returns
Type Description
VertexRanker.TextRecordSpec.Builder

newBuilder(VertexRanker.TextRecordSpec prototype)

public static VertexRanker.TextRecordSpec.Builder newBuilder(VertexRanker.TextRecordSpec prototype)
Parameter
Name Description
prototype VertexRanker.TextRecordSpec
Returns
Type Description
VertexRanker.TextRecordSpec.Builder

parseDelimitedFrom(InputStream input)

public static VertexRanker.TextRecordSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VertexRanker.TextRecordSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VertexRanker.TextRecordSpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VertexRanker.TextRecordSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VertexRanker.TextRecordSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VertexRanker.TextRecordSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VertexRanker.TextRecordSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VertexRanker.TextRecordSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VertexRanker.TextRecordSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VertexRanker.TextRecordSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VertexRanker.TextRecordSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VertexRanker.TextRecordSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VertexRanker.TextRecordSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VertexRanker.TextRecordSpec> parser()
Returns
Type Description
Parser<TextRecordSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<VertexRanker.TextRecordSpec> getParserForType()
Returns
Type Description
Parser<TextRecordSpec>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VertexRanker.TextRecordSpec.Builder newBuilderForType()
Returns
Type Description
VertexRanker.TextRecordSpec.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected VertexRanker.TextRecordSpec.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VertexRanker.TextRecordSpec.Builder
Overrides

toBuilder()

public VertexRanker.TextRecordSpec.Builder toBuilder()
Returns
Type Description
VertexRanker.TextRecordSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException