public static final class SearchResponse.Facet extends GeneratedMessageV3 implements SearchResponse.FacetOrBuilder
A facet result.
Protobuf type google.cloud.retail.v2alpha.SearchResponse.Facet
Static Fields
DYNAMIC_FACET_FIELD_NUMBER
public static final int DYNAMIC_FACET_FIELD_NUMBER
Field Value
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
Field Value
VALUES_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SearchResponse.Facet getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SearchResponse.Facet.Builder newBuilder()
Returns
newBuilder(SearchResponse.Facet prototype)
public static SearchResponse.Facet.Builder newBuilder(SearchResponse.Facet prototype)
Parameter
Returns
public static SearchResponse.Facet parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SearchResponse.Facet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SearchResponse.Facet parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.Facet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SearchResponse.Facet parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.Facet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SearchResponse.Facet parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SearchResponse.Facet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SearchResponse.Facet parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SearchResponse.Facet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SearchResponse.Facet parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.Facet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SearchResponse.Facet> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SearchResponse.Facet getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<SearchResponse.Facet> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getValues(int index)
public SearchResponse.Facet.FacetValue getValues(int index)
The facet values for this field.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue values = 2;
Parameter
Returns
getValuesCount()
public int getValuesCount()
The facet values for this field.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue values = 2;
Returns
getValuesList()
public List<SearchResponse.Facet.FacetValue> getValuesList()
The facet values for this field.
repeated .google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.SearchResponse.Facet.FacetValue values = 2;
Returns
Type | Description |
List<? extends com.google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValueOrBuilder> | |
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SearchResponse.Facet.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchResponse.Facet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SearchResponse.Facet.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions