All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yelp.nrtsearch.server.grpc.FacetResult Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yelp/nrtsearch/search.proto

// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;

/**
 * Protobuf type {@code luceneserver.FacetResult}
 */
public final class FacetResult extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:luceneserver.FacetResult)
    FacetResultOrBuilder {
private static final long serialVersionUID = 0L;
  // Use FacetResult.newBuilder() to construct.
  private FacetResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private FacetResult() {
    dim_ = "";
    path_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    labelValues_ = java.util.Collections.emptyList();
    name_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new FacetResult();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FacetResult_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FacetResult_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.yelp.nrtsearch.server.grpc.FacetResult.class, com.yelp.nrtsearch.server.grpc.FacetResult.Builder.class);
  }

  public static final int DIM_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object dim_ = "";
  /**
   * 
   *Dimension that was requested
   * 
* * string dim = 1; * @return The dim. */ @java.lang.Override public java.lang.String getDim() { java.lang.Object ref = dim_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dim_ = s; return s; } } /** *
   *Dimension that was requested
   * 
* * string dim = 1; * @return The bytes for dim. */ @java.lang.Override public com.google.protobuf.ByteString getDimBytes() { java.lang.Object ref = dim_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dim_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList path_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   *Path whose children were requested.
   * 
* * repeated string path = 2; * @return A list containing the path. */ public com.google.protobuf.ProtocolStringList getPathList() { return path_; } /** *
   *Path whose children were requested.
   * 
* * repeated string path = 2; * @return The count of path. */ public int getPathCount() { return path_.size(); } /** *
   *Path whose children were requested.
   * 
* * repeated string path = 2; * @param index The index of the element to return. * @return The path at the given index. */ public java.lang.String getPath(int index) { return path_.get(index); } /** *
   *Path whose children were requested.
   * 
* * repeated string path = 2; * @param index The index of the value to return. * @return The bytes of the path at the given index. */ public com.google.protobuf.ByteString getPathBytes(int index) { return path_.getByteString(index); } public static final int VALUE_FIELD_NUMBER = 3; private double value_ = 0D; /** *
   *Total value for this path (sum of all child counts, or sum of all child values), even those not included in the topN.
   * 
* * double value = 3; * @return The value. */ @java.lang.Override public double getValue() { return value_; } public static final int LABELVALUES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List labelValues_; /** *
   * Child counts.
   * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ @java.lang.Override public java.util.List getLabelValuesList() { return labelValues_; } /** *
   * Child counts.
   * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ @java.lang.Override public java.util.List getLabelValuesOrBuilderList() { return labelValues_; } /** *
   * Child counts.
   * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ @java.lang.Override public int getLabelValuesCount() { return labelValues_.size(); } /** *
   * Child counts.
   * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.LabelAndValue getLabelValues(int index) { return labelValues_.get(index); } /** *
   * Child counts.
   * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.LabelAndValueOrBuilder getLabelValuesOrBuilder( int index) { return labelValues_.get(index); } public static final int CHILDCOUNT_FIELD_NUMBER = 5; private long childCount_ = 0L; /** *
   *How many child labels were encountered.
   * 
* * int64 childCount = 5; * @return The childCount. */ @java.lang.Override public long getChildCount() { return childCount_; } public static final int NAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   *Name for this facet
   * 
* * string name = 6; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   *Name for this facet
   * 
* * string name = 6; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dim_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dim_); } for (int i = 0; i < path_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_.getRaw(i)); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(3, value_); } for (int i = 0; i < labelValues_.size(); i++) { output.writeMessage(4, labelValues_.get(i)); } if (childCount_ != 0L) { output.writeInt64(5, childCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dim_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dim_); } { int dataSize = 0; for (int i = 0; i < path_.size(); i++) { dataSize += computeStringSizeNoTag(path_.getRaw(i)); } size += dataSize; size += 1 * getPathList().size(); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, value_); } for (int i = 0; i < labelValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, labelValues_.get(i)); } if (childCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, childCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yelp.nrtsearch.server.grpc.FacetResult)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.FacetResult other = (com.yelp.nrtsearch.server.grpc.FacetResult) obj; if (!getDim() .equals(other.getDim())) return false; if (!getPathList() .equals(other.getPathList())) return false; if (java.lang.Double.doubleToLongBits(getValue()) != java.lang.Double.doubleToLongBits( other.getValue())) return false; if (!getLabelValuesList() .equals(other.getLabelValuesList())) return false; if (getChildCount() != other.getChildCount()) return false; if (!getName() .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DIM_FIELD_NUMBER; hash = (53 * hash) + getDim().hashCode(); if (getPathCount() > 0) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPathList().hashCode(); } hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); if (getLabelValuesCount() > 0) { hash = (37 * hash) + LABELVALUES_FIELD_NUMBER; hash = (53 * hash) + getLabelValuesList().hashCode(); } hash = (37 * hash) + CHILDCOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getChildCount()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.FacetResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.yelp.nrtsearch.server.grpc.FacetResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code luceneserver.FacetResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.FacetResult) com.yelp.nrtsearch.server.grpc.FacetResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FacetResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FacetResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.FacetResult.class, com.yelp.nrtsearch.server.grpc.FacetResult.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.FacetResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; dim_ = ""; path_ = com.google.protobuf.LazyStringArrayList.emptyList(); value_ = 0D; if (labelValuesBuilder_ == null) { labelValues_ = java.util.Collections.emptyList(); } else { labelValues_ = null; labelValuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); childCount_ = 0L; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FacetResult_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetResult getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.FacetResult.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetResult build() { com.yelp.nrtsearch.server.grpc.FacetResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetResult buildPartial() { com.yelp.nrtsearch.server.grpc.FacetResult result = new com.yelp.nrtsearch.server.grpc.FacetResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.FacetResult result) { if (labelValuesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { labelValues_ = java.util.Collections.unmodifiableList(labelValues_); bitField0_ = (bitField0_ & ~0x00000008); } result.labelValues_ = labelValues_; } else { result.labelValues_ = labelValuesBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.FacetResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.dim_ = dim_; } if (((from_bitField0_ & 0x00000002) != 0)) { path_.makeImmutable(); result.path_ = path_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.value_ = value_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.childCount_ = childCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.name_ = name_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yelp.nrtsearch.server.grpc.FacetResult) { return mergeFrom((com.yelp.nrtsearch.server.grpc.FacetResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.FacetResult other) { if (other == com.yelp.nrtsearch.server.grpc.FacetResult.getDefaultInstance()) return this; if (!other.getDim().isEmpty()) { dim_ = other.dim_; bitField0_ |= 0x00000001; onChanged(); } if (!other.path_.isEmpty()) { if (path_.isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; } else { ensurePathIsMutable(); path_.addAll(other.path_); } onChanged(); } if (other.getValue() != 0D) { setValue(other.getValue()); } if (labelValuesBuilder_ == null) { if (!other.labelValues_.isEmpty()) { if (labelValues_.isEmpty()) { labelValues_ = other.labelValues_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureLabelValuesIsMutable(); labelValues_.addAll(other.labelValues_); } onChanged(); } } else { if (!other.labelValues_.isEmpty()) { if (labelValuesBuilder_.isEmpty()) { labelValuesBuilder_.dispose(); labelValuesBuilder_ = null; labelValues_ = other.labelValues_; bitField0_ = (bitField0_ & ~0x00000008); labelValuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelValuesFieldBuilder() : null; } else { labelValuesBuilder_.addAllMessages(other.labelValues_); } } } if (other.getChildCount() != 0L) { setChildCount(other.getChildCount()); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { dim_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensurePathIsMutable(); path_.add(s); break; } // case 18 case 25: { value_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 34: { com.yelp.nrtsearch.server.grpc.LabelAndValue m = input.readMessage( com.yelp.nrtsearch.server.grpc.LabelAndValue.parser(), extensionRegistry); if (labelValuesBuilder_ == null) { ensureLabelValuesIsMutable(); labelValues_.add(m); } else { labelValuesBuilder_.addMessage(m); } break; } // case 34 case 40: { childCount_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object dim_ = ""; /** *
     *Dimension that was requested
     * 
* * string dim = 1; * @return The dim. */ public java.lang.String getDim() { java.lang.Object ref = dim_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dim_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Dimension that was requested
     * 
* * string dim = 1; * @return The bytes for dim. */ public com.google.protobuf.ByteString getDimBytes() { java.lang.Object ref = dim_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dim_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Dimension that was requested
     * 
* * string dim = 1; * @param value The dim to set. * @return This builder for chaining. */ public Builder setDim( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dim_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Dimension that was requested
     * 
* * string dim = 1; * @return This builder for chaining. */ public Builder clearDim() { dim_ = getDefaultInstance().getDim(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *Dimension that was requested
     * 
* * string dim = 1; * @param value The bytes for dim to set. * @return This builder for chaining. */ public Builder setDimBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dim_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList path_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePathIsMutable() { if (!path_.isModifiable()) { path_ = new com.google.protobuf.LazyStringArrayList(path_); } bitField0_ |= 0x00000002; } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @return A list containing the path. */ public com.google.protobuf.ProtocolStringList getPathList() { path_.makeImmutable(); return path_; } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @return The count of path. */ public int getPathCount() { return path_.size(); } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @param index The index of the element to return. * @return The path at the given index. */ public java.lang.String getPath(int index) { return path_.get(index); } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @param index The index of the value to return. * @return The bytes of the path at the given index. */ public com.google.protobuf.ByteString getPathBytes(int index) { return path_.getByteString(index); } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @param index The index to set the value at. * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePathIsMutable(); path_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @param value The path to add. * @return This builder for chaining. */ public Builder addPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePathIsMutable(); path_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @param values The path to add. * @return This builder for chaining. */ public Builder addAllPath( java.lang.Iterable values) { ensurePathIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, path_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     *Path whose children were requested.
     * 
* * repeated string path = 2; * @param value The bytes of the path to add. * @return This builder for chaining. */ public Builder addPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePathIsMutable(); path_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private double value_ ; /** *
     *Total value for this path (sum of all child counts, or sum of all child values), even those not included in the topN.
     * 
* * double value = 3; * @return The value. */ @java.lang.Override public double getValue() { return value_; } /** *
     *Total value for this path (sum of all child counts, or sum of all child values), even those not included in the topN.
     * 
* * double value = 3; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(double value) { value_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Total value for this path (sum of all child counts, or sum of all child values), even those not included in the topN.
     * 
* * double value = 3; * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = 0D; onChanged(); return this; } private java.util.List labelValues_ = java.util.Collections.emptyList(); private void ensureLabelValuesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { labelValues_ = new java.util.ArrayList(labelValues_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.LabelAndValue, com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder, com.yelp.nrtsearch.server.grpc.LabelAndValueOrBuilder> labelValuesBuilder_; /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public java.util.List getLabelValuesList() { if (labelValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(labelValues_); } else { return labelValuesBuilder_.getMessageList(); } } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public int getLabelValuesCount() { if (labelValuesBuilder_ == null) { return labelValues_.size(); } else { return labelValuesBuilder_.getCount(); } } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public com.yelp.nrtsearch.server.grpc.LabelAndValue getLabelValues(int index) { if (labelValuesBuilder_ == null) { return labelValues_.get(index); } else { return labelValuesBuilder_.getMessage(index); } } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder setLabelValues( int index, com.yelp.nrtsearch.server.grpc.LabelAndValue value) { if (labelValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelValuesIsMutable(); labelValues_.set(index, value); onChanged(); } else { labelValuesBuilder_.setMessage(index, value); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder setLabelValues( int index, com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder builderForValue) { if (labelValuesBuilder_ == null) { ensureLabelValuesIsMutable(); labelValues_.set(index, builderForValue.build()); onChanged(); } else { labelValuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder addLabelValues(com.yelp.nrtsearch.server.grpc.LabelAndValue value) { if (labelValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelValuesIsMutable(); labelValues_.add(value); onChanged(); } else { labelValuesBuilder_.addMessage(value); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder addLabelValues( int index, com.yelp.nrtsearch.server.grpc.LabelAndValue value) { if (labelValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelValuesIsMutable(); labelValues_.add(index, value); onChanged(); } else { labelValuesBuilder_.addMessage(index, value); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder addLabelValues( com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder builderForValue) { if (labelValuesBuilder_ == null) { ensureLabelValuesIsMutable(); labelValues_.add(builderForValue.build()); onChanged(); } else { labelValuesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder addLabelValues( int index, com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder builderForValue) { if (labelValuesBuilder_ == null) { ensureLabelValuesIsMutable(); labelValues_.add(index, builderForValue.build()); onChanged(); } else { labelValuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder addAllLabelValues( java.lang.Iterable values) { if (labelValuesBuilder_ == null) { ensureLabelValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, labelValues_); onChanged(); } else { labelValuesBuilder_.addAllMessages(values); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder clearLabelValues() { if (labelValuesBuilder_ == null) { labelValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { labelValuesBuilder_.clear(); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public Builder removeLabelValues(int index) { if (labelValuesBuilder_ == null) { ensureLabelValuesIsMutable(); labelValues_.remove(index); onChanged(); } else { labelValuesBuilder_.remove(index); } return this; } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder getLabelValuesBuilder( int index) { return getLabelValuesFieldBuilder().getBuilder(index); } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public com.yelp.nrtsearch.server.grpc.LabelAndValueOrBuilder getLabelValuesOrBuilder( int index) { if (labelValuesBuilder_ == null) { return labelValues_.get(index); } else { return labelValuesBuilder_.getMessageOrBuilder(index); } } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public java.util.List getLabelValuesOrBuilderList() { if (labelValuesBuilder_ != null) { return labelValuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(labelValues_); } } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder addLabelValuesBuilder() { return getLabelValuesFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.LabelAndValue.getDefaultInstance()); } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder addLabelValuesBuilder( int index) { return getLabelValuesFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.LabelAndValue.getDefaultInstance()); } /** *
     * Child counts.
     * 
* * repeated .luceneserver.LabelAndValue labelValues = 4; */ public java.util.List getLabelValuesBuilderList() { return getLabelValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.LabelAndValue, com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder, com.yelp.nrtsearch.server.grpc.LabelAndValueOrBuilder> getLabelValuesFieldBuilder() { if (labelValuesBuilder_ == null) { labelValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.LabelAndValue, com.yelp.nrtsearch.server.grpc.LabelAndValue.Builder, com.yelp.nrtsearch.server.grpc.LabelAndValueOrBuilder>( labelValues_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); labelValues_ = null; } return labelValuesBuilder_; } private long childCount_ ; /** *
     *How many child labels were encountered.
     * 
* * int64 childCount = 5; * @return The childCount. */ @java.lang.Override public long getChildCount() { return childCount_; } /** *
     *How many child labels were encountered.
     * 
* * int64 childCount = 5; * @param value The childCount to set. * @return This builder for chaining. */ public Builder setChildCount(long value) { childCount_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *How many child labels were encountered.
     * 
* * int64 childCount = 5; * @return This builder for chaining. */ public Builder clearChildCount() { bitField0_ = (bitField0_ & ~0x00000010); childCount_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     *Name for this facet
     * 
* * string name = 6; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Name for this facet
     * 
* * string name = 6; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Name for this facet
     * 
* * string name = 6; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Name for this facet
     * 
* * string name = 6; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     *Name for this facet
     * 
* * string name = 6; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:luceneserver.FacetResult) } // @@protoc_insertion_point(class_scope:luceneserver.FacetResult) private static final com.yelp.nrtsearch.server.grpc.FacetResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.FacetResult(); } public static com.yelp.nrtsearch.server.grpc.FacetResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FacetResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy