Class SearchResponse.Facet.FacetValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue
All Implemented Interfaces:
SearchResponse.Facet.FacetValueOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
SearchResponse.Facet

public static final class SearchResponse.Facet.FacetValue extends com.google.protobuf.GeneratedMessage implements SearchResponse.Facet.FacetValueOrBuilder
 A facet value which contains value names and their count.
 
Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getFacetValueCase

      Specified by:
      getFacetValueCase in interface SearchResponse.Facet.FacetValueOrBuilder
    • hasValue

      public boolean hasValue()
       Text value of a facet, such as "Black" for facet "colors".
       
      string value = 1;
      Specified by:
      hasValue in interface SearchResponse.Facet.FacetValueOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public String getValue()
       Text value of a facet, such as "Black" for facet "colors".
       
      string value = 1;
      Specified by:
      getValue in interface SearchResponse.Facet.FacetValueOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Text value of a facet, such as "Black" for facet "colors".
       
      string value = 1;
      Specified by:
      getValueBytes in interface SearchResponse.Facet.FacetValueOrBuilder
      Returns:
      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.SearchRequest.FacetSpec.FacetKey.intervals].
       
      .google.cloud.discoveryengine.v1beta.Interval interval = 2;
      Specified by:
      hasInterval in interface SearchResponse.Facet.FacetValueOrBuilder
      Returns:
      Whether the interval field is set.
    • 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.SearchRequest.FacetSpec.FacetKey.intervals].
       
      .google.cloud.discoveryengine.v1beta.Interval interval = 2;
      Specified by:
      getInterval in interface SearchResponse.Facet.FacetValueOrBuilder
      Returns:
      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.SearchRequest.FacetSpec.FacetKey.intervals].
       
      .google.cloud.discoveryengine.v1beta.Interval interval = 2;
      Specified by:
      getIntervalOrBuilder in interface SearchResponse.Facet.FacetValueOrBuilder
    • getCount

      public long getCount()
       Number of items that have this facet value.
       
      int64 count = 3;
      Specified by:
      getCount in interface SearchResponse.Facet.FacetValueOrBuilder
      Returns:
      The count.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SearchResponse.Facet.FacetValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SearchResponse.Facet.FacetValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SearchResponse.Facet.FacetValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SearchResponse.Facet.FacetValue.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SearchResponse.Facet.FacetValue.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SearchResponse.Facet.FacetValue.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SearchResponse.Facet.FacetValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SearchResponse.Facet.FacetValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<SearchResponse.Facet.FacetValue> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SearchResponse.Facet.FacetValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder