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

com.yelp.nrtsearch.server.grpc.Script 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.Script}
 */
public final class Script extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:luceneserver.Script)
    ScriptOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Script.newBuilder() to construct.
  private Script(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Script() {
    lang_ = "";
    source_ = "";
  }

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

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

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
      int number) {
    switch (number) {
      case 7:
        return internalGetParams();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.yelp.nrtsearch.server.grpc.Script.class, com.yelp.nrtsearch.server.grpc.Script.Builder.class);
  }

  /**
   * 
   * null parameter value
   * 
* * Protobuf enum {@code luceneserver.Script.ParamNullValue} */ public enum ParamNullValue implements com.google.protobuf.ProtocolMessageEnum { /** * NULL_VALUE = 0; */ NULL_VALUE(0), UNRECOGNIZED(-1), ; /** * NULL_VALUE = 0; */ public static final int NULL_VALUE_VALUE = 0; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ParamNullValue valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ParamNullValue forNumber(int value) { switch (value) { case 0: return NULL_VALUE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ParamNullValue> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ParamNullValue findValueByNumber(int number) { return ParamNullValue.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.Script.getDescriptor().getEnumTypes().get(0); } private static final ParamNullValue[] VALUES = values(); public static ParamNullValue valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ParamNullValue(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:luceneserver.Script.ParamNullValue) } public interface ParamValueOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.Script.ParamValue) com.google.protobuf.MessageOrBuilder { /** * string textValue = 1; * @return Whether the textValue field is set. */ boolean hasTextValue(); /** * string textValue = 1; * @return The textValue. */ java.lang.String getTextValue(); /** * string textValue = 1; * @return The bytes for textValue. */ com.google.protobuf.ByteString getTextValueBytes(); /** * bool booleanValue = 2; * @return Whether the booleanValue field is set. */ boolean hasBooleanValue(); /** * bool booleanValue = 2; * @return The booleanValue. */ boolean getBooleanValue(); /** * int32 intValue = 3; * @return Whether the intValue field is set. */ boolean hasIntValue(); /** * int32 intValue = 3; * @return The intValue. */ int getIntValue(); /** * int64 longValue = 4; * @return Whether the longValue field is set. */ boolean hasLongValue(); /** * int64 longValue = 4; * @return The longValue. */ long getLongValue(); /** * float floatValue = 5; * @return Whether the floatValue field is set. */ boolean hasFloatValue(); /** * float floatValue = 5; * @return The floatValue. */ float getFloatValue(); /** * double doubleValue = 6; * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** * double doubleValue = 6; * @return The doubleValue. */ double getDoubleValue(); /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return Whether the nullValue field is set. */ boolean hasNullValue(); /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return The enum numeric value on the wire for nullValue. */ int getNullValueValue(); /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return The nullValue. */ com.yelp.nrtsearch.server.grpc.Script.ParamNullValue getNullValue(); /** * .luceneserver.Script.ParamListValue listValue = 8; * @return Whether the listValue field is set. */ boolean hasListValue(); /** * .luceneserver.Script.ParamListValue listValue = 8; * @return The listValue. */ com.yelp.nrtsearch.server.grpc.Script.ParamListValue getListValue(); /** * .luceneserver.Script.ParamListValue listValue = 8; */ com.yelp.nrtsearch.server.grpc.Script.ParamListValueOrBuilder getListValueOrBuilder(); /** * .luceneserver.Script.ParamStructValue structValue = 9; * @return Whether the structValue field is set. */ boolean hasStructValue(); /** * .luceneserver.Script.ParamStructValue structValue = 9; * @return The structValue. */ com.yelp.nrtsearch.server.grpc.Script.ParamStructValue getStructValue(); /** * .luceneserver.Script.ParamStructValue structValue = 9; */ com.yelp.nrtsearch.server.grpc.Script.ParamStructValueOrBuilder getStructValueOrBuilder(); /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; * @return Whether the floatVectorValue field is set. */ boolean hasFloatVectorValue(); /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; * @return The floatVectorValue. */ com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue getFloatVectorValue(); /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValueOrBuilder getFloatVectorValueOrBuilder(); com.yelp.nrtsearch.server.grpc.Script.ParamValue.ParamValuesCase getParamValuesCase(); } /** *
   * script parameter entry
   * 
* * Protobuf type {@code luceneserver.Script.ParamValue} */ public static final class ParamValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.Script.ParamValue) ParamValueOrBuilder { private static final long serialVersionUID = 0L; // Use ParamValue.newBuilder() to construct. private ParamValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ParamValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ParamValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.ParamValue.class, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder.class); } private int paramValuesCase_ = 0; @SuppressWarnings("serial") private java.lang.Object paramValues_; public enum ParamValuesCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXTVALUE(1), BOOLEANVALUE(2), INTVALUE(3), LONGVALUE(4), FLOATVALUE(5), DOUBLEVALUE(6), NULLVALUE(7), LISTVALUE(8), STRUCTVALUE(9), FLOATVECTORVALUE(10), PARAMVALUES_NOT_SET(0); private final int value; private ParamValuesCase(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 ParamValuesCase valueOf(int value) { return forNumber(value); } public static ParamValuesCase forNumber(int value) { switch (value) { case 1: return TEXTVALUE; case 2: return BOOLEANVALUE; case 3: return INTVALUE; case 4: return LONGVALUE; case 5: return FLOATVALUE; case 6: return DOUBLEVALUE; case 7: return NULLVALUE; case 8: return LISTVALUE; case 9: return STRUCTVALUE; case 10: return FLOATVECTORVALUE; case 0: return PARAMVALUES_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ParamValuesCase getParamValuesCase() { return ParamValuesCase.forNumber( paramValuesCase_); } public static final int TEXTVALUE_FIELD_NUMBER = 1; /** * string textValue = 1; * @return Whether the textValue field is set. */ public boolean hasTextValue() { return paramValuesCase_ == 1; } /** * string textValue = 1; * @return The textValue. */ public java.lang.String getTextValue() { java.lang.Object ref = ""; if (paramValuesCase_ == 1) { ref = paramValues_; } 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 (paramValuesCase_ == 1) { paramValues_ = s; } return s; } } /** * string textValue = 1; * @return The bytes for textValue. */ public com.google.protobuf.ByteString getTextValueBytes() { java.lang.Object ref = ""; if (paramValuesCase_ == 1) { ref = paramValues_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (paramValuesCase_ == 1) { paramValues_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOOLEANVALUE_FIELD_NUMBER = 2; /** * bool booleanValue = 2; * @return Whether the booleanValue field is set. */ @java.lang.Override public boolean hasBooleanValue() { return paramValuesCase_ == 2; } /** * bool booleanValue = 2; * @return The booleanValue. */ @java.lang.Override public boolean getBooleanValue() { if (paramValuesCase_ == 2) { return (java.lang.Boolean) paramValues_; } return false; } public static final int INTVALUE_FIELD_NUMBER = 3; /** * int32 intValue = 3; * @return Whether the intValue field is set. */ @java.lang.Override public boolean hasIntValue() { return paramValuesCase_ == 3; } /** * int32 intValue = 3; * @return The intValue. */ @java.lang.Override public int getIntValue() { if (paramValuesCase_ == 3) { return (java.lang.Integer) paramValues_; } return 0; } public static final int LONGVALUE_FIELD_NUMBER = 4; /** * int64 longValue = 4; * @return Whether the longValue field is set. */ @java.lang.Override public boolean hasLongValue() { return paramValuesCase_ == 4; } /** * int64 longValue = 4; * @return The longValue. */ @java.lang.Override public long getLongValue() { if (paramValuesCase_ == 4) { return (java.lang.Long) paramValues_; } return 0L; } public static final int FLOATVALUE_FIELD_NUMBER = 5; /** * float floatValue = 5; * @return Whether the floatValue field is set. */ @java.lang.Override public boolean hasFloatValue() { return paramValuesCase_ == 5; } /** * float floatValue = 5; * @return The floatValue. */ @java.lang.Override public float getFloatValue() { if (paramValuesCase_ == 5) { return (java.lang.Float) paramValues_; } return 0F; } public static final int DOUBLEVALUE_FIELD_NUMBER = 6; /** * double doubleValue = 6; * @return Whether the doubleValue field is set. */ @java.lang.Override public boolean hasDoubleValue() { return paramValuesCase_ == 6; } /** * double doubleValue = 6; * @return The doubleValue. */ @java.lang.Override public double getDoubleValue() { if (paramValuesCase_ == 6) { return (java.lang.Double) paramValues_; } return 0D; } public static final int NULLVALUE_FIELD_NUMBER = 7; /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return Whether the nullValue field is set. */ public boolean hasNullValue() { return paramValuesCase_ == 7; } /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return The enum numeric value on the wire for nullValue. */ public int getNullValueValue() { if (paramValuesCase_ == 7) { return (java.lang.Integer) paramValues_; } return 0; } /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return The nullValue. */ public com.yelp.nrtsearch.server.grpc.Script.ParamNullValue getNullValue() { if (paramValuesCase_ == 7) { com.yelp.nrtsearch.server.grpc.Script.ParamNullValue result = com.yelp.nrtsearch.server.grpc.Script.ParamNullValue.forNumber( (java.lang.Integer) paramValues_); return result == null ? com.yelp.nrtsearch.server.grpc.Script.ParamNullValue.UNRECOGNIZED : result; } return com.yelp.nrtsearch.server.grpc.Script.ParamNullValue.NULL_VALUE; } public static final int LISTVALUE_FIELD_NUMBER = 8; /** * .luceneserver.Script.ParamListValue listValue = 8; * @return Whether the listValue field is set. */ @java.lang.Override public boolean hasListValue() { return paramValuesCase_ == 8; } /** * .luceneserver.Script.ParamListValue listValue = 8; * @return The listValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamListValue getListValue() { if (paramValuesCase_ == 8) { return (com.yelp.nrtsearch.server.grpc.Script.ParamListValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance(); } /** * .luceneserver.Script.ParamListValue listValue = 8; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamListValueOrBuilder getListValueOrBuilder() { if (paramValuesCase_ == 8) { return (com.yelp.nrtsearch.server.grpc.Script.ParamListValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance(); } public static final int STRUCTVALUE_FIELD_NUMBER = 9; /** * .luceneserver.Script.ParamStructValue structValue = 9; * @return Whether the structValue field is set. */ @java.lang.Override public boolean hasStructValue() { return paramValuesCase_ == 9; } /** * .luceneserver.Script.ParamStructValue structValue = 9; * @return The structValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamStructValue getStructValue() { if (paramValuesCase_ == 9) { return (com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance(); } /** * .luceneserver.Script.ParamStructValue structValue = 9; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamStructValueOrBuilder getStructValueOrBuilder() { if (paramValuesCase_ == 9) { return (com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance(); } public static final int FLOATVECTORVALUE_FIELD_NUMBER = 10; /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; * @return Whether the floatVectorValue field is set. */ @java.lang.Override public boolean hasFloatVectorValue() { return paramValuesCase_ == 10; } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; * @return The floatVectorValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue getFloatVectorValue() { if (paramValuesCase_ == 10) { return (com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance(); } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValueOrBuilder getFloatVectorValueOrBuilder() { if (paramValuesCase_ == 10) { return (com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance(); } 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 (paramValuesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paramValues_); } if (paramValuesCase_ == 2) { output.writeBool( 2, (boolean)((java.lang.Boolean) paramValues_)); } if (paramValuesCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) paramValues_)); } if (paramValuesCase_ == 4) { output.writeInt64( 4, (long)((java.lang.Long) paramValues_)); } if (paramValuesCase_ == 5) { output.writeFloat( 5, (float)((java.lang.Float) paramValues_)); } if (paramValuesCase_ == 6) { output.writeDouble( 6, (double)((java.lang.Double) paramValues_)); } if (paramValuesCase_ == 7) { output.writeEnum(7, ((java.lang.Integer) paramValues_)); } if (paramValuesCase_ == 8) { output.writeMessage(8, (com.yelp.nrtsearch.server.grpc.Script.ParamListValue) paramValues_); } if (paramValuesCase_ == 9) { output.writeMessage(9, (com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) paramValues_); } if (paramValuesCase_ == 10) { output.writeMessage(10, (com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) paramValues_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (paramValuesCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, paramValues_); } if (paramValuesCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 2, (boolean)((java.lang.Boolean) paramValues_)); } if (paramValuesCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) paramValues_)); } if (paramValuesCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 4, (long)((java.lang.Long) paramValues_)); } if (paramValuesCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeFloatSize( 5, (float)((java.lang.Float) paramValues_)); } if (paramValuesCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 6, (double)((java.lang.Double) paramValues_)); } if (paramValuesCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, ((java.lang.Integer) paramValues_)); } if (paramValuesCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.yelp.nrtsearch.server.grpc.Script.ParamListValue) paramValues_); } if (paramValuesCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) paramValues_); } if (paramValuesCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) paramValues_); } 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.Script.ParamValue)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.Script.ParamValue other = (com.yelp.nrtsearch.server.grpc.Script.ParamValue) obj; if (!getParamValuesCase().equals(other.getParamValuesCase())) return false; switch (paramValuesCase_) { case 1: if (!getTextValue() .equals(other.getTextValue())) return false; break; case 2: if (getBooleanValue() != other.getBooleanValue()) return false; break; case 3: if (getIntValue() != other.getIntValue()) return false; break; case 4: if (getLongValue() != other.getLongValue()) return false; break; case 5: if (java.lang.Float.floatToIntBits(getFloatValue()) != java.lang.Float.floatToIntBits( other.getFloatValue())) return false; break; case 6: if (java.lang.Double.doubleToLongBits(getDoubleValue()) != java.lang.Double.doubleToLongBits( other.getDoubleValue())) return false; break; case 7: if (getNullValueValue() != other.getNullValueValue()) return false; break; case 8: if (!getListValue() .equals(other.getListValue())) return false; break; case 9: if (!getStructValue() .equals(other.getStructValue())) return false; break; case 10: if (!getFloatVectorValue() .equals(other.getFloatVectorValue())) 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(); switch (paramValuesCase_) { case 1: hash = (37 * hash) + TEXTVALUE_FIELD_NUMBER; hash = (53 * hash) + getTextValue().hashCode(); break; case 2: hash = (37 * hash) + BOOLEANVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBooleanValue()); break; case 3: hash = (37 * hash) + INTVALUE_FIELD_NUMBER; hash = (53 * hash) + getIntValue(); break; case 4: hash = (37 * hash) + LONGVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLongValue()); break; case 5: hash = (37 * hash) + FLOATVALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloatValue()); break; case 6: hash = (37 * hash) + DOUBLEVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 7: hash = (37 * hash) + NULLVALUE_FIELD_NUMBER; hash = (53 * hash) + getNullValueValue(); break; case 8: hash = (37 * hash) + LISTVALUE_FIELD_NUMBER; hash = (53 * hash) + getListValue().hashCode(); break; case 9: hash = (37 * hash) + STRUCTVALUE_FIELD_NUMBER; hash = (53 * hash) + getStructValue().hashCode(); break; case 10: hash = (37 * hash) + FLOATVECTORVALUE_FIELD_NUMBER; hash = (53 * hash) + getFloatVectorValue().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.Script.ParamValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamValue 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.Script.ParamValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamValue 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.Script.ParamValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamValue 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.Script.ParamValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script.ParamValue 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.Script.ParamValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script.ParamValue 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.Script.ParamValue 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.Script.ParamValue 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.Script.ParamValue 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; } /** *
     * script parameter entry
     * 
* * Protobuf type {@code luceneserver.Script.ParamValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.Script.ParamValue) com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.ParamValue.class, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.Script.ParamValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (listValueBuilder_ != null) { listValueBuilder_.clear(); } if (structValueBuilder_ != null) { structValueBuilder_.clear(); } if (floatVectorValueBuilder_ != null) { floatVectorValueBuilder_.clear(); } paramValuesCase_ = 0; paramValues_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamValue_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.Script.ParamValue.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue build() { com.yelp.nrtsearch.server.grpc.Script.ParamValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue buildPartial() { com.yelp.nrtsearch.server.grpc.Script.ParamValue result = new com.yelp.nrtsearch.server.grpc.Script.ParamValue(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.Script.ParamValue result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.yelp.nrtsearch.server.grpc.Script.ParamValue result) { result.paramValuesCase_ = paramValuesCase_; result.paramValues_ = this.paramValues_; if (paramValuesCase_ == 8 && listValueBuilder_ != null) { result.paramValues_ = listValueBuilder_.build(); } if (paramValuesCase_ == 9 && structValueBuilder_ != null) { result.paramValues_ = structValueBuilder_.build(); } if (paramValuesCase_ == 10 && floatVectorValueBuilder_ != null) { result.paramValues_ = floatVectorValueBuilder_.build(); } } @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.Script.ParamValue) { return mergeFrom((com.yelp.nrtsearch.server.grpc.Script.ParamValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.Script.ParamValue other) { if (other == com.yelp.nrtsearch.server.grpc.Script.ParamValue.getDefaultInstance()) return this; switch (other.getParamValuesCase()) { case TEXTVALUE: { paramValuesCase_ = 1; paramValues_ = other.paramValues_; onChanged(); break; } case BOOLEANVALUE: { setBooleanValue(other.getBooleanValue()); break; } case INTVALUE: { setIntValue(other.getIntValue()); break; } case LONGVALUE: { setLongValue(other.getLongValue()); break; } case FLOATVALUE: { setFloatValue(other.getFloatValue()); break; } case DOUBLEVALUE: { setDoubleValue(other.getDoubleValue()); break; } case NULLVALUE: { setNullValueValue(other.getNullValueValue()); break; } case LISTVALUE: { mergeListValue(other.getListValue()); break; } case STRUCTVALUE: { mergeStructValue(other.getStructValue()); break; } case FLOATVECTORVALUE: { mergeFloatVectorValue(other.getFloatVectorValue()); break; } case PARAMVALUES_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 10: { java.lang.String s = input.readStringRequireUtf8(); paramValuesCase_ = 1; paramValues_ = s; break; } // case 10 case 16: { paramValues_ = input.readBool(); paramValuesCase_ = 2; break; } // case 16 case 24: { paramValues_ = input.readInt32(); paramValuesCase_ = 3; break; } // case 24 case 32: { paramValues_ = input.readInt64(); paramValuesCase_ = 4; break; } // case 32 case 45: { paramValues_ = input.readFloat(); paramValuesCase_ = 5; break; } // case 45 case 49: { paramValues_ = input.readDouble(); paramValuesCase_ = 6; break; } // case 49 case 56: { int rawValue = input.readEnum(); paramValuesCase_ = 7; paramValues_ = rawValue; break; } // case 56 case 66: { input.readMessage( getListValueFieldBuilder().getBuilder(), extensionRegistry); paramValuesCase_ = 8; break; } // case 66 case 74: { input.readMessage( getStructValueFieldBuilder().getBuilder(), extensionRegistry); paramValuesCase_ = 9; break; } // case 74 case 82: { input.readMessage( getFloatVectorValueFieldBuilder().getBuilder(), extensionRegistry); paramValuesCase_ = 10; break; } // case 82 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 paramValuesCase_ = 0; private java.lang.Object paramValues_; public ParamValuesCase getParamValuesCase() { return ParamValuesCase.forNumber( paramValuesCase_); } public Builder clearParamValues() { paramValuesCase_ = 0; paramValues_ = null; onChanged(); return this; } private int bitField0_; /** * string textValue = 1; * @return Whether the textValue field is set. */ @java.lang.Override public boolean hasTextValue() { return paramValuesCase_ == 1; } /** * string textValue = 1; * @return The textValue. */ @java.lang.Override public java.lang.String getTextValue() { java.lang.Object ref = ""; if (paramValuesCase_ == 1) { ref = paramValues_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (paramValuesCase_ == 1) { paramValues_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string textValue = 1; * @return The bytes for textValue. */ @java.lang.Override public com.google.protobuf.ByteString getTextValueBytes() { java.lang.Object ref = ""; if (paramValuesCase_ == 1) { ref = paramValues_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (paramValuesCase_ == 1) { paramValues_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string textValue = 1; * @param value The textValue to set. * @return This builder for chaining. */ public Builder setTextValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } paramValuesCase_ = 1; paramValues_ = value; onChanged(); return this; } /** * string textValue = 1; * @return This builder for chaining. */ public Builder clearTextValue() { if (paramValuesCase_ == 1) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } return this; } /** * string textValue = 1; * @param value The bytes for textValue to set. * @return This builder for chaining. */ public Builder setTextValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paramValuesCase_ = 1; paramValues_ = value; onChanged(); return this; } /** * bool booleanValue = 2; * @return Whether the booleanValue field is set. */ public boolean hasBooleanValue() { return paramValuesCase_ == 2; } /** * bool booleanValue = 2; * @return The booleanValue. */ public boolean getBooleanValue() { if (paramValuesCase_ == 2) { return (java.lang.Boolean) paramValues_; } return false; } /** * bool booleanValue = 2; * @param value The booleanValue to set. * @return This builder for chaining. */ public Builder setBooleanValue(boolean value) { paramValuesCase_ = 2; paramValues_ = value; onChanged(); return this; } /** * bool booleanValue = 2; * @return This builder for chaining. */ public Builder clearBooleanValue() { if (paramValuesCase_ == 2) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } return this; } /** * int32 intValue = 3; * @return Whether the intValue field is set. */ public boolean hasIntValue() { return paramValuesCase_ == 3; } /** * int32 intValue = 3; * @return The intValue. */ public int getIntValue() { if (paramValuesCase_ == 3) { return (java.lang.Integer) paramValues_; } return 0; } /** * int32 intValue = 3; * @param value The intValue to set. * @return This builder for chaining. */ public Builder setIntValue(int value) { paramValuesCase_ = 3; paramValues_ = value; onChanged(); return this; } /** * int32 intValue = 3; * @return This builder for chaining. */ public Builder clearIntValue() { if (paramValuesCase_ == 3) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } return this; } /** * int64 longValue = 4; * @return Whether the longValue field is set. */ public boolean hasLongValue() { return paramValuesCase_ == 4; } /** * int64 longValue = 4; * @return The longValue. */ public long getLongValue() { if (paramValuesCase_ == 4) { return (java.lang.Long) paramValues_; } return 0L; } /** * int64 longValue = 4; * @param value The longValue to set. * @return This builder for chaining. */ public Builder setLongValue(long value) { paramValuesCase_ = 4; paramValues_ = value; onChanged(); return this; } /** * int64 longValue = 4; * @return This builder for chaining. */ public Builder clearLongValue() { if (paramValuesCase_ == 4) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } return this; } /** * float floatValue = 5; * @return Whether the floatValue field is set. */ public boolean hasFloatValue() { return paramValuesCase_ == 5; } /** * float floatValue = 5; * @return The floatValue. */ public float getFloatValue() { if (paramValuesCase_ == 5) { return (java.lang.Float) paramValues_; } return 0F; } /** * float floatValue = 5; * @param value The floatValue to set. * @return This builder for chaining. */ public Builder setFloatValue(float value) { paramValuesCase_ = 5; paramValues_ = value; onChanged(); return this; } /** * float floatValue = 5; * @return This builder for chaining. */ public Builder clearFloatValue() { if (paramValuesCase_ == 5) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } return this; } /** * double doubleValue = 6; * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return paramValuesCase_ == 6; } /** * double doubleValue = 6; * @return The doubleValue. */ public double getDoubleValue() { if (paramValuesCase_ == 6) { return (java.lang.Double) paramValues_; } return 0D; } /** * double doubleValue = 6; * @param value The doubleValue to set. * @return This builder for chaining. */ public Builder setDoubleValue(double value) { paramValuesCase_ = 6; paramValues_ = value; onChanged(); return this; } /** * double doubleValue = 6; * @return This builder for chaining. */ public Builder clearDoubleValue() { if (paramValuesCase_ == 6) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } return this; } /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return Whether the nullValue field is set. */ @java.lang.Override public boolean hasNullValue() { return paramValuesCase_ == 7; } /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return The enum numeric value on the wire for nullValue. */ @java.lang.Override public int getNullValueValue() { if (paramValuesCase_ == 7) { return ((java.lang.Integer) paramValues_).intValue(); } return 0; } /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @param value The enum numeric value on the wire for nullValue to set. * @return This builder for chaining. */ public Builder setNullValueValue(int value) { paramValuesCase_ = 7; paramValues_ = value; onChanged(); return this; } /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return The nullValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamNullValue getNullValue() { if (paramValuesCase_ == 7) { com.yelp.nrtsearch.server.grpc.Script.ParamNullValue result = com.yelp.nrtsearch.server.grpc.Script.ParamNullValue.forNumber( (java.lang.Integer) paramValues_); return result == null ? com.yelp.nrtsearch.server.grpc.Script.ParamNullValue.UNRECOGNIZED : result; } return com.yelp.nrtsearch.server.grpc.Script.ParamNullValue.NULL_VALUE; } /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @param value The nullValue to set. * @return This builder for chaining. */ public Builder setNullValue(com.yelp.nrtsearch.server.grpc.Script.ParamNullValue value) { if (value == null) { throw new NullPointerException(); } paramValuesCase_ = 7; paramValues_ = value.getNumber(); onChanged(); return this; } /** * .luceneserver.Script.ParamNullValue nullValue = 7; * @return This builder for chaining. */ public Builder clearNullValue() { if (paramValuesCase_ == 7) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamListValue, com.yelp.nrtsearch.server.grpc.Script.ParamListValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamListValueOrBuilder> listValueBuilder_; /** * .luceneserver.Script.ParamListValue listValue = 8; * @return Whether the listValue field is set. */ @java.lang.Override public boolean hasListValue() { return paramValuesCase_ == 8; } /** * .luceneserver.Script.ParamListValue listValue = 8; * @return The listValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamListValue getListValue() { if (listValueBuilder_ == null) { if (paramValuesCase_ == 8) { return (com.yelp.nrtsearch.server.grpc.Script.ParamListValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance(); } else { if (paramValuesCase_ == 8) { return listValueBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance(); } } /** * .luceneserver.Script.ParamListValue listValue = 8; */ public Builder setListValue(com.yelp.nrtsearch.server.grpc.Script.ParamListValue value) { if (listValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } paramValues_ = value; onChanged(); } else { listValueBuilder_.setMessage(value); } paramValuesCase_ = 8; return this; } /** * .luceneserver.Script.ParamListValue listValue = 8; */ public Builder setListValue( com.yelp.nrtsearch.server.grpc.Script.ParamListValue.Builder builderForValue) { if (listValueBuilder_ == null) { paramValues_ = builderForValue.build(); onChanged(); } else { listValueBuilder_.setMessage(builderForValue.build()); } paramValuesCase_ = 8; return this; } /** * .luceneserver.Script.ParamListValue listValue = 8; */ public Builder mergeListValue(com.yelp.nrtsearch.server.grpc.Script.ParamListValue value) { if (listValueBuilder_ == null) { if (paramValuesCase_ == 8 && paramValues_ != com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance()) { paramValues_ = com.yelp.nrtsearch.server.grpc.Script.ParamListValue.newBuilder((com.yelp.nrtsearch.server.grpc.Script.ParamListValue) paramValues_) .mergeFrom(value).buildPartial(); } else { paramValues_ = value; } onChanged(); } else { if (paramValuesCase_ == 8) { listValueBuilder_.mergeFrom(value); } else { listValueBuilder_.setMessage(value); } } paramValuesCase_ = 8; return this; } /** * .luceneserver.Script.ParamListValue listValue = 8; */ public Builder clearListValue() { if (listValueBuilder_ == null) { if (paramValuesCase_ == 8) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } } else { if (paramValuesCase_ == 8) { paramValuesCase_ = 0; paramValues_ = null; } listValueBuilder_.clear(); } return this; } /** * .luceneserver.Script.ParamListValue listValue = 8; */ public com.yelp.nrtsearch.server.grpc.Script.ParamListValue.Builder getListValueBuilder() { return getListValueFieldBuilder().getBuilder(); } /** * .luceneserver.Script.ParamListValue listValue = 8; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamListValueOrBuilder getListValueOrBuilder() { if ((paramValuesCase_ == 8) && (listValueBuilder_ != null)) { return listValueBuilder_.getMessageOrBuilder(); } else { if (paramValuesCase_ == 8) { return (com.yelp.nrtsearch.server.grpc.Script.ParamListValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance(); } } /** * .luceneserver.Script.ParamListValue listValue = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamListValue, com.yelp.nrtsearch.server.grpc.Script.ParamListValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamListValueOrBuilder> getListValueFieldBuilder() { if (listValueBuilder_ == null) { if (!(paramValuesCase_ == 8)) { paramValues_ = com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance(); } listValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamListValue, com.yelp.nrtsearch.server.grpc.Script.ParamListValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamListValueOrBuilder>( (com.yelp.nrtsearch.server.grpc.Script.ParamListValue) paramValues_, getParentForChildren(), isClean()); paramValues_ = null; } paramValuesCase_ = 8; onChanged(); return listValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamStructValue, com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamStructValueOrBuilder> structValueBuilder_; /** * .luceneserver.Script.ParamStructValue structValue = 9; * @return Whether the structValue field is set. */ @java.lang.Override public boolean hasStructValue() { return paramValuesCase_ == 9; } /** * .luceneserver.Script.ParamStructValue structValue = 9; * @return The structValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamStructValue getStructValue() { if (structValueBuilder_ == null) { if (paramValuesCase_ == 9) { return (com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance(); } else { if (paramValuesCase_ == 9) { return structValueBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance(); } } /** * .luceneserver.Script.ParamStructValue structValue = 9; */ public Builder setStructValue(com.yelp.nrtsearch.server.grpc.Script.ParamStructValue value) { if (structValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } paramValues_ = value; onChanged(); } else { structValueBuilder_.setMessage(value); } paramValuesCase_ = 9; return this; } /** * .luceneserver.Script.ParamStructValue structValue = 9; */ public Builder setStructValue( com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.Builder builderForValue) { if (structValueBuilder_ == null) { paramValues_ = builderForValue.build(); onChanged(); } else { structValueBuilder_.setMessage(builderForValue.build()); } paramValuesCase_ = 9; return this; } /** * .luceneserver.Script.ParamStructValue structValue = 9; */ public Builder mergeStructValue(com.yelp.nrtsearch.server.grpc.Script.ParamStructValue value) { if (structValueBuilder_ == null) { if (paramValuesCase_ == 9 && paramValues_ != com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance()) { paramValues_ = com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.newBuilder((com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) paramValues_) .mergeFrom(value).buildPartial(); } else { paramValues_ = value; } onChanged(); } else { if (paramValuesCase_ == 9) { structValueBuilder_.mergeFrom(value); } else { structValueBuilder_.setMessage(value); } } paramValuesCase_ = 9; return this; } /** * .luceneserver.Script.ParamStructValue structValue = 9; */ public Builder clearStructValue() { if (structValueBuilder_ == null) { if (paramValuesCase_ == 9) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } } else { if (paramValuesCase_ == 9) { paramValuesCase_ = 0; paramValues_ = null; } structValueBuilder_.clear(); } return this; } /** * .luceneserver.Script.ParamStructValue structValue = 9; */ public com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.Builder getStructValueBuilder() { return getStructValueFieldBuilder().getBuilder(); } /** * .luceneserver.Script.ParamStructValue structValue = 9; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamStructValueOrBuilder getStructValueOrBuilder() { if ((paramValuesCase_ == 9) && (structValueBuilder_ != null)) { return structValueBuilder_.getMessageOrBuilder(); } else { if (paramValuesCase_ == 9) { return (com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance(); } } /** * .luceneserver.Script.ParamStructValue structValue = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamStructValue, com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamStructValueOrBuilder> getStructValueFieldBuilder() { if (structValueBuilder_ == null) { if (!(paramValuesCase_ == 9)) { paramValues_ = com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance(); } structValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamStructValue, com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamStructValueOrBuilder>( (com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) paramValues_, getParentForChildren(), isClean()); paramValues_ = null; } paramValuesCase_ = 9; onChanged(); return structValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue, com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValueOrBuilder> floatVectorValueBuilder_; /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; * @return Whether the floatVectorValue field is set. */ @java.lang.Override public boolean hasFloatVectorValue() { return paramValuesCase_ == 10; } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; * @return The floatVectorValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue getFloatVectorValue() { if (floatVectorValueBuilder_ == null) { if (paramValuesCase_ == 10) { return (com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance(); } else { if (paramValuesCase_ == 10) { return floatVectorValueBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance(); } } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ public Builder setFloatVectorValue(com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue value) { if (floatVectorValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } paramValues_ = value; onChanged(); } else { floatVectorValueBuilder_.setMessage(value); } paramValuesCase_ = 10; return this; } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ public Builder setFloatVectorValue( com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.Builder builderForValue) { if (floatVectorValueBuilder_ == null) { paramValues_ = builderForValue.build(); onChanged(); } else { floatVectorValueBuilder_.setMessage(builderForValue.build()); } paramValuesCase_ = 10; return this; } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ public Builder mergeFloatVectorValue(com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue value) { if (floatVectorValueBuilder_ == null) { if (paramValuesCase_ == 10 && paramValues_ != com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance()) { paramValues_ = com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.newBuilder((com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) paramValues_) .mergeFrom(value).buildPartial(); } else { paramValues_ = value; } onChanged(); } else { if (paramValuesCase_ == 10) { floatVectorValueBuilder_.mergeFrom(value); } else { floatVectorValueBuilder_.setMessage(value); } } paramValuesCase_ = 10; return this; } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ public Builder clearFloatVectorValue() { if (floatVectorValueBuilder_ == null) { if (paramValuesCase_ == 10) { paramValuesCase_ = 0; paramValues_ = null; onChanged(); } } else { if (paramValuesCase_ == 10) { paramValuesCase_ = 0; paramValues_ = null; } floatVectorValueBuilder_.clear(); } return this; } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ public com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.Builder getFloatVectorValueBuilder() { return getFloatVectorValueFieldBuilder().getBuilder(); } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValueOrBuilder getFloatVectorValueOrBuilder() { if ((paramValuesCase_ == 10) && (floatVectorValueBuilder_ != null)) { return floatVectorValueBuilder_.getMessageOrBuilder(); } else { if (paramValuesCase_ == 10) { return (com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) paramValues_; } return com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance(); } } /** * .luceneserver.Script.ParamFloatVectorValue floatVectorValue = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue, com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValueOrBuilder> getFloatVectorValueFieldBuilder() { if (floatVectorValueBuilder_ == null) { if (!(paramValuesCase_ == 10)) { paramValues_ = com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance(); } floatVectorValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue, com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValueOrBuilder>( (com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) paramValues_, getParentForChildren(), isClean()); paramValues_ = null; } paramValuesCase_ = 10; onChanged(); return floatVectorValueBuilder_; } @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.Script.ParamValue) } // @@protoc_insertion_point(class_scope:luceneserver.Script.ParamValue) private static final com.yelp.nrtsearch.server.grpc.Script.ParamValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.Script.ParamValue(); } public static com.yelp.nrtsearch.server.grpc.Script.ParamValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ParamValue 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.Script.ParamValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParamStructValueOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.Script.ParamStructValue) com.google.protobuf.MessageOrBuilder { /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ int getFieldsCount(); /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ boolean containsFields( java.lang.String key); /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Deprecated java.util.Map getFields(); /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ java.util.Map getFieldsMap(); /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue getFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue defaultValue); /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ com.yelp.nrtsearch.server.grpc.Script.ParamValue getFieldsOrThrow( java.lang.String key); } /** *
   * map parameter value
   * 
* * Protobuf type {@code luceneserver.Script.ParamStructValue} */ public static final class ParamStructValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.Script.ParamStructValue) ParamStructValueOrBuilder { private static final long serialVersionUID = 0L; // Use ParamStructValue.newBuilder() to construct. private ParamStructValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ParamStructValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ParamStructValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamStructValue_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamStructValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.class, com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; private static final class FieldsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.Script.ParamValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamStructValue_FieldsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.Script.ParamValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.Script.ParamValue> fields_; private com.google.protobuf.MapField internalGetFields() { if (fields_ == null) { return com.google.protobuf.MapField.emptyMapField( FieldsDefaultEntryHolder.defaultEntry); } return fields_; } public int getFieldsCount() { return internalGetFields().getMap().size(); } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ @java.lang.Override public boolean containsFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFields().getMap().containsKey(key); } /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ @java.lang.Override public java.util.Map getFieldsMap() { return internalGetFields().getMap(); } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue getFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue getFieldsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetFields().getMap().entrySet()) { com.google.protobuf.MapEntry fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, fields__); } 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.Script.ParamStructValue)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.Script.ParamStructValue other = (com.yelp.nrtsearch.server.grpc.Script.ParamStructValue) obj; if (!internalGetFields().equals( other.internalGetFields())) 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(); if (!internalGetFields().getMap().isEmpty()) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + internalGetFields().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.Script.ParamStructValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamStructValue 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.Script.ParamStructValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamStructValue 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.Script.ParamStructValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamStructValue 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.Script.ParamStructValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script.ParamStructValue 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.Script.ParamStructValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script.ParamStructValue 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.Script.ParamStructValue 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.Script.ParamStructValue 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.Script.ParamStructValue 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; } /** *
     * map parameter value
     * 
* * Protobuf type {@code luceneserver.Script.ParamStructValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.Script.ParamStructValue) com.yelp.nrtsearch.server.grpc.Script.ParamStructValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamStructValue_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: return internalGetMutableFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamStructValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.class, com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableFields().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamStructValue_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamStructValue getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamStructValue build() { com.yelp.nrtsearch.server.grpc.Script.ParamStructValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamStructValue buildPartial() { com.yelp.nrtsearch.server.grpc.Script.ParamStructValue result = new com.yelp.nrtsearch.server.grpc.Script.ParamStructValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.Script.ParamStructValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); } } @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.Script.ParamStructValue) { return mergeFrom((com.yelp.nrtsearch.server.grpc.Script.ParamStructValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.Script.ParamStructValue other) { if (other == com.yelp.nrtsearch.server.grpc.Script.ParamStructValue.getDefaultInstance()) return this; internalGetMutableFields().mergeFrom( other.internalGetFields()); bitField0_ |= 0x00000001; 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: { com.google.protobuf.MapEntry fields__ = input.readMessage( FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFields().ensureBuilderMap().put( fields__.getKey(), fields__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 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 static final class FieldsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue build(com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.Script.ParamValue) { return (com.yelp.nrtsearch.server.grpc.Script.ParamValue) val; } return ((com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return FieldsDefaultEntryHolder.defaultEntry; } }; private static final FieldsConverter fieldsConverter = new FieldsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder, com.yelp.nrtsearch.server.grpc.Script.ParamValue, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder> fields_; private com.google.protobuf.MapFieldBuilder internalGetFields() { if (fields_ == null) { return new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); } return fields_; } private com.google.protobuf.MapFieldBuilder internalGetMutableFields() { if (fields_ == null) { fields_ = new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); } bitField0_ |= 0x00000001; onChanged(); return fields_; } public int getFieldsCount() { return internalGetFields().ensureBuilderMap().size(); } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ @java.lang.Override public boolean containsFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFields().ensureBuilderMap().containsKey(key); } /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ @java.lang.Override public java.util.Map getFieldsMap() { return internalGetFields().getImmutableMap(); } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue getFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableFields().ensureBuilderMap(); return map.containsKey(key) ? fieldsConverter.build(map.get(key)) : defaultValue; } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue getFieldsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableFields().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return fieldsConverter.build(map.get(key)); } public Builder clearFields() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableFields().clear(); return this; } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ public Builder removeFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFields().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFields() { bitField0_ |= 0x00000001; return internalGetMutableFields().ensureMessageMap(); } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ public Builder putFields( java.lang.String key, com.yelp.nrtsearch.server.grpc.Script.ParamValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableFields().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ public Builder putAllFields( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableFields().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000001; return this; } /** * map<string, .luceneserver.Script.ParamValue> fields = 1; */ public com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder putFieldsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableFields().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.Script.ParamValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.Script.ParamValue) { entry = ((com.yelp.nrtsearch.server.grpc.Script.ParamValue) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder) entry; } @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.Script.ParamStructValue) } // @@protoc_insertion_point(class_scope:luceneserver.Script.ParamStructValue) private static final com.yelp.nrtsearch.server.grpc.Script.ParamStructValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.Script.ParamStructValue(); } public static com.yelp.nrtsearch.server.grpc.Script.ParamStructValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ParamStructValue 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.Script.ParamStructValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParamListValueOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.Script.ParamListValue) com.google.protobuf.MessageOrBuilder { /** * repeated .luceneserver.Script.ParamValue values = 1; */ java.util.List getValuesList(); /** * repeated .luceneserver.Script.ParamValue values = 1; */ com.yelp.nrtsearch.server.grpc.Script.ParamValue getValues(int index); /** * repeated .luceneserver.Script.ParamValue values = 1; */ int getValuesCount(); /** * repeated .luceneserver.Script.ParamValue values = 1; */ java.util.List getValuesOrBuilderList(); /** * repeated .luceneserver.Script.ParamValue values = 1; */ com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder getValuesOrBuilder( int index); } /** *
   * list parameter value
   * 
* * Protobuf type {@code luceneserver.Script.ParamListValue} */ public static final class ParamListValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.Script.ParamListValue) ParamListValueOrBuilder { private static final long serialVersionUID = 0L; // Use ParamListValue.newBuilder() to construct. private ParamListValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ParamListValue() { values_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ParamListValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamListValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamListValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.ParamListValue.class, com.yelp.nrtsearch.server.grpc.Script.ParamListValue.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List values_; /** * repeated .luceneserver.Script.ParamValue values = 1; */ @java.lang.Override public java.util.List getValuesList() { return values_; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ @java.lang.Override public java.util.List getValuesOrBuilderList() { return values_; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ @java.lang.Override public int getValuesCount() { return values_.size(); } /** * repeated .luceneserver.Script.ParamValue values = 1; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue getValues(int index) { return values_.get(index); } /** * repeated .luceneserver.Script.ParamValue values = 1; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder getValuesOrBuilder( int index) { return values_.get(index); } 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 { for (int i = 0; i < values_.size(); i++) { output.writeMessage(1, values_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < values_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, values_.get(i)); } 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.Script.ParamListValue)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.Script.ParamListValue other = (com.yelp.nrtsearch.server.grpc.Script.ParamListValue) obj; if (!getValuesList() .equals(other.getValuesList())) 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(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.Script.ParamListValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamListValue 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.Script.ParamListValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamListValue 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.Script.ParamListValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamListValue 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.Script.ParamListValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script.ParamListValue 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.Script.ParamListValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script.ParamListValue 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.Script.ParamListValue 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.Script.ParamListValue 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.Script.ParamListValue 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; } /** *
     * list parameter value
     * 
* * Protobuf type {@code luceneserver.Script.ParamListValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.Script.ParamListValue) com.yelp.nrtsearch.server.grpc.Script.ParamListValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamListValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamListValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.ParamListValue.class, com.yelp.nrtsearch.server.grpc.Script.ParamListValue.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.Script.ParamListValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { values_ = null; valuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamListValue_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamListValue getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamListValue build() { com.yelp.nrtsearch.server.grpc.Script.ParamListValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamListValue buildPartial() { com.yelp.nrtsearch.server.grpc.Script.ParamListValue result = new com.yelp.nrtsearch.server.grpc.Script.ParamListValue(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.Script.ParamListValue result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.Script.ParamListValue result) { int from_bitField0_ = bitField0_; } @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.Script.ParamListValue) { return mergeFrom((com.yelp.nrtsearch.server.grpc.Script.ParamListValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.Script.ParamListValue other) { if (other == com.yelp.nrtsearch.server.grpc.Script.ParamListValue.getDefaultInstance()) return this; if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); valuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } } } 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: { com.yelp.nrtsearch.server.grpc.Script.ParamValue m = input.readMessage( com.yelp.nrtsearch.server.grpc.Script.ParamValue.parser(), extensionRegistry); if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(m); } else { valuesBuilder_.addMessage(m); } break; } // case 10 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.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamValue, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder> valuesBuilder_; /** * repeated .luceneserver.Script.ParamValue values = 1; */ public java.util.List getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { return valuesBuilder_.getMessageList(); } } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public int getValuesCount() { if (valuesBuilder_ == null) { return values_.size(); } else { return valuesBuilder_.getCount(); } } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public com.yelp.nrtsearch.server.grpc.Script.ParamValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessage(index); } } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder setValues( int index, com.yelp.nrtsearch.server.grpc.Script.ParamValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); } else { valuesBuilder_.setMessage(index, value); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder setValues( int index, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder addValues(com.yelp.nrtsearch.server.grpc.Script.ParamValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); } else { valuesBuilder_.addMessage(value); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder addValues( int index, com.yelp.nrtsearch.server.grpc.Script.ParamValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(index, value); onChanged(); } else { valuesBuilder_.addMessage(index, value); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder addValues( com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder addValues( int index, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder addAllValues( java.lang.Iterable values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { valuesBuilder_.clear(); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.remove(index); onChanged(); } else { valuesBuilder_.remove(index); } return this; } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder getValuesBuilder( int index) { return getValuesFieldBuilder().getBuilder(index); } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder getValuesOrBuilder( int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public java.util.List getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(values_); } } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder addValuesBuilder() { return getValuesFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.Script.ParamValue.getDefaultInstance()); } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder addValuesBuilder( int index) { return getValuesFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.Script.ParamValue.getDefaultInstance()); } /** * repeated .luceneserver.Script.ParamValue values = 1; */ public java.util.List getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamValue, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script.ParamValue, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder, com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder>( values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } @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.Script.ParamListValue) } // @@protoc_insertion_point(class_scope:luceneserver.Script.ParamListValue) private static final com.yelp.nrtsearch.server.grpc.Script.ParamListValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.Script.ParamListValue(); } public static com.yelp.nrtsearch.server.grpc.Script.ParamListValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ParamListValue 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.Script.ParamListValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParamFloatVectorValueOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.Script.ParamFloatVectorValue) com.google.protobuf.MessageOrBuilder { /** * repeated float values = 1; * @return A list containing the values. */ java.util.List getValuesList(); /** * repeated float values = 1; * @return The count of values. */ int getValuesCount(); /** * repeated float values = 1; * @param index The index of the element to return. * @return The values at the given index. */ float getValues(int index); } /** * Protobuf type {@code luceneserver.Script.ParamFloatVectorValue} */ public static final class ParamFloatVectorValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.Script.ParamFloatVectorValue) ParamFloatVectorValueOrBuilder { private static final long serialVersionUID = 0L; // Use ParamFloatVectorValue.newBuilder() to construct. private ParamFloatVectorValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ParamFloatVectorValue() { values_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ParamFloatVectorValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamFloatVectorValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamFloatVectorValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.class, com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList values_ = emptyFloatList(); /** * repeated float values = 1; * @return A list containing the values. */ @java.lang.Override public java.util.List getValuesList() { return values_; } /** * repeated float values = 1; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated float values = 1; * @param index The index of the element to return. * @return The values at the given index. */ public float getValues(int index) { return values_.getFloat(index); } private int valuesMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (getValuesList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(valuesMemoizedSerializedSize); } for (int i = 0; i < values_.size(); i++) { output.writeFloatNoTag(values_.getFloat(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; dataSize = 4 * getValuesList().size(); size += dataSize; if (!getValuesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } valuesMemoizedSerializedSize = dataSize; } 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.Script.ParamFloatVectorValue)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue other = (com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue) obj; if (!getValuesList() .equals(other.getValuesList())) 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(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue 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.Script.ParamFloatVectorValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue 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.Script.ParamFloatVectorValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue 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.Script.ParamFloatVectorValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue 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.Script.ParamFloatVectorValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue 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.Script.ParamFloatVectorValue 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.Script.ParamFloatVectorValue 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.Script.ParamFloatVectorValue 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.Script.ParamFloatVectorValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.Script.ParamFloatVectorValue) com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamFloatVectorValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamFloatVectorValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.class, com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; values_ = emptyFloatList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamFloatVectorValue_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue build() { com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue buildPartial() { com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue result = new com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); result.values_ = values_; } } @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.Script.ParamFloatVectorValue) { return mergeFrom((com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue other) { if (other == com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; values_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureValuesIsMutable(); values_.addAll(other.values_); } 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 13: { float v = input.readFloat(); ensureValuesIsMutable(); values_.addFloat(v); break; } // case 13 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureValuesIsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { values_.addFloat(input.readFloat()); } input.popLimit(limit); break; } // case 10 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 com.google.protobuf.Internal.FloatList values_ = emptyFloatList(); private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = makeMutableCopy(values_); } bitField0_ |= 0x00000001; } private void ensureValuesIsMutable(int capacity) { if (!values_.isModifiable()) { values_ = makeMutableCopy(values_, capacity); } bitField0_ |= 0x00000001; } /** * repeated float values = 1; * @return A list containing the values. */ public java.util.List getValuesList() { values_.makeImmutable(); return values_; } /** * repeated float values = 1; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated float values = 1; * @param index The index of the element to return. * @return The values at the given index. */ public float getValues(int index) { return values_.getFloat(index); } /** * repeated float values = 1; * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, float value) { ensureValuesIsMutable(); values_.setFloat(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated float values = 1; * @param value The values to add. * @return This builder for chaining. */ public Builder addValues(float value) { ensureValuesIsMutable(); values_.addFloat(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated float values = 1; * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated float values = 1; * @return This builder for chaining. */ public Builder clearValues() { values_ = emptyFloatList(); bitField0_ = (bitField0_ & ~0x00000001); 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.Script.ParamFloatVectorValue) } // @@protoc_insertion_point(class_scope:luceneserver.Script.ParamFloatVectorValue) private static final com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue(); } public static com.yelp.nrtsearch.server.grpc.Script.ParamFloatVectorValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ParamFloatVectorValue 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.Script.ParamFloatVectorValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int LANG_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object lang_ = ""; /** *
   * script language
   * 
* * string lang = 1; * @return The lang. */ @java.lang.Override public java.lang.String getLang() { java.lang.Object ref = lang_; 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(); lang_ = s; return s; } } /** *
   * script language
   * 
* * string lang = 1; * @return The bytes for lang. */ @java.lang.Override public com.google.protobuf.ByteString getLangBytes() { java.lang.Object ref = lang_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lang_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object source_ = ""; /** *
   * script source
   * 
* * string source = 2; * @return The source. */ @java.lang.Override public java.lang.String getSource() { java.lang.Object ref = source_; 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(); source_ = s; return s; } } /** *
   * script source
   * 
* * string source = 2; * @return The bytes for source. */ @java.lang.Override public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMS_FIELD_NUMBER = 7; private static final class ParamsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.Script.ParamValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_ParamsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.Script.ParamValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.Script.ParamValue> params_; private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { return com.google.protobuf.MapField.emptyMapField( ParamsDefaultEntryHolder.defaultEntry); } return params_; } public int getParamsCount() { return internalGetParams().getMap().size(); } /** *
   * parameters passed into script execution
   * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ @java.lang.Override public boolean containsParams( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetParams().getMap().containsKey(key); } /** * Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** *
   * parameters passed into script execution
   * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ @java.lang.Override public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** *
   * parameters passed into script execution
   * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue getParamsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * parameters passed into script execution
   * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue getParamsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(lang_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lang_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 7); 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(lang_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lang_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); } for (java.util.Map.Entry entry : internalGetParams().getMap().entrySet()) { com.google.protobuf.MapEntry params__ = ParamsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, params__); } 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.Script)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.Script other = (com.yelp.nrtsearch.server.grpc.Script) obj; if (!getLang() .equals(other.getLang())) return false; if (!getSource() .equals(other.getSource())) return false; if (!internalGetParams().equals( other.internalGetParams())) 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) + LANG_FIELD_NUMBER; hash = (53 * hash) + getLang().hashCode(); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); if (!internalGetParams().getMap().isEmpty()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + internalGetParams().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.Script parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script 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.Script parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script 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.Script parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Script 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.Script parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script 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.Script parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Script 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.Script 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.Script 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.Script 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.Script} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.Script) com.yelp.nrtsearch.server.grpc.ScriptOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 7: return internalGetParams(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 7: return internalGetMutableParams(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Script.class, com.yelp.nrtsearch.server.grpc.Script.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.Script.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; lang_ = ""; source_ = ""; internalGetMutableParams().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Script_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.Script.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script build() { com.yelp.nrtsearch.server.grpc.Script result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script buildPartial() { com.yelp.nrtsearch.server.grpc.Script result = new com.yelp.nrtsearch.server.grpc.Script(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.Script result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.lang_ = lang_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.source_ = source_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); } } @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.Script) { return mergeFrom((com.yelp.nrtsearch.server.grpc.Script)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.Script other) { if (other == com.yelp.nrtsearch.server.grpc.Script.getDefaultInstance()) return this; if (!other.getLang().isEmpty()) { lang_ = other.lang_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getSource().isEmpty()) { source_ = other.source_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableParams().mergeFrom( other.internalGetParams()); bitField0_ |= 0x00000004; 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: { lang_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { source_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 58: { com.google.protobuf.MapEntry params__ = input.readMessage( ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableParams().ensureBuilderMap().put( params__.getKey(), params__.getValue()); bitField0_ |= 0x00000004; break; } // case 58 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 lang_ = ""; /** *
     * script language
     * 
* * string lang = 1; * @return The lang. */ public java.lang.String getLang() { java.lang.Object ref = lang_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lang_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * script language
     * 
* * string lang = 1; * @return The bytes for lang. */ public com.google.protobuf.ByteString getLangBytes() { java.lang.Object ref = lang_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lang_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * script language
     * 
* * string lang = 1; * @param value The lang to set. * @return This builder for chaining. */ public Builder setLang( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lang_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * script language
     * 
* * string lang = 1; * @return This builder for chaining. */ public Builder clearLang() { lang_ = getDefaultInstance().getLang(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * script language
     * 
* * string lang = 1; * @param value The bytes for lang to set. * @return This builder for chaining. */ public Builder setLangBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lang_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object source_ = ""; /** *
     * script source
     * 
* * string source = 2; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * script source
     * 
* * string source = 2; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * script source
     * 
* * string source = 2; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } source_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * script source
     * 
* * string source = 2; * @return This builder for chaining. */ public Builder clearSource() { source_ = getDefaultInstance().getSource(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * script source
     * 
* * string source = 2; * @param value The bytes for source to set. * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private static final class ParamsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue build(com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.Script.ParamValue) { return (com.yelp.nrtsearch.server.grpc.Script.ParamValue) val; } return ((com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return ParamsDefaultEntryHolder.defaultEntry; } }; private static final ParamsConverter paramsConverter = new ParamsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder, com.yelp.nrtsearch.server.grpc.Script.ParamValue, com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder> params_; private com.google.protobuf.MapFieldBuilder internalGetParams() { if (params_ == null) { return new com.google.protobuf.MapFieldBuilder<>(paramsConverter); } return params_; } private com.google.protobuf.MapFieldBuilder internalGetMutableParams() { if (params_ == null) { params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); } bitField0_ |= 0x00000004; onChanged(); return params_; } public int getParamsCount() { return internalGetParams().ensureBuilderMap().size(); } /** *
     * parameters passed into script execution
     * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ @java.lang.Override public boolean containsParams( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetParams().ensureBuilderMap().containsKey(key); } /** * Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** *
     * parameters passed into script execution
     * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ @java.lang.Override public java.util.Map getParamsMap() { return internalGetParams().getImmutableMap(); } /** *
     * parameters passed into script execution
     * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue getParamsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.Script.ParamValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableParams().ensureBuilderMap(); return map.containsKey(key) ? paramsConverter.build(map.get(key)) : defaultValue; } /** *
     * parameters passed into script execution
     * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script.ParamValue getParamsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableParams().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return paramsConverter.build(map.get(key)); } public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableParams().clear(); return this; } /** *
     * parameters passed into script execution
     * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ public Builder removeParams( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableParams().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParams() { bitField0_ |= 0x00000004; return internalGetMutableParams().ensureMessageMap(); } /** *
     * parameters passed into script execution
     * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ public Builder putParams( java.lang.String key, com.yelp.nrtsearch.server.grpc.Script.ParamValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableParams().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** *
     * parameters passed into script execution
     * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ public Builder putAllParams( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableParams().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000004; return this; } /** *
     * parameters passed into script execution
     * 
* * map<string, .luceneserver.Script.ParamValue> params = 7; */ public com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder putParamsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableParams().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.Script.ParamValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.Script.ParamValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.Script.ParamValue) { entry = ((com.yelp.nrtsearch.server.grpc.Script.ParamValue) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.Script.ParamValue.Builder) entry; } @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.Script) } // @@protoc_insertion_point(class_scope:luceneserver.Script) private static final com.yelp.nrtsearch.server.grpc.Script DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.Script(); } public static com.yelp.nrtsearch.server.grpc.Script getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser