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

com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource 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/suggest.proto

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

/**
 * Protobuf type {@code luceneserver.SuggestNonLocalSource}
 */
public final class SuggestNonLocalSource extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:luceneserver.SuggestNonLocalSource)
    SuggestNonLocalSourceOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SuggestNonLocalSource.newBuilder() to construct.
  private SuggestNonLocalSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SuggestNonLocalSource() {
    suggestField_ = "";
    payloadField_ = "";
    contextField_ = "";
    searchTextField_ = "";
  }

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

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

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

  private int searcherCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object searcher_;
  public enum SearcherCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    INDEXGEN(1),
    VERSION(2),
    SNAPSHOT(3),
    SEARCHER_NOT_SET(0);
    private final int value;
    private SearcherCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static SearcherCase valueOf(int value) {
      return forNumber(value);
    }

    public static SearcherCase forNumber(int value) {
      switch (value) {
        case 1: return INDEXGEN;
        case 2: return VERSION;
        case 3: return SNAPSHOT;
        case 0: return SEARCHER_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public SearcherCase
  getSearcherCase() {
    return SearcherCase.forNumber(
        searcherCase_);
  }

  private int weightCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object weight_;
  public enum WeightCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    WEIGHTFIELD(5),
    WEIGHTEXPRESSION(6),
    WEIGHT_NOT_SET(0);
    private final int value;
    private WeightCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static WeightCase valueOf(int value) {
      return forNumber(value);
    }

    public static WeightCase forNumber(int value) {
      switch (value) {
        case 5: return WEIGHTFIELD;
        case 6: return WEIGHTEXPRESSION;
        case 0: return WEIGHT_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public WeightCase
  getWeightCase() {
    return WeightCase.forNumber(
        weightCase_);
  }

  public static final int INDEXGEN_FIELD_NUMBER = 1;
  /**
   * 
   *Search a generation previously returned by an indexing operation such as #addDocument.  Use this to search a non-committed (near-real-time) view of the index.
   * 
* * int64 indexGen = 1; * @return Whether the indexGen field is set. */ @java.lang.Override public boolean hasIndexGen() { return searcherCase_ == 1; } /** *
   *Search a generation previously returned by an indexing operation such as #addDocument.  Use this to search a non-committed (near-real-time) view of the index.
   * 
* * int64 indexGen = 1; * @return The indexGen. */ @java.lang.Override public long getIndexGen() { if (searcherCase_ == 1) { return (java.lang.Long) searcher_; } return 0L; } public static final int VERSION_FIELD_NUMBER = 2; /** *
   *Search a specific searcher version.  This is typically used by follow-on searches (e.g., user clicks next page, drills down, or changes sort, etc.) to get the same searcher used by the original search.
   * 
* * int64 version = 2; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return searcherCase_ == 2; } /** *
   *Search a specific searcher version.  This is typically used by follow-on searches (e.g., user clicks next page, drills down, or changes sort, etc.) to get the same searcher used by the original search.
   * 
* * int64 version = 2; * @return The version. */ @java.lang.Override public long getVersion() { if (searcherCase_ == 2) { return (java.lang.Long) searcher_; } return 0L; } public static final int SNAPSHOT_FIELD_NUMBER = 3; /** *
   *Search a snapshot previously created with #createSnapshot
   * 
* * string snapshot = 3; * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return searcherCase_ == 3; } /** *
   *Search a snapshot previously created with #createSnapshot
   * 
* * string snapshot = 3; * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = ""; if (searcherCase_ == 3) { ref = searcher_; } 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(); if (searcherCase_ == 3) { searcher_ = s; } return s; } } /** *
   *Search a snapshot previously created with #createSnapshot
   * 
* * string snapshot = 3; * @return The bytes for snapshot. */ public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = ""; if (searcherCase_ == 3) { ref = searcher_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (searcherCase_ == 3) { searcher_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUGGESTFIELD_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object suggestField_ = ""; /** *
   *Field (from stored documents) containing the suggestion text
   * 
* * string suggestField = 4; * @return The suggestField. */ @java.lang.Override public java.lang.String getSuggestField() { java.lang.Object ref = suggestField_; 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(); suggestField_ = s; return s; } } /** *
   *Field (from stored documents) containing the suggestion text
   * 
* * string suggestField = 4; * @return The bytes for suggestField. */ @java.lang.Override public com.google.protobuf.ByteString getSuggestFieldBytes() { java.lang.Object ref = suggestField_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); suggestField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEIGHTFIELD_FIELD_NUMBER = 5; /** *
   *Numeric field (from stored documents) containing the weight
   * 
* * string weightField = 5; * @return Whether the weightField field is set. */ public boolean hasWeightField() { return weightCase_ == 5; } /** *
   *Numeric field (from stored documents) containing the weight
   * 
* * string weightField = 5; * @return The weightField. */ public java.lang.String getWeightField() { java.lang.Object ref = ""; if (weightCase_ == 5) { ref = weight_; } 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(); if (weightCase_ == 5) { weight_ = s; } return s; } } /** *
   *Numeric field (from stored documents) containing the weight
   * 
* * string weightField = 5; * @return The bytes for weightField. */ public com.google.protobuf.ByteString getWeightFieldBytes() { java.lang.Object ref = ""; if (weightCase_ == 5) { ref = weight_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (weightCase_ == 5) { weight_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEIGHTEXPRESSION_FIELD_NUMBER = 6; /** *
   *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
   * 
* * string weightExpression = 6; * @return Whether the weightExpression field is set. */ public boolean hasWeightExpression() { return weightCase_ == 6; } /** *
   *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
   * 
* * string weightExpression = 6; * @return The weightExpression. */ public java.lang.String getWeightExpression() { java.lang.Object ref = ""; if (weightCase_ == 6) { ref = weight_; } 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(); if (weightCase_ == 6) { weight_ = s; } return s; } } /** *
   *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
   * 
* * string weightExpression = 6; * @return The bytes for weightExpression. */ public com.google.protobuf.ByteString getWeightExpressionBytes() { java.lang.Object ref = ""; if (weightCase_ == 6) { ref = weight_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (weightCase_ == 6) { weight_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAYLOADFIELD_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object payloadField_ = ""; /** *
   *Optional binary or string field (from stored documents) containing the payload
   * 
* * string payloadField = 7; * @return The payloadField. */ @java.lang.Override public java.lang.String getPayloadField() { java.lang.Object ref = payloadField_; 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(); payloadField_ = s; return s; } } /** *
   *Optional binary or string field (from stored documents) containing the payload
   * 
* * string payloadField = 7; * @return The bytes for payloadField. */ @java.lang.Override public com.google.protobuf.ByteString getPayloadFieldBytes() { java.lang.Object ref = payloadField_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); payloadField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTEXTFIELD_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object contextField_ = ""; /** *
   *Numeric field (from stored documents) containing the context which can be later filtered on during lookup
   * 
* * string contextField = 8; * @return The contextField. */ @java.lang.Override public java.lang.String getContextField() { java.lang.Object ref = contextField_; 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(); contextField_ = s; return s; } } /** *
   *Numeric field (from stored documents) containing the context which can be later filtered on during lookup
   * 
* * string contextField = 8; * @return The bytes for contextField. */ @java.lang.Override public com.google.protobuf.ByteString getContextFieldBytes() { java.lang.Object ref = contextField_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contextField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SEARCHTEXTFIELD_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object searchTextField_ = ""; /** *
   *Binary or string field (from stored documents) containing the multiple search texts
   * 
* * string searchTextField = 9; * @return The searchTextField. */ @java.lang.Override public java.lang.String getSearchTextField() { java.lang.Object ref = searchTextField_; 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(); searchTextField_ = s; return s; } } /** *
   *Binary or string field (from stored documents) containing the multiple search texts
   * 
* * string searchTextField = 9; * @return The bytes for searchTextField. */ @java.lang.Override public com.google.protobuf.ByteString getSearchTextFieldBytes() { java.lang.Object ref = searchTextField_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); searchTextField_ = 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 (searcherCase_ == 1) { output.writeInt64( 1, (long)((java.lang.Long) searcher_)); } if (searcherCase_ == 2) { output.writeInt64( 2, (long)((java.lang.Long) searcher_)); } if (searcherCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, searcher_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestField_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, suggestField_); } if (weightCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, weight_); } if (weightCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, weight_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadField_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, payloadField_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextField_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, contextField_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchTextField_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, searchTextField_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (searcherCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) searcher_)); } if (searcherCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 2, (long)((java.lang.Long) searcher_)); } if (searcherCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, searcher_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestField_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, suggestField_); } if (weightCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, weight_); } if (weightCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, weight_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadField_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, payloadField_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextField_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, contextField_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchTextField_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, searchTextField_); } 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.SuggestNonLocalSource)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource other = (com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) obj; if (!getSuggestField() .equals(other.getSuggestField())) return false; if (!getPayloadField() .equals(other.getPayloadField())) return false; if (!getContextField() .equals(other.getContextField())) return false; if (!getSearchTextField() .equals(other.getSearchTextField())) return false; if (!getSearcherCase().equals(other.getSearcherCase())) return false; switch (searcherCase_) { case 1: if (getIndexGen() != other.getIndexGen()) return false; break; case 2: if (getVersion() != other.getVersion()) return false; break; case 3: if (!getSnapshot() .equals(other.getSnapshot())) return false; break; case 0: default: } if (!getWeightCase().equals(other.getWeightCase())) return false; switch (weightCase_) { case 5: if (!getWeightField() .equals(other.getWeightField())) return false; break; case 6: if (!getWeightExpression() .equals(other.getWeightExpression())) return false; break; case 0: default: } 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) + SUGGESTFIELD_FIELD_NUMBER; hash = (53 * hash) + getSuggestField().hashCode(); hash = (37 * hash) + PAYLOADFIELD_FIELD_NUMBER; hash = (53 * hash) + getPayloadField().hashCode(); hash = (37 * hash) + CONTEXTFIELD_FIELD_NUMBER; hash = (53 * hash) + getContextField().hashCode(); hash = (37 * hash) + SEARCHTEXTFIELD_FIELD_NUMBER; hash = (53 * hash) + getSearchTextField().hashCode(); switch (searcherCase_) { case 1: hash = (37 * hash) + INDEXGEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndexGen()); break; case 2: hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); break; case 3: hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getSnapshot().hashCode(); break; case 0: default: } switch (weightCase_) { case 5: hash = (37 * hash) + WEIGHTFIELD_FIELD_NUMBER; hash = (53 * hash) + getWeightField().hashCode(); break; case 6: hash = (37 * hash) + WEIGHTEXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getWeightExpression().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource 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.SuggestNonLocalSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource 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.SuggestNonLocalSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource 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.SuggestNonLocalSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource 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.SuggestNonLocalSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource 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.SuggestNonLocalSource 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.SuggestNonLocalSource 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.SuggestNonLocalSource 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.SuggestNonLocalSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SuggestNonLocalSource) com.yelp.nrtsearch.server.grpc.SuggestNonLocalSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_SuggestNonLocalSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_SuggestNonLocalSource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.class, com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; suggestField_ = ""; payloadField_ = ""; contextField_ = ""; searchTextField_ = ""; searcherCase_ = 0; searcher_ = null; weightCase_ = 0; weight_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_SuggestNonLocalSource_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource build() { com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource buildPartial() { com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource result = new com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { result.suggestField_ = suggestField_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.payloadField_ = payloadField_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.contextField_ = contextField_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.searchTextField_ = searchTextField_; } } private void buildPartialOneofs(com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource result) { result.searcherCase_ = searcherCase_; result.searcher_ = this.searcher_; result.weightCase_ = weightCase_; result.weight_ = this.weight_; } @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.SuggestNonLocalSource) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource other) { if (other == com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance()) return this; if (!other.getSuggestField().isEmpty()) { suggestField_ = other.suggestField_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getPayloadField().isEmpty()) { payloadField_ = other.payloadField_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getContextField().isEmpty()) { contextField_ = other.contextField_; bitField0_ |= 0x00000080; onChanged(); } if (!other.getSearchTextField().isEmpty()) { searchTextField_ = other.searchTextField_; bitField0_ |= 0x00000100; onChanged(); } switch (other.getSearcherCase()) { case INDEXGEN: { setIndexGen(other.getIndexGen()); break; } case VERSION: { setVersion(other.getVersion()); break; } case SNAPSHOT: { searcherCase_ = 3; searcher_ = other.searcher_; onChanged(); break; } case SEARCHER_NOT_SET: { break; } } switch (other.getWeightCase()) { case WEIGHTFIELD: { weightCase_ = 5; weight_ = other.weight_; onChanged(); break; } case WEIGHTEXPRESSION: { weightCase_ = 6; weight_ = other.weight_; onChanged(); break; } case WEIGHT_NOT_SET: { break; } } 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 8: { searcher_ = input.readInt64(); searcherCase_ = 1; break; } // case 8 case 16: { searcher_ = input.readInt64(); searcherCase_ = 2; break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); searcherCase_ = 3; searcher_ = s; break; } // case 26 case 34: { suggestField_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); weightCase_ = 5; weight_ = s; break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); weightCase_ = 6; weight_ = s; break; } // case 50 case 58: { payloadField_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { contextField_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { searchTextField_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 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 searcherCase_ = 0; private java.lang.Object searcher_; public SearcherCase getSearcherCase() { return SearcherCase.forNumber( searcherCase_); } public Builder clearSearcher() { searcherCase_ = 0; searcher_ = null; onChanged(); return this; } private int weightCase_ = 0; private java.lang.Object weight_; public WeightCase getWeightCase() { return WeightCase.forNumber( weightCase_); } public Builder clearWeight() { weightCase_ = 0; weight_ = null; onChanged(); return this; } private int bitField0_; /** *
     *Search a generation previously returned by an indexing operation such as #addDocument.  Use this to search a non-committed (near-real-time) view of the index.
     * 
* * int64 indexGen = 1; * @return Whether the indexGen field is set. */ public boolean hasIndexGen() { return searcherCase_ == 1; } /** *
     *Search a generation previously returned by an indexing operation such as #addDocument.  Use this to search a non-committed (near-real-time) view of the index.
     * 
* * int64 indexGen = 1; * @return The indexGen. */ public long getIndexGen() { if (searcherCase_ == 1) { return (java.lang.Long) searcher_; } return 0L; } /** *
     *Search a generation previously returned by an indexing operation such as #addDocument.  Use this to search a non-committed (near-real-time) view of the index.
     * 
* * int64 indexGen = 1; * @param value The indexGen to set. * @return This builder for chaining. */ public Builder setIndexGen(long value) { searcherCase_ = 1; searcher_ = value; onChanged(); return this; } /** *
     *Search a generation previously returned by an indexing operation such as #addDocument.  Use this to search a non-committed (near-real-time) view of the index.
     * 
* * int64 indexGen = 1; * @return This builder for chaining. */ public Builder clearIndexGen() { if (searcherCase_ == 1) { searcherCase_ = 0; searcher_ = null; onChanged(); } return this; } /** *
     *Search a specific searcher version.  This is typically used by follow-on searches (e.g., user clicks next page, drills down, or changes sort, etc.) to get the same searcher used by the original search.
     * 
* * int64 version = 2; * @return Whether the version field is set. */ public boolean hasVersion() { return searcherCase_ == 2; } /** *
     *Search a specific searcher version.  This is typically used by follow-on searches (e.g., user clicks next page, drills down, or changes sort, etc.) to get the same searcher used by the original search.
     * 
* * int64 version = 2; * @return The version. */ public long getVersion() { if (searcherCase_ == 2) { return (java.lang.Long) searcher_; } return 0L; } /** *
     *Search a specific searcher version.  This is typically used by follow-on searches (e.g., user clicks next page, drills down, or changes sort, etc.) to get the same searcher used by the original search.
     * 
* * int64 version = 2; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { searcherCase_ = 2; searcher_ = value; onChanged(); return this; } /** *
     *Search a specific searcher version.  This is typically used by follow-on searches (e.g., user clicks next page, drills down, or changes sort, etc.) to get the same searcher used by the original search.
     * 
* * int64 version = 2; * @return This builder for chaining. */ public Builder clearVersion() { if (searcherCase_ == 2) { searcherCase_ = 0; searcher_ = null; onChanged(); } return this; } /** *
     *Search a snapshot previously created with #createSnapshot
     * 
* * string snapshot = 3; * @return Whether the snapshot field is set. */ @java.lang.Override public boolean hasSnapshot() { return searcherCase_ == 3; } /** *
     *Search a snapshot previously created with #createSnapshot
     * 
* * string snapshot = 3; * @return The snapshot. */ @java.lang.Override public java.lang.String getSnapshot() { java.lang.Object ref = ""; if (searcherCase_ == 3) { ref = searcher_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (searcherCase_ == 3) { searcher_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     *Search a snapshot previously created with #createSnapshot
     * 
* * string snapshot = 3; * @return The bytes for snapshot. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = ""; if (searcherCase_ == 3) { ref = searcher_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (searcherCase_ == 3) { searcher_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Search a snapshot previously created with #createSnapshot
     * 
* * string snapshot = 3; * @param value The snapshot to set. * @return This builder for chaining. */ public Builder setSnapshot( java.lang.String value) { if (value == null) { throw new NullPointerException(); } searcherCase_ = 3; searcher_ = value; onChanged(); return this; } /** *
     *Search a snapshot previously created with #createSnapshot
     * 
* * string snapshot = 3; * @return This builder for chaining. */ public Builder clearSnapshot() { if (searcherCase_ == 3) { searcherCase_ = 0; searcher_ = null; onChanged(); } return this; } /** *
     *Search a snapshot previously created with #createSnapshot
     * 
* * string snapshot = 3; * @param value The bytes for snapshot to set. * @return This builder for chaining. */ public Builder setSnapshotBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); searcherCase_ = 3; searcher_ = value; onChanged(); return this; } private java.lang.Object suggestField_ = ""; /** *
     *Field (from stored documents) containing the suggestion text
     * 
* * string suggestField = 4; * @return The suggestField. */ public java.lang.String getSuggestField() { java.lang.Object ref = suggestField_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); suggestField_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Field (from stored documents) containing the suggestion text
     * 
* * string suggestField = 4; * @return The bytes for suggestField. */ public com.google.protobuf.ByteString getSuggestFieldBytes() { java.lang.Object ref = suggestField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); suggestField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Field (from stored documents) containing the suggestion text
     * 
* * string suggestField = 4; * @param value The suggestField to set. * @return This builder for chaining. */ public Builder setSuggestField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } suggestField_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Field (from stored documents) containing the suggestion text
     * 
* * string suggestField = 4; * @return This builder for chaining. */ public Builder clearSuggestField() { suggestField_ = getDefaultInstance().getSuggestField(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     *Field (from stored documents) containing the suggestion text
     * 
* * string suggestField = 4; * @param value The bytes for suggestField to set. * @return This builder for chaining. */ public Builder setSuggestFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); suggestField_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Numeric field (from stored documents) containing the weight
     * 
* * string weightField = 5; * @return Whether the weightField field is set. */ @java.lang.Override public boolean hasWeightField() { return weightCase_ == 5; } /** *
     *Numeric field (from stored documents) containing the weight
     * 
* * string weightField = 5; * @return The weightField. */ @java.lang.Override public java.lang.String getWeightField() { java.lang.Object ref = ""; if (weightCase_ == 5) { ref = weight_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (weightCase_ == 5) { weight_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     *Numeric field (from stored documents) containing the weight
     * 
* * string weightField = 5; * @return The bytes for weightField. */ @java.lang.Override public com.google.protobuf.ByteString getWeightFieldBytes() { java.lang.Object ref = ""; if (weightCase_ == 5) { ref = weight_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (weightCase_ == 5) { weight_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Numeric field (from stored documents) containing the weight
     * 
* * string weightField = 5; * @param value The weightField to set. * @return This builder for chaining. */ public Builder setWeightField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } weightCase_ = 5; weight_ = value; onChanged(); return this; } /** *
     *Numeric field (from stored documents) containing the weight
     * 
* * string weightField = 5; * @return This builder for chaining. */ public Builder clearWeightField() { if (weightCase_ == 5) { weightCase_ = 0; weight_ = null; onChanged(); } return this; } /** *
     *Numeric field (from stored documents) containing the weight
     * 
* * string weightField = 5; * @param value The bytes for weightField to set. * @return This builder for chaining. */ public Builder setWeightFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); weightCase_ = 5; weight_ = value; onChanged(); return this; } /** *
     *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
     * 
* * string weightExpression = 6; * @return Whether the weightExpression field is set. */ @java.lang.Override public boolean hasWeightExpression() { return weightCase_ == 6; } /** *
     *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
     * 
* * string weightExpression = 6; * @return The weightExpression. */ @java.lang.Override public java.lang.String getWeightExpression() { java.lang.Object ref = ""; if (weightCase_ == 6) { ref = weight_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (weightCase_ == 6) { weight_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
     * 
* * string weightExpression = 6; * @return The bytes for weightExpression. */ @java.lang.Override public com.google.protobuf.ByteString getWeightExpressionBytes() { java.lang.Object ref = ""; if (weightCase_ == 6) { ref = weight_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (weightCase_ == 6) { weight_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
     * 
* * string weightExpression = 6; * @param value The weightExpression to set. * @return This builder for chaining. */ public Builder setWeightExpression( java.lang.String value) { if (value == null) { throw new NullPointerException(); } weightCase_ = 6; weight_ = value; onChanged(); return this; } /** *
     *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
     * 
* * string weightExpression = 6; * @return This builder for chaining. */ public Builder clearWeightExpression() { if (weightCase_ == 6) { weightCase_ = 0; weight_ = null; onChanged(); } return this; } /** *
     *Alternative to weightField, an expression that's evaluated to the weight. Note that any fields referenced in the expression must have been indexed with sort=true
     * 
* * string weightExpression = 6; * @param value The bytes for weightExpression to set. * @return This builder for chaining. */ public Builder setWeightExpressionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); weightCase_ = 6; weight_ = value; onChanged(); return this; } private java.lang.Object payloadField_ = ""; /** *
     *Optional binary or string field (from stored documents) containing the payload
     * 
* * string payloadField = 7; * @return The payloadField. */ public java.lang.String getPayloadField() { java.lang.Object ref = payloadField_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payloadField_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Optional binary or string field (from stored documents) containing the payload
     * 
* * string payloadField = 7; * @return The bytes for payloadField. */ public com.google.protobuf.ByteString getPayloadFieldBytes() { java.lang.Object ref = payloadField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); payloadField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Optional binary or string field (from stored documents) containing the payload
     * 
* * string payloadField = 7; * @param value The payloadField to set. * @return This builder for chaining. */ public Builder setPayloadField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } payloadField_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *Optional binary or string field (from stored documents) containing the payload
     * 
* * string payloadField = 7; * @return This builder for chaining. */ public Builder clearPayloadField() { payloadField_ = getDefaultInstance().getPayloadField(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     *Optional binary or string field (from stored documents) containing the payload
     * 
* * string payloadField = 7; * @param value The bytes for payloadField to set. * @return This builder for chaining. */ public Builder setPayloadFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payloadField_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object contextField_ = ""; /** *
     *Numeric field (from stored documents) containing the context which can be later filtered on during lookup
     * 
* * string contextField = 8; * @return The contextField. */ public java.lang.String getContextField() { java.lang.Object ref = contextField_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contextField_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Numeric field (from stored documents) containing the context which can be later filtered on during lookup
     * 
* * string contextField = 8; * @return The bytes for contextField. */ public com.google.protobuf.ByteString getContextFieldBytes() { java.lang.Object ref = contextField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contextField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Numeric field (from stored documents) containing the context which can be later filtered on during lookup
     * 
* * string contextField = 8; * @param value The contextField to set. * @return This builder for chaining. */ public Builder setContextField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contextField_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Numeric field (from stored documents) containing the context which can be later filtered on during lookup
     * 
* * string contextField = 8; * @return This builder for chaining. */ public Builder clearContextField() { contextField_ = getDefaultInstance().getContextField(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     *Numeric field (from stored documents) containing the context which can be later filtered on during lookup
     * 
* * string contextField = 8; * @param value The bytes for contextField to set. * @return This builder for chaining. */ public Builder setContextFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contextField_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object searchTextField_ = ""; /** *
     *Binary or string field (from stored documents) containing the multiple search texts
     * 
* * string searchTextField = 9; * @return The searchTextField. */ public java.lang.String getSearchTextField() { java.lang.Object ref = searchTextField_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchTextField_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Binary or string field (from stored documents) containing the multiple search texts
     * 
* * string searchTextField = 9; * @return The bytes for searchTextField. */ public com.google.protobuf.ByteString getSearchTextFieldBytes() { java.lang.Object ref = searchTextField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); searchTextField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Binary or string field (from stored documents) containing the multiple search texts
     * 
* * string searchTextField = 9; * @param value The searchTextField to set. * @return This builder for chaining. */ public Builder setSearchTextField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } searchTextField_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Binary or string field (from stored documents) containing the multiple search texts
     * 
* * string searchTextField = 9; * @return This builder for chaining. */ public Builder clearSearchTextField() { searchTextField_ = getDefaultInstance().getSearchTextField(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
     *Binary or string field (from stored documents) containing the multiple search texts
     * 
* * string searchTextField = 9; * @param value The bytes for searchTextField to set. * @return This builder for chaining. */ public Builder setSearchTextFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); searchTextField_ = value; bitField0_ |= 0x00000100; 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.SuggestNonLocalSource) } // @@protoc_insertion_point(class_scope:luceneserver.SuggestNonLocalSource) private static final com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource(); } public static com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SuggestNonLocalSource 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.SuggestNonLocalSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy