Class SearchRequest.DynamicFacetSpec.Builder (2.14.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.v2beta.SearchRequest.DynamicFacetSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.DynamicFacetSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides

build()

public SearchRequest.DynamicFacetSpec build()
Returns
TypeDescription
SearchRequest.DynamicFacetSpec

buildPartial()

public SearchRequest.DynamicFacetSpec buildPartial()
Returns
TypeDescription
SearchRequest.DynamicFacetSpec

clear()

public SearchRequest.DynamicFacetSpec.Builder clear()
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchRequest.DynamicFacetSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v2beta.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.DynamicFacetSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides

clone()

public SearchRequest.DynamicFacetSpec.Builder clone()
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides

getDefaultInstanceForType()

public SearchRequest.DynamicFacetSpec getDefaultInstanceForType()
Returns
TypeDescription
SearchRequest.DynamicFacetSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMode()

public SearchRequest.DynamicFacetSpec.Mode getMode()

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

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

Returns
TypeDescription
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.v2beta.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchRequest.DynamicFacetSpec other)

public SearchRequest.DynamicFacetSpec.Builder mergeFrom(SearchRequest.DynamicFacetSpec other)
Parameter
NameDescription
otherSearchRequest.DynamicFacetSpec
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchRequest.DynamicFacetSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchRequest.DynamicFacetSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.DynamicFacetSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.DynamicFacetSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v2beta.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Parameter
NameDescription
valueSearchRequest.DynamicFacetSpec.Mode

The mode to set.

Returns
TypeDescription
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.v2beta.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.DynamicFacetSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchRequest.DynamicFacetSpec.Builder
Overrides