Class SearchResponse.Facet.FacetValue (0.27.0)

public static final class SearchResponse.Facet.FacetValue extends GeneratedMessageV3 implements SearchResponse.Facet.FacetValueOrBuilder

A facet value which contains value names and their count.

Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SearchResponse.Facet.FacetValue

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

INTERVAL_FIELD_NUMBER

public static final int INTERVAL_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SearchResponse.Facet.FacetValue getDefaultInstance()
Returns
TypeDescription
SearchResponse.Facet.FacetValue

getDescriptor()

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

newBuilder()

public static SearchResponse.Facet.FacetValue.Builder newBuilder()
Returns
TypeDescription
SearchResponse.Facet.FacetValue.Builder

newBuilder(SearchResponse.Facet.FacetValue prototype)

public static SearchResponse.Facet.FacetValue.Builder newBuilder(SearchResponse.Facet.FacetValue prototype)
Parameter
NameDescription
prototypeSearchResponse.Facet.FacetValue
Returns
TypeDescription
SearchResponse.Facet.FacetValue.Builder

parseDelimitedFrom(InputStream input)

public static SearchResponse.Facet.FacetValue parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchResponse.Facet.FacetValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SearchResponse.Facet.FacetValue parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SearchResponse.Facet.FacetValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SearchResponse.Facet.FacetValue parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SearchResponse.Facet.FacetValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SearchResponse.Facet.FacetValue parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchResponse.Facet.FacetValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SearchResponse.Facet.FacetValue parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchResponse.Facet.FacetValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SearchResponse.Facet.FacetValue parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SearchResponse.Facet.FacetValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchResponse.Facet.FacetValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SearchResponse.Facet.FacetValue> parser()
Returns
TypeDescription
Parser<FacetValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCount()

public long getCount()

Number of items that have this facet value.

int64 count = 3;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public SearchResponse.Facet.FacetValue getDefaultInstanceForType()
Returns
TypeDescription
SearchResponse.Facet.FacetValue

getFacetValueCase()

public SearchResponse.Facet.FacetValue.FacetValueCase getFacetValueCase()
Returns
TypeDescription
SearchResponse.Facet.FacetValue.FacetValueCase

getInterval()

public Interval getInterval()

Interval value for a facet, such as 10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals.

.google.cloud.discoveryengine.v1beta.Interval interval = 2;

Returns
TypeDescription
Interval

The interval.

getIntervalOrBuilder()

public IntervalOrBuilder getIntervalOrBuilder()

Interval value for a facet, such as 10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals.

.google.cloud.discoveryengine.v1beta.Interval interval = 2;

Returns
TypeDescription
IntervalOrBuilder

getParserForType()

public Parser<SearchResponse.Facet.FacetValue> getParserForType()
Returns
TypeDescription
Parser<FacetValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getValue()

public String getValue()

Text value of a facet, such as "Black" for facet "colors".

string value = 1;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Text value of a facet, such as "Black" for facet "colors".

string value = 1;

Returns
TypeDescription
ByteString

The bytes for value.

hasInterval()

public boolean hasInterval()

Interval value for a facet, such as 10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals.

.google.cloud.discoveryengine.v1beta.Interval interval = 2;

Returns
TypeDescription
boolean

Whether the interval field is set.

hasValue()

public boolean hasValue()

Text value of a facet, such as "Black" for facet "colors".

string value = 1;

Returns
TypeDescription
boolean

Whether the value field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SearchResponse.Facet.FacetValue.Builder newBuilderForType()
Returns
TypeDescription
SearchResponse.Facet.FacetValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SearchResponse.Facet.FacetValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SearchResponse.Facet.FacetValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SearchResponse.Facet.FacetValue.Builder toBuilder()
Returns
TypeDescription
SearchResponse.Facet.FacetValue.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException