Class SearchRequest.DynamicFacetSpec.Builder (2.48.0)

public static final class SearchRequest.DynamicFacetSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.DynamicFacetSpec.Builder> implements SearchRequest.DynamicFacetSpecOrBuilder

The specifications of dynamically generated facets.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public SearchRequest.DynamicFacetSpec.Builder clearMode()

Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.

.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Returns
Type Description
SearchRequest.DynamicFacetSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getMode()

public SearchRequest.DynamicFacetSpec.Mode getMode()

Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.

.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Returns
Type Description
SearchRequest.DynamicFacetSpec.Mode

The mode.

getModeValue()

public int getModeValue()

Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.

.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Returns
Type Description
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchRequest.DynamicFacetSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(SearchRequest.DynamicFacetSpec.Mode value)

public SearchRequest.DynamicFacetSpec.Builder setMode(SearchRequest.DynamicFacetSpec.Mode value)

Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.

.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Parameter
Name Description
value SearchRequest.DynamicFacetSpec.Mode

The mode to set.

Returns
Type Description
SearchRequest.DynamicFacetSpec.Builder

This builder for chaining.

setModeValue(int value)

public SearchRequest.DynamicFacetSpec.Builder setModeValue(int value)

Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.

.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Parameter
Name Description
value int

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

Returns
Type Description
SearchRequest.DynamicFacetSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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