public static final class SearchResponse.Facet.Builder extends GeneratedMessageV3.Builder<SearchResponse.Facet.Builder> implements SearchResponse.FacetOrBuilder
A facet result.
Protobuf type google.cloud.retail.v2beta.SearchResponse.Facet
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllValues(Iterable<? extends SearchResponse.Facet.FacetValue> values)
public SearchResponse.Facet.Builder addAllValues(Iterable<? extends SearchResponse.Facet.FacetValue> values)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.Facet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addValues(SearchResponse.Facet.FacetValue value)
public SearchResponse.Facet.Builder addValues(SearchResponse.Facet.FacetValue value)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameter
Returns
addValues(SearchResponse.Facet.FacetValue.Builder builderForValue)
public SearchResponse.Facet.Builder addValues(SearchResponse.Facet.FacetValue.Builder builderForValue)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameter
Returns
addValues(int index, SearchResponse.Facet.FacetValue value)
public SearchResponse.Facet.Builder addValues(int index, SearchResponse.Facet.FacetValue value)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameters
Returns
addValues(int index, SearchResponse.Facet.FacetValue.Builder builderForValue)
public SearchResponse.Facet.Builder addValues(int index, SearchResponse.Facet.FacetValue.Builder builderForValue)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameters
Returns
addValuesBuilder()
public SearchResponse.Facet.FacetValue.Builder addValuesBuilder()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Returns
addValuesBuilder(int index)
public SearchResponse.Facet.FacetValue.Builder addValuesBuilder(int index)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameter
Returns
build()
public SearchResponse.Facet build()
Returns
buildPartial()
public SearchResponse.Facet buildPartial()
Returns
clear()
public SearchResponse.Facet.Builder clear()
Returns
Overrides
clearDynamicFacet()
public SearchResponse.Facet.Builder clearDynamicFacet()
Whether the facet is dynamically generated.
bool dynamic_facet = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public SearchResponse.Facet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKey()
public SearchResponse.Facet.Builder clearKey()
The key for this facet. E.g., "colorFamilies" or "price" or
"attributes.attr1".
string key = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResponse.Facet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearValues()
public SearchResponse.Facet.Builder clearValues()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Returns
clone()
public SearchResponse.Facet.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SearchResponse.Facet getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDynamicFacet()
public boolean getDynamicFacet()
Whether the facet is dynamically generated.
bool dynamic_facet = 3;
Returns
Type | Description |
boolean | The dynamicFacet.
|
getKey()
The key for this facet. E.g., "colorFamilies" or "price" or
"attributes.attr1".
string key = 1;
Returns
getKeyBytes()
public ByteString getKeyBytes()
The key for this facet. E.g., "colorFamilies" or "price" or
"attributes.attr1".
string key = 1;
Returns
getValues(int index)
public SearchResponse.Facet.FacetValue getValues(int index)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameter
Returns
getValuesBuilder(int index)
public SearchResponse.Facet.FacetValue.Builder getValuesBuilder(int index)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameter
Returns
getValuesBuilderList()
public List<SearchResponse.Facet.FacetValue.Builder> getValuesBuilderList()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Returns
getValuesCount()
public int getValuesCount()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Returns
getValuesList()
public List<SearchResponse.Facet.FacetValue> getValuesList()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Returns
getValuesOrBuilder(int index)
public SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder(int index)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameter
Returns
getValuesOrBuilderList()
public List<? extends SearchResponse.Facet.FacetValueOrBuilder> getValuesOrBuilderList()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Returns
Type | Description |
List<? extends com.google.cloud.retail.v2beta.SearchResponse.Facet.FacetValueOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SearchResponse.Facet other)
public SearchResponse.Facet.Builder mergeFrom(SearchResponse.Facet other)
Parameter
Returns
public SearchResponse.Facet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchResponse.Facet.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.Facet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeValues(int index)
public SearchResponse.Facet.Builder removeValues(int index)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameter
Returns
setDynamicFacet(boolean value)
public SearchResponse.Facet.Builder setDynamicFacet(boolean value)
Whether the facet is dynamically generated.
bool dynamic_facet = 3;
Parameter
Name | Description |
value | boolean
The dynamicFacet to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.Facet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setKey(String value)
public SearchResponse.Facet.Builder setKey(String value)
The key for this facet. E.g., "colorFamilies" or "price" or
"attributes.attr1".
string key = 1;
Parameter
Name | Description |
value | String
The key to set.
|
Returns
setKeyBytes(ByteString value)
public SearchResponse.Facet.Builder setKeyBytes(ByteString value)
The key for this facet. E.g., "colorFamilies" or "price" or
"attributes.attr1".
string key = 1;
Parameter
Name | Description |
value | ByteString
The bytes for key to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResponse.Facet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.Facet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setValues(int index, SearchResponse.Facet.FacetValue value)
public SearchResponse.Facet.Builder setValues(int index, SearchResponse.Facet.FacetValue value)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameters
Returns
setValues(int index, SearchResponse.Facet.FacetValue.Builder builderForValue)
public SearchResponse.Facet.Builder setValues(int index, SearchResponse.Facet.FacetValue.Builder builderForValue)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
Parameters
Returns