Class protos.google.cloud.vectorsearch.v1beta.SemanticSearch (0.1.0)

Represents a SemanticSearch.

Package

@google-cloud/vectorsearch

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.vectorsearch.v1beta.ISemanticSearch);

Constructs a new SemanticSearch.

Parameter
Name Description
properties ISemanticSearch

Properties to set

Properties

filter

public filter?: (google.protobuf.IStruct|null);

SemanticSearch filter.

outputFields

public outputFields?: (google.cloud.vectorsearch.v1beta.IOutputFields|null);

SemanticSearch outputFields.

searchField

public searchField: string;

SemanticSearch searchField.

searchText

public searchText: string;

SemanticSearch searchText.

taskType

public taskType: (google.cloud.vectorsearch.v1beta.EmbeddingTaskType|keyof typeof google.cloud.vectorsearch.v1beta.EmbeddingTaskType);

SemanticSearch taskType.

topK

public topK?: (number|null);

SemanticSearch topK.

Methods

create(properties)

public static create(properties?: google.cloud.vectorsearch.v1beta.ISemanticSearch): google.cloud.vectorsearch.v1beta.SemanticSearch;

Creates a new SemanticSearch instance using the specified properties.

Parameter
Name Description
properties ISemanticSearch

Properties to set

Returns
Type Description
SemanticSearch

SemanticSearch instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.SemanticSearch;

Decodes a SemanticSearch message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
SemanticSearch

SemanticSearch

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.SemanticSearch;

Decodes a SemanticSearch message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
SemanticSearch

SemanticSearch

encode(message, writer)

public static encode(message: google.cloud.vectorsearch.v1beta.ISemanticSearch, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified SemanticSearch message. Does not implicitly messages.

Parameters
Name Description
message ISemanticSearch

SemanticSearch message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.ISemanticSearch, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified SemanticSearch message, length delimited. Does not implicitly messages.

Parameters
Name Description
message ISemanticSearch

SemanticSearch message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.SemanticSearch;

Creates a SemanticSearch message from a plain object. Also converts values to their respective internal types.

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
SemanticSearch

SemanticSearch

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for SemanticSearch

Parameter
Name Description
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
Type Description
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this SemanticSearch to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.vectorsearch.v1beta.SemanticSearch, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a SemanticSearch message. Also converts values to other types if specified.

Parameters
Name Description
message SemanticSearch

SemanticSearch

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a SemanticSearch message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not