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

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

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

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

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

  private int bitField0_;
  public static final int DODOCSCORES_FIELD_NUMBER = 1;
  private boolean doDocScores_ = false;
  /**
   * 
   *Compute the doc score for each collected (costs added CPU); default:false
   * 
* * bool doDocScores = 1; * @return The doDocScores. */ @java.lang.Override public boolean getDoDocScores() { return doDocScores_; } public static final int DOMAXSCORE_FIELD_NUMBER = 2; private boolean doMaxScore_ = false; /** *
   *Compute the max score across all hits (costs added CPU); default: false
   * 
* * bool doMaxScore = 2; * @return The doMaxScore. */ @java.lang.Override public boolean getDoMaxScore() { return doMaxScore_; } public static final int FIELDS_FIELD_NUMBER = 3; private com.yelp.nrtsearch.server.grpc.SortFields fields_; /** *
   *List of Fields to sort on.
   * 
* * .luceneserver.SortFields fields = 3; * @return Whether the fields field is set. */ @java.lang.Override public boolean hasFields() { return ((bitField0_ & 0x00000001) != 0); } /** *
   *List of Fields to sort on.
   * 
* * .luceneserver.SortFields fields = 3; * @return The fields. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SortFields getFields() { return fields_ == null ? com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance() : fields_; } /** *
   *List of Fields to sort on.
   * 
* * .luceneserver.SortFields fields = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder getFieldsOrBuilder() { return fields_ == null ? com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance() : fields_; } 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 (doDocScores_ != false) { output.writeBool(1, doDocScores_); } if (doMaxScore_ != false) { output.writeBool(2, doMaxScore_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getFields()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (doDocScores_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, doDocScores_); } if (doMaxScore_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, doMaxScore_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFields()); } 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.QuerySortField)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.QuerySortField other = (com.yelp.nrtsearch.server.grpc.QuerySortField) obj; if (getDoDocScores() != other.getDoDocScores()) return false; if (getDoMaxScore() != other.getDoMaxScore()) return false; if (hasFields() != other.hasFields()) return false; if (hasFields()) { if (!getFields() .equals(other.getFields())) 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) + DODOCSCORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDoDocScores()); hash = (37 * hash) + DOMAXSCORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDoMaxScore()); if (hasFields()) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFields().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.QuerySortField parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.QuerySortField 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.QuerySortField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.QuerySortField 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.QuerySortField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.QuerySortField 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.QuerySortField parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.QuerySortField 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.QuerySortField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.QuerySortField 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.QuerySortField 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.QuerySortField 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.QuerySortField 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.QuerySortField} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.QuerySortField) com.yelp.nrtsearch.server.grpc.QuerySortFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_QuerySortField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_QuerySortField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.QuerySortField.class, com.yelp.nrtsearch.server.grpc.QuerySortField.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.QuerySortField.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; doDocScores_ = false; doMaxScore_ = false; fields_ = null; if (fieldsBuilder_ != null) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_QuerySortField_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.QuerySortField getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.QuerySortField.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.QuerySortField build() { com.yelp.nrtsearch.server.grpc.QuerySortField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.QuerySortField buildPartial() { com.yelp.nrtsearch.server.grpc.QuerySortField result = new com.yelp.nrtsearch.server.grpc.QuerySortField(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.QuerySortField result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.doDocScores_ = doDocScores_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.doMaxScore_ = doMaxScore_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.fields_ = fieldsBuilder_ == null ? fields_ : fieldsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_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.QuerySortField) { return mergeFrom((com.yelp.nrtsearch.server.grpc.QuerySortField)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.QuerySortField other) { if (other == com.yelp.nrtsearch.server.grpc.QuerySortField.getDefaultInstance()) return this; if (other.getDoDocScores() != false) { setDoDocScores(other.getDoDocScores()); } if (other.getDoMaxScore() != false) { setDoMaxScore(other.getDoMaxScore()); } if (other.hasFields()) { mergeFields(other.getFields()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { doDocScores_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { doMaxScore_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getFieldsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 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 boolean doDocScores_ ; /** *
     *Compute the doc score for each collected (costs added CPU); default:false
     * 
* * bool doDocScores = 1; * @return The doDocScores. */ @java.lang.Override public boolean getDoDocScores() { return doDocScores_; } /** *
     *Compute the doc score for each collected (costs added CPU); default:false
     * 
* * bool doDocScores = 1; * @param value The doDocScores to set. * @return This builder for chaining. */ public Builder setDoDocScores(boolean value) { doDocScores_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Compute the doc score for each collected (costs added CPU); default:false
     * 
* * bool doDocScores = 1; * @return This builder for chaining. */ public Builder clearDoDocScores() { bitField0_ = (bitField0_ & ~0x00000001); doDocScores_ = false; onChanged(); return this; } private boolean doMaxScore_ ; /** *
     *Compute the max score across all hits (costs added CPU); default: false
     * 
* * bool doMaxScore = 2; * @return The doMaxScore. */ @java.lang.Override public boolean getDoMaxScore() { return doMaxScore_; } /** *
     *Compute the max score across all hits (costs added CPU); default: false
     * 
* * bool doMaxScore = 2; * @param value The doMaxScore to set. * @return This builder for chaining. */ public Builder setDoMaxScore(boolean value) { doMaxScore_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Compute the max score across all hits (costs added CPU); default: false
     * 
* * bool doMaxScore = 2; * @return This builder for chaining. */ public Builder clearDoMaxScore() { bitField0_ = (bitField0_ & ~0x00000002); doMaxScore_ = false; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.SortFields fields_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SortFields, com.yelp.nrtsearch.server.grpc.SortFields.Builder, com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder> fieldsBuilder_; /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; * @return Whether the fields field is set. */ public boolean hasFields() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; * @return The fields. */ public com.yelp.nrtsearch.server.grpc.SortFields getFields() { if (fieldsBuilder_ == null) { return fields_ == null ? com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance() : fields_; } else { return fieldsBuilder_.getMessage(); } } /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; */ public Builder setFields(com.yelp.nrtsearch.server.grpc.SortFields value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fields_ = value; } else { fieldsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; */ public Builder setFields( com.yelp.nrtsearch.server.grpc.SortFields.Builder builderForValue) { if (fieldsBuilder_ == null) { fields_ = builderForValue.build(); } else { fieldsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; */ public Builder mergeFields(com.yelp.nrtsearch.server.grpc.SortFields value) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && fields_ != null && fields_ != com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance()) { getFieldsBuilder().mergeFrom(value); } else { fields_ = value; } } else { fieldsBuilder_.mergeFrom(value); } if (fields_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; */ public Builder clearFields() { bitField0_ = (bitField0_ & ~0x00000004); fields_ = null; if (fieldsBuilder_ != null) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; } onChanged(); return this; } /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; */ public com.yelp.nrtsearch.server.grpc.SortFields.Builder getFieldsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFieldsFieldBuilder().getBuilder(); } /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; */ public com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder getFieldsOrBuilder() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilder(); } else { return fields_ == null ? com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance() : fields_; } } /** *
     *List of Fields to sort on.
     * 
* * .luceneserver.SortFields fields = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SortFields, com.yelp.nrtsearch.server.grpc.SortFields.Builder, com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SortFields, com.yelp.nrtsearch.server.grpc.SortFields.Builder, com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder>( getFields(), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } @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.QuerySortField) } // @@protoc_insertion_point(class_scope:luceneserver.QuerySortField) private static final com.yelp.nrtsearch.server.grpc.QuerySortField DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.QuerySortField(); } public static com.yelp.nrtsearch.server.grpc.QuerySortField getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QuerySortField 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.QuerySortField getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy