Class SearchRequest.SearchAsYouTypeSpec.Builder (0.49.0)

public static final class SearchRequest.SearchAsYouTypeSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.SearchAsYouTypeSpec.Builder> implements SearchRequest.SearchAsYouTypeSpecOrBuilder

Specification for search as you type in search requests.

Protobuf type google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.SearchAsYouTypeSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

build()

public SearchRequest.SearchAsYouTypeSpec build()
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec

buildPartial()

public SearchRequest.SearchAsYouTypeSpec buildPartial()
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec

clear()

public SearchRequest.SearchAsYouTypeSpec.Builder clear()
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

clearCondition()

public SearchRequest.SearchAsYouTypeSpec.Builder clearCondition()

The condition under which search as you type should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1;

Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SearchRequest.SearchAsYouTypeSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.SearchAsYouTypeSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

clone()

public SearchRequest.SearchAsYouTypeSpec.Builder clone()
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

getCondition()

public SearchRequest.SearchAsYouTypeSpec.Condition getCondition()

The condition under which search as you type should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1;

Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Condition

The condition.

getConditionValue()

public int getConditionValue()

The condition under which search as you type should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1;

Returns
Type Description
int

The enum numeric value on the wire for condition.

getDefaultInstanceForType()

public SearchRequest.SearchAsYouTypeSpec getDefaultInstanceForType()
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchRequest.SearchAsYouTypeSpec other)

public SearchRequest.SearchAsYouTypeSpec.Builder mergeFrom(SearchRequest.SearchAsYouTypeSpec other)
Parameter
Name Description
other SearchRequest.SearchAsYouTypeSpec
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchRequest.SearchAsYouTypeSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchRequest.SearchAsYouTypeSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.SearchAsYouTypeSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

setCondition(SearchRequest.SearchAsYouTypeSpec.Condition value)

public SearchRequest.SearchAsYouTypeSpec.Builder setCondition(SearchRequest.SearchAsYouTypeSpec.Condition value)

The condition under which search as you type should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1;

Parameter
Name Description
value SearchRequest.SearchAsYouTypeSpec.Condition

The condition to set.

Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder

This builder for chaining.

setConditionValue(int value)

public SearchRequest.SearchAsYouTypeSpec.Builder setConditionValue(int value)

The condition under which search as you type should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for condition to set.

Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.SearchAsYouTypeSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchRequest.SearchAsYouTypeSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.SearchAsYouTypeSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchRequest.SearchAsYouTypeSpec.Builder
Overrides