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

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

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

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

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

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

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
      int number) {
    switch (number) {
      case 3:
        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.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.yelp.nrtsearch.server.grpc.AddDocumentRequest.class, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.Builder.class);
  }

  public interface MultiValuedFieldOrBuilder extends
      // @@protoc_insertion_point(interface_extends:luceneserver.AddDocumentRequest.MultiValuedField)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     *list of values for this field
     * 
* * repeated string value = 1; * @return A list containing the value. */ java.util.List getValueList(); /** *
     *list of values for this field
     * 
* * repeated string value = 1; * @return The count of value. */ int getValueCount(); /** *
     *list of values for this field
     * 
* * repeated string value = 1; * @param index The index of the element to return. * @return The value at the given index. */ java.lang.String getValue(int index); /** *
     *list of values for this field
     * 
* * repeated string value = 1; * @param index The index of the value to return. * @return The bytes of the value at the given index. */ com.google.protobuf.ByteString getValueBytes(int index); /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ java.util.List getFaceHierarchyPathsList(); /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ com.yelp.nrtsearch.server.grpc.FacetHierarchyPath getFaceHierarchyPaths(int index); /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ int getFaceHierarchyPathsCount(); /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ java.util.List getFaceHierarchyPathsOrBuilderList(); /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ com.yelp.nrtsearch.server.grpc.FacetHierarchyPathOrBuilder getFaceHierarchyPathsOrBuilder( int index); } /** *
   *we use this wrapper object to represent each field as a multivalued field.
   * 
* * Protobuf type {@code luceneserver.AddDocumentRequest.MultiValuedField} */ public static final class MultiValuedField extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.AddDocumentRequest.MultiValuedField) MultiValuedFieldOrBuilder { private static final long serialVersionUID = 0L; // Use MultiValuedField.newBuilder() to construct. private MultiValuedField(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MultiValuedField() { value_ = com.google.protobuf.LazyStringArrayList.emptyList(); faceHierarchyPaths_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MultiValuedField(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_MultiValuedField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_MultiValuedField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.class, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList value_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     *list of values for this field
     * 
* * repeated string value = 1; * @return A list containing the value. */ public com.google.protobuf.ProtocolStringList getValueList() { return value_; } /** *
     *list of values for this field
     * 
* * repeated string value = 1; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** *
     *list of values for this field
     * 
* * repeated string value = 1; * @param index The index of the element to return. * @return The value at the given index. */ public java.lang.String getValue(int index) { return value_.get(index); } /** *
     *list of values for this field
     * 
* * repeated string value = 1; * @param index The index of the value to return. * @return The bytes of the value at the given index. */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } public static final int FACEHIERARCHYPATHS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List faceHierarchyPaths_; /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ @java.lang.Override public java.util.List getFaceHierarchyPathsList() { return faceHierarchyPaths_; } /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ @java.lang.Override public java.util.List getFaceHierarchyPathsOrBuilderList() { return faceHierarchyPaths_; } /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ @java.lang.Override public int getFaceHierarchyPathsCount() { return faceHierarchyPaths_.size(); } /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetHierarchyPath getFaceHierarchyPaths(int index) { return faceHierarchyPaths_.get(index); } /** *
     *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
     * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetHierarchyPathOrBuilder getFaceHierarchyPathsOrBuilder( int index) { return faceHierarchyPaths_.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 < value_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.getRaw(i)); } for (int i = 0; i < faceHierarchyPaths_.size(); i++) { output.writeMessage(2, faceHierarchyPaths_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += computeStringSizeNoTag(value_.getRaw(i)); } size += dataSize; size += 1 * getValueList().size(); } for (int i = 0; i < faceHierarchyPaths_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, faceHierarchyPaths_.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.AddDocumentRequest.MultiValuedField)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField other = (com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField) obj; if (!getValueList() .equals(other.getValueList())) return false; if (!getFaceHierarchyPathsList() .equals(other.getFaceHierarchyPathsList())) 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } if (getFaceHierarchyPathsCount() > 0) { hash = (37 * hash) + FACEHIERARCHYPATHS_FIELD_NUMBER; hash = (53 * hash) + getFaceHierarchyPathsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField 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.AddDocumentRequest.MultiValuedField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField 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.AddDocumentRequest.MultiValuedField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField 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.AddDocumentRequest.MultiValuedField parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField 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.AddDocumentRequest.MultiValuedField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField 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.AddDocumentRequest.MultiValuedField 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.AddDocumentRequest.MultiValuedField 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.AddDocumentRequest.MultiValuedField 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; } /** *
     *we use this wrapper object to represent each field as a multivalued field.
     * 
* * Protobuf type {@code luceneserver.AddDocumentRequest.MultiValuedField} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.AddDocumentRequest.MultiValuedField) com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_MultiValuedField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_MultiValuedField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.class, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (faceHierarchyPathsBuilder_ == null) { faceHierarchyPaths_ = java.util.Collections.emptyList(); } else { faceHierarchyPaths_ = null; faceHierarchyPathsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_MultiValuedField_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField build() { com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField buildPartial() { com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField result = new com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField result) { if (faceHierarchyPathsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { faceHierarchyPaths_ = java.util.Collections.unmodifiableList(faceHierarchyPaths_); bitField0_ = (bitField0_ & ~0x00000002); } result.faceHierarchyPaths_ = faceHierarchyPaths_; } else { result.faceHierarchyPaths_ = faceHierarchyPathsBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { value_.makeImmutable(); result.value_ = value_; } } @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.AddDocumentRequest.MultiValuedField) { return mergeFrom((com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField other) { if (other == com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000001; } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (faceHierarchyPathsBuilder_ == null) { if (!other.faceHierarchyPaths_.isEmpty()) { if (faceHierarchyPaths_.isEmpty()) { faceHierarchyPaths_ = other.faceHierarchyPaths_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.addAll(other.faceHierarchyPaths_); } onChanged(); } } else { if (!other.faceHierarchyPaths_.isEmpty()) { if (faceHierarchyPathsBuilder_.isEmpty()) { faceHierarchyPathsBuilder_.dispose(); faceHierarchyPathsBuilder_ = null; faceHierarchyPaths_ = other.faceHierarchyPaths_; bitField0_ = (bitField0_ & ~0x00000002); faceHierarchyPathsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFaceHierarchyPathsFieldBuilder() : null; } else { faceHierarchyPathsBuilder_.addAllMessages(other.faceHierarchyPaths_); } } } 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(); ensureValueIsMutable(); value_.add(s); break; } // case 10 case 18: { com.yelp.nrtsearch.server.grpc.FacetHierarchyPath m = input.readMessage( com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.parser(), extensionRegistry); if (faceHierarchyPathsBuilder_ == null) { ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.add(m); } else { faceHierarchyPathsBuilder_.addMessage(m); } break; } // case 18 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.LazyStringArrayList value_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureValueIsMutable() { if (!value_.isModifiable()) { value_ = new com.google.protobuf.LazyStringArrayList(value_); } bitField0_ |= 0x00000001; } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @return A list containing the value. */ public com.google.protobuf.ProtocolStringList getValueList() { value_.makeImmutable(); return value_; } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @param index The index of the element to return. * @return The value at the given index. */ public java.lang.String getValue(int index) { return value_.get(index); } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @param index The index of the value to return. * @return The bytes of the value at the given index. */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @param value The value to add. * @return This builder for chaining. */ public Builder addValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @param values The value to add. * @return This builder for chaining. */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
       *list of values for this field
       * 
* * repeated string value = 1; * @param value The bytes of the value to add. * @return This builder for chaining. */ public Builder addValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValueIsMutable(); value_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List faceHierarchyPaths_ = java.util.Collections.emptyList(); private void ensureFaceHierarchyPathsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { faceHierarchyPaths_ = new java.util.ArrayList(faceHierarchyPaths_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FacetHierarchyPath, com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder, com.yelp.nrtsearch.server.grpc.FacetHierarchyPathOrBuilder> faceHierarchyPathsBuilder_; /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public java.util.List getFaceHierarchyPathsList() { if (faceHierarchyPathsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceHierarchyPaths_); } else { return faceHierarchyPathsBuilder_.getMessageList(); } } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public int getFaceHierarchyPathsCount() { if (faceHierarchyPathsBuilder_ == null) { return faceHierarchyPaths_.size(); } else { return faceHierarchyPathsBuilder_.getCount(); } } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public com.yelp.nrtsearch.server.grpc.FacetHierarchyPath getFaceHierarchyPaths(int index) { if (faceHierarchyPathsBuilder_ == null) { return faceHierarchyPaths_.get(index); } else { return faceHierarchyPathsBuilder_.getMessage(index); } } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder setFaceHierarchyPaths( int index, com.yelp.nrtsearch.server.grpc.FacetHierarchyPath value) { if (faceHierarchyPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.set(index, value); onChanged(); } else { faceHierarchyPathsBuilder_.setMessage(index, value); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder setFaceHierarchyPaths( int index, com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder builderForValue) { if (faceHierarchyPathsBuilder_ == null) { ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.set(index, builderForValue.build()); onChanged(); } else { faceHierarchyPathsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder addFaceHierarchyPaths(com.yelp.nrtsearch.server.grpc.FacetHierarchyPath value) { if (faceHierarchyPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.add(value); onChanged(); } else { faceHierarchyPathsBuilder_.addMessage(value); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder addFaceHierarchyPaths( int index, com.yelp.nrtsearch.server.grpc.FacetHierarchyPath value) { if (faceHierarchyPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.add(index, value); onChanged(); } else { faceHierarchyPathsBuilder_.addMessage(index, value); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder addFaceHierarchyPaths( com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder builderForValue) { if (faceHierarchyPathsBuilder_ == null) { ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.add(builderForValue.build()); onChanged(); } else { faceHierarchyPathsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder addFaceHierarchyPaths( int index, com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder builderForValue) { if (faceHierarchyPathsBuilder_ == null) { ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.add(index, builderForValue.build()); onChanged(); } else { faceHierarchyPathsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder addAllFaceHierarchyPaths( java.lang.Iterable values) { if (faceHierarchyPathsBuilder_ == null) { ensureFaceHierarchyPathsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, faceHierarchyPaths_); onChanged(); } else { faceHierarchyPathsBuilder_.addAllMessages(values); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder clearFaceHierarchyPaths() { if (faceHierarchyPathsBuilder_ == null) { faceHierarchyPaths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { faceHierarchyPathsBuilder_.clear(); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public Builder removeFaceHierarchyPaths(int index) { if (faceHierarchyPathsBuilder_ == null) { ensureFaceHierarchyPathsIsMutable(); faceHierarchyPaths_.remove(index); onChanged(); } else { faceHierarchyPathsBuilder_.remove(index); } return this; } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder getFaceHierarchyPathsBuilder( int index) { return getFaceHierarchyPathsFieldBuilder().getBuilder(index); } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public com.yelp.nrtsearch.server.grpc.FacetHierarchyPathOrBuilder getFaceHierarchyPathsOrBuilder( int index) { if (faceHierarchyPathsBuilder_ == null) { return faceHierarchyPaths_.get(index); } else { return faceHierarchyPathsBuilder_.getMessageOrBuilder(index); } } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public java.util.List getFaceHierarchyPathsOrBuilderList() { if (faceHierarchyPathsBuilder_ != null) { return faceHierarchyPathsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(faceHierarchyPaths_); } } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder addFaceHierarchyPathsBuilder() { return getFaceHierarchyPathsFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.getDefaultInstance()); } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder addFaceHierarchyPathsBuilder( int index) { return getFaceHierarchyPathsFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.getDefaultInstance()); } /** *
       *Facet paths/hierarchy to bucket these values by, if indexed field is of type Facet.HIERARCHY
       * 
* * repeated .luceneserver.FacetHierarchyPath faceHierarchyPaths = 2; */ public java.util.List getFaceHierarchyPathsBuilderList() { return getFaceHierarchyPathsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FacetHierarchyPath, com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder, com.yelp.nrtsearch.server.grpc.FacetHierarchyPathOrBuilder> getFaceHierarchyPathsFieldBuilder() { if (faceHierarchyPathsBuilder_ == null) { faceHierarchyPathsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FacetHierarchyPath, com.yelp.nrtsearch.server.grpc.FacetHierarchyPath.Builder, com.yelp.nrtsearch.server.grpc.FacetHierarchyPathOrBuilder>( faceHierarchyPaths_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); faceHierarchyPaths_ = null; } return faceHierarchyPathsBuilder_; } @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.AddDocumentRequest.MultiValuedField) } // @@protoc_insertion_point(class_scope:luceneserver.AddDocumentRequest.MultiValuedField) private static final com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField(); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MultiValuedField 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.AddDocumentRequest.MultiValuedField getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int INDEXNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object indexName_ = ""; /** *
   *name of the index
   * 
* * string indexName = 1; * @return The indexName. */ @java.lang.Override public java.lang.String getIndexName() { java.lang.Object ref = indexName_; 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(); indexName_ = s; return s; } } /** *
   *name of the index
   * 
* * string indexName = 1; * @return The bytes for indexName. */ @java.lang.Override public com.google.protobuf.ByteString getIndexNameBytes() { java.lang.Object ref = indexName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELDS_FIELD_NUMBER = 3; private static final class FieldsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_FieldsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField> 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 of field name to a list of string values.
   * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ @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 of field name to a list of string values.
   * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ @java.lang.Override public java.util.Map getFieldsMap() { return internalGetFields().getMap(); } /** *
   *map of field name to a list of string values.
   * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField getFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   *map of field name to a list of string values.
   * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexName_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); 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(indexName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexName_); } 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(3, 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.AddDocumentRequest)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.AddDocumentRequest other = (com.yelp.nrtsearch.server.grpc.AddDocumentRequest) obj; if (!getIndexName() .equals(other.getIndexName())) return false; 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(); hash = (37 * hash) + INDEXNAME_FIELD_NUMBER; hash = (53 * hash) + getIndexName().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.AddDocumentRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest 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.AddDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest 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.AddDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest 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.AddDocumentRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest 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.AddDocumentRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest 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.AddDocumentRequest 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.AddDocumentRequest 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.AddDocumentRequest 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.AddDocumentRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.AddDocumentRequest) com.yelp.nrtsearch.server.grpc.AddDocumentRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 3: return internalGetFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 3: 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.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.AddDocumentRequest.class, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.AddDocumentRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; indexName_ = ""; internalGetMutableFields().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_AddDocumentRequest_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.AddDocumentRequest.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest build() { com.yelp.nrtsearch.server.grpc.AddDocumentRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest buildPartial() { com.yelp.nrtsearch.server.grpc.AddDocumentRequest result = new com.yelp.nrtsearch.server.grpc.AddDocumentRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.AddDocumentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.indexName_ = indexName_; } if (((from_bitField0_ & 0x00000002) != 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.AddDocumentRequest) { return mergeFrom((com.yelp.nrtsearch.server.grpc.AddDocumentRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.AddDocumentRequest other) { if (other == com.yelp.nrtsearch.server.grpc.AddDocumentRequest.getDefaultInstance()) return this; if (!other.getIndexName().isEmpty()) { indexName_ = other.indexName_; bitField0_ |= 0x00000001; onChanged(); } internalGetMutableFields().mergeFrom( other.internalGetFields()); bitField0_ |= 0x00000002; 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: { indexName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 26: { com.google.protobuf.MapEntry fields__ = input.readMessage( FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFields().ensureBuilderMap().put( fields__.getKey(), fields__.getValue()); bitField0_ |= 0x00000002; 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 java.lang.Object indexName_ = ""; /** *
     *name of the index
     * 
* * string indexName = 1; * @return The indexName. */ public java.lang.String getIndexName() { java.lang.Object ref = indexName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *name of the index
     * 
* * string indexName = 1; * @return The bytes for indexName. */ public com.google.protobuf.ByteString getIndexNameBytes() { java.lang.Object ref = indexName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *name of the index
     * 
* * string indexName = 1; * @param value The indexName to set. * @return This builder for chaining. */ public Builder setIndexName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } indexName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *name of the index
     * 
* * string indexName = 1; * @return This builder for chaining. */ public Builder clearIndexName() { indexName_ = getDefaultInstance().getIndexName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *name of the index
     * 
* * string indexName = 1; * @param value The bytes for indexName to set. * @return This builder for chaining. */ public Builder setIndexNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); indexName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private static final class FieldsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField build(com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedFieldOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField) { return (com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField) val; } return ((com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.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.AddDocumentRequest.MultiValuedFieldOrBuilder, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.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_ |= 0x00000002; onChanged(); return fields_; } public int getFieldsCount() { return internalGetFields().ensureBuilderMap().size(); } /** *
     *map of field name to a list of string values.
     * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ @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 of field name to a list of string values.
     * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ @java.lang.Override public java.util.Map getFieldsMap() { return internalGetFields().getImmutableMap(); } /** *
     *map of field name to a list of string values.
     * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField getFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField 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 of field name to a list of string values.
     * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField 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_ & ~0x00000002); internalGetMutableFields().clear(); return this; } /** *
     *map of field name to a list of string values.
     * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ 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_ |= 0x00000002; return internalGetMutableFields().ensureMessageMap(); } /** *
     *map of field name to a list of string values.
     * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ public Builder putFields( java.lang.String key, com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableFields().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** *
     *map of field name to a list of string values.
     * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ 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_ |= 0x00000002; return this; } /** *
     *map of field name to a list of string values.
     * 
* * map<string, .luceneserver.AddDocumentRequest.MultiValuedField> fields = 3; */ public com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.Builder putFieldsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableFields().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedFieldOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField) { entry = ((com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.AddDocumentRequest.MultiValuedField.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.AddDocumentRequest) } // @@protoc_insertion_point(class_scope:luceneserver.AddDocumentRequest) private static final com.yelp.nrtsearch.server.grpc.AddDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.AddDocumentRequest(); } public static com.yelp.nrtsearch.server.grpc.AddDocumentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddDocumentRequest 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.AddDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy