public static final class SearchResponse.Facet.Builder extends GeneratedMessageV3.Builder<SearchResponse.Facet.Builder> implements SearchResponse.FacetOrBuilder
A facet result.
Protobuf type google.cloud.discoveryengine.v1.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()
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.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.Facet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addValues(SearchResponse.Facet.FacetValue value)
public SearchResponse.Facet.Builder addValues(SearchResponse.Facet.FacetValue value)
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
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.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
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.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
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.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
addValuesBuilder()
public SearchResponse.Facet.FacetValue.Builder addValuesBuilder()
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
addValuesBuilder(int index)
public SearchResponse.Facet.FacetValue.Builder addValuesBuilder(int index)
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
Parameter |
---|
Name | Description |
index | int
|
build()
public SearchResponse.Facet build()
buildPartial()
public SearchResponse.Facet buildPartial()
clear()
public SearchResponse.Facet.Builder clear()
Overrides
clearDynamicFacet()
public SearchResponse.Facet.Builder clearDynamicFacet()
Whether the facet is dynamically generated.
bool dynamic_facet = 3;
clearField(Descriptors.FieldDescriptor field)
public SearchResponse.Facet.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearKey()
public SearchResponse.Facet.Builder clearKey()
The key for this facet. E.g., "colors" or "price". It matches
SearchRequest.FacetSpec.FacetKey.key.
string key = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResponse.Facet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearValues()
public SearchResponse.Facet.Builder clearValues()
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
clone()
public SearchResponse.Facet.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchResponse.Facet getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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., "colors" or "price". It matches
SearchRequest.FacetSpec.FacetKey.key.
string key = 1;
Returns |
---|
Type | Description |
String | The key.
|
getKeyBytes()
public ByteString getKeyBytes()
The key for this facet. E.g., "colors" or "price". It matches
SearchRequest.FacetSpec.FacetKey.key.
string key = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for key.
|
getValues(int index)
public SearchResponse.Facet.FacetValue getValues(int index)
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
Parameter |
---|
Name | Description |
index | int
|
getValuesBuilder(int index)
public SearchResponse.Facet.FacetValue.Builder getValuesBuilder(int index)
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
Parameter |
---|
Name | Description |
index | int
|
getValuesBuilderList()
public List<SearchResponse.Facet.FacetValue.Builder> getValuesBuilderList()
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
getValuesCount()
public int getValuesCount()
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
Returns |
---|
Type | Description |
int | |
getValuesList()
public List<SearchResponse.Facet.FacetValue> getValuesList()
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
getValuesOrBuilder(int index)
public SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder(int index)
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
Parameter |
---|
Name | Description |
index | int
|
getValuesOrBuilderList()
public List<? extends SearchResponse.Facet.FacetValueOrBuilder> getValuesOrBuilderList()
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchResponse.Facet other)
public SearchResponse.Facet.Builder mergeFrom(SearchResponse.Facet other)
public SearchResponse.Facet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchResponse.Facet.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.Facet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeValues(int index)
public SearchResponse.Facet.Builder removeValues(int index)
The facet values for this field.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
Parameter |
---|
Name | Description |
index | int
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.Facet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setKey(String value)
public SearchResponse.Facet.Builder setKey(String value)
The key for this facet. E.g., "colors" or "price". It matches
SearchRequest.FacetSpec.FacetKey.key.
string key = 1;
Parameter |
---|
Name | Description |
value | String
The key to set.
|
setKeyBytes(ByteString value)
public SearchResponse.Facet.Builder setKeyBytes(ByteString value)
The key for this facet. E.g., "colors" or "price". It matches
SearchRequest.FacetSpec.FacetKey.key.
string key = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for key to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResponse.Facet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.Facet.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;
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.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2;