Interface SearchRequest.SearchAsYouTypeSpec.FieldOrBuilder (0.95.0)

public static interface SearchRequest.SearchAsYouTypeSpec.FieldOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

public abstract String getKey()

Required. A field key that has been indexed for Search As You Type.

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

Returns
Type Description
String

The key.

getKeyBytes()

public abstract ByteString getKeyBytes()

Required. A field key that has been indexed for Search As You Type.

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

Returns
Type Description
ByteString

The bytes for key.

getWeight()

public abstract double getWeight()

Optional. Weight for scores from this field. Defaults to 1.0 if not specified.

optional double weight = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The weight.

hasWeight()

public abstract boolean hasWeight()

Optional. Weight for scores from this field. Defaults to 1.0 if not specified.

optional double weight = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the weight field is set.