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

grpc.vectorindex._CountItemsRequest Maven / Gradle / Ivy

There is a newer version: 0.120.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: vectorindex.proto

package grpc.vectorindex;

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

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            grpc.vectorindex._CountItemsRequest.class, grpc.vectorindex._CountItemsRequest.Builder.class);
  }

  public interface AllOrBuilder extends
      // @@protoc_insertion_point(interface_extends:vectorindex._CountItemsRequest.All)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code vectorindex._CountItemsRequest.All}
   */
  public static final class All extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:vectorindex._CountItemsRequest.All)
      AllOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use All.newBuilder() to construct.
    private All(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private All() {
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_All_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_All_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              grpc.vectorindex._CountItemsRequest.All.class, grpc.vectorindex._CountItemsRequest.All.Builder.class);
    }

    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 {
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      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 grpc.vectorindex._CountItemsRequest.All)) {
        return super.equals(obj);
      }
      grpc.vectorindex._CountItemsRequest.All other = (grpc.vectorindex._CountItemsRequest.All) obj;

      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 = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static grpc.vectorindex._CountItemsRequest.All parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static grpc.vectorindex._CountItemsRequest.All parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static grpc.vectorindex._CountItemsRequest.All parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static grpc.vectorindex._CountItemsRequest.All parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static grpc.vectorindex._CountItemsRequest.All parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static grpc.vectorindex._CountItemsRequest.All parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static grpc.vectorindex._CountItemsRequest.All parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static grpc.vectorindex._CountItemsRequest.All 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 grpc.vectorindex._CountItemsRequest.All parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static grpc.vectorindex._CountItemsRequest.All 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 grpc.vectorindex._CountItemsRequest.All parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static grpc.vectorindex._CountItemsRequest.All 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(grpc.vectorindex._CountItemsRequest.All 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 vectorindex._CountItemsRequest.All}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:vectorindex._CountItemsRequest.All)
        grpc.vectorindex._CountItemsRequest.AllOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_All_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_All_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                grpc.vectorindex._CountItemsRequest.All.class, grpc.vectorindex._CountItemsRequest.All.Builder.class);
      }

      // Construct using grpc.vectorindex._CountItemsRequest.All.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_All_descriptor;
      }

      @java.lang.Override
      public grpc.vectorindex._CountItemsRequest.All getDefaultInstanceForType() {
        return grpc.vectorindex._CountItemsRequest.All.getDefaultInstance();
      }

      @java.lang.Override
      public grpc.vectorindex._CountItemsRequest.All build() {
        grpc.vectorindex._CountItemsRequest.All result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public grpc.vectorindex._CountItemsRequest.All buildPartial() {
        grpc.vectorindex._CountItemsRequest.All result = new grpc.vectorindex._CountItemsRequest.All(this);
        onBuilt();
        return result;
      }

      @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 grpc.vectorindex._CountItemsRequest.All) {
          return mergeFrom((grpc.vectorindex._CountItemsRequest.All)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(grpc.vectorindex._CountItemsRequest.All other) {
        if (other == grpc.vectorindex._CountItemsRequest.All.getDefaultInstance()) return this;
        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;
              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;
      }
      @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:vectorindex._CountItemsRequest.All)
    }

    // @@protoc_insertion_point(class_scope:vectorindex._CountItemsRequest.All)
    private static final grpc.vectorindex._CountItemsRequest.All DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new grpc.vectorindex._CountItemsRequest.All();
    }

    public static grpc.vectorindex._CountItemsRequest.All getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public All 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 grpc.vectorindex._CountItemsRequest.All getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int filterCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object filter_;
  public enum FilterCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    ALL(2),
    FILTER_NOT_SET(0);
    private final int value;
    private FilterCase(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 FilterCase valueOf(int value) {
      return forNumber(value);
    }

    public static FilterCase forNumber(int value) {
      switch (value) {
        case 2: return ALL;
        case 0: return FILTER_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public FilterCase
  getFilterCase() {
    return FilterCase.forNumber(
        filterCase_);
  }

  public static final int INDEX_NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object indexName_ = "";
  /**
   * string index_name = 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;
    }
  }
  /**
   * string index_name = 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 ALL_FIELD_NUMBER = 2;
  /**
   * .vectorindex._CountItemsRequest.All all = 2;
   * @return Whether the all field is set.
   */
  @java.lang.Override
  public boolean hasAll() {
    return filterCase_ == 2;
  }
  /**
   * .vectorindex._CountItemsRequest.All all = 2;
   * @return The all.
   */
  @java.lang.Override
  public grpc.vectorindex._CountItemsRequest.All getAll() {
    if (filterCase_ == 2) {
       return (grpc.vectorindex._CountItemsRequest.All) filter_;
    }
    return grpc.vectorindex._CountItemsRequest.All.getDefaultInstance();
  }
  /**
   * .vectorindex._CountItemsRequest.All all = 2;
   */
  @java.lang.Override
  public grpc.vectorindex._CountItemsRequest.AllOrBuilder getAllOrBuilder() {
    if (filterCase_ == 2) {
       return (grpc.vectorindex._CountItemsRequest.All) filter_;
    }
    return grpc.vectorindex._CountItemsRequest.All.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexName_);
    }
    if (filterCase_ == 2) {
      output.writeMessage(2, (grpc.vectorindex._CountItemsRequest.All) filter_);
    }
    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_);
    }
    if (filterCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (grpc.vectorindex._CountItemsRequest.All) filter_);
    }
    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 grpc.vectorindex._CountItemsRequest)) {
      return super.equals(obj);
    }
    grpc.vectorindex._CountItemsRequest other = (grpc.vectorindex._CountItemsRequest) obj;

    if (!getIndexName()
        .equals(other.getIndexName())) return false;
    if (!getFilterCase().equals(other.getFilterCase())) return false;
    switch (filterCase_) {
      case 2:
        if (!getAll()
            .equals(other.getAll())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + INDEX_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getIndexName().hashCode();
    switch (filterCase_) {
      case 2:
        hash = (37 * hash) + ALL_FIELD_NUMBER;
        hash = (53 * hash) + getAll().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static grpc.vectorindex._CountItemsRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static grpc.vectorindex._CountItemsRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static grpc.vectorindex._CountItemsRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static grpc.vectorindex._CountItemsRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static grpc.vectorindex._CountItemsRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static grpc.vectorindex._CountItemsRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static grpc.vectorindex._CountItemsRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static grpc.vectorindex._CountItemsRequest 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 grpc.vectorindex._CountItemsRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static grpc.vectorindex._CountItemsRequest 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 grpc.vectorindex._CountItemsRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static grpc.vectorindex._CountItemsRequest 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(grpc.vectorindex._CountItemsRequest 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 vectorindex._CountItemsRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:vectorindex._CountItemsRequest)
      grpc.vectorindex._CountItemsRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              grpc.vectorindex._CountItemsRequest.class, grpc.vectorindex._CountItemsRequest.Builder.class);
    }

    // Construct using grpc.vectorindex._CountItemsRequest.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      indexName_ = "";
      if (allBuilder_ != null) {
        allBuilder_.clear();
      }
      filterCase_ = 0;
      filter_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__CountItemsRequest_descriptor;
    }

    @java.lang.Override
    public grpc.vectorindex._CountItemsRequest getDefaultInstanceForType() {
      return grpc.vectorindex._CountItemsRequest.getDefaultInstance();
    }

    @java.lang.Override
    public grpc.vectorindex._CountItemsRequest build() {
      grpc.vectorindex._CountItemsRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public grpc.vectorindex._CountItemsRequest buildPartial() {
      grpc.vectorindex._CountItemsRequest result = new grpc.vectorindex._CountItemsRequest(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(grpc.vectorindex._CountItemsRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.indexName_ = indexName_;
      }
    }

    private void buildPartialOneofs(grpc.vectorindex._CountItemsRequest result) {
      result.filterCase_ = filterCase_;
      result.filter_ = this.filter_;
      if (filterCase_ == 2 &&
          allBuilder_ != null) {
        result.filter_ = allBuilder_.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 grpc.vectorindex._CountItemsRequest) {
        return mergeFrom((grpc.vectorindex._CountItemsRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(grpc.vectorindex._CountItemsRequest other) {
      if (other == grpc.vectorindex._CountItemsRequest.getDefaultInstance()) return this;
      if (!other.getIndexName().isEmpty()) {
        indexName_ = other.indexName_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      switch (other.getFilterCase()) {
        case ALL: {
          mergeAll(other.getAll());
          break;
        }
        case FILTER_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: {
              indexName_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getAllFieldBuilder().getBuilder(),
                  extensionRegistry);
              filterCase_ = 2;
              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 filterCase_ = 0;
    private java.lang.Object filter_;
    public FilterCase
        getFilterCase() {
      return FilterCase.forNumber(
          filterCase_);
    }

    public Builder clearFilter() {
      filterCase_ = 0;
      filter_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object indexName_ = "";
    /**
     * string index_name = 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;
      }
    }
    /**
     * string index_name = 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;
      }
    }
    /**
     * string index_name = 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;
    }
    /**
     * string index_name = 1;
     * @return This builder for chaining.
     */
    public Builder clearIndexName() {
      indexName_ = getDefaultInstance().getIndexName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string index_name = 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 com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._CountItemsRequest.All, grpc.vectorindex._CountItemsRequest.All.Builder, grpc.vectorindex._CountItemsRequest.AllOrBuilder> allBuilder_;
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     * @return Whether the all field is set.
     */
    @java.lang.Override
    public boolean hasAll() {
      return filterCase_ == 2;
    }
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     * @return The all.
     */
    @java.lang.Override
    public grpc.vectorindex._CountItemsRequest.All getAll() {
      if (allBuilder_ == null) {
        if (filterCase_ == 2) {
          return (grpc.vectorindex._CountItemsRequest.All) filter_;
        }
        return grpc.vectorindex._CountItemsRequest.All.getDefaultInstance();
      } else {
        if (filterCase_ == 2) {
          return allBuilder_.getMessage();
        }
        return grpc.vectorindex._CountItemsRequest.All.getDefaultInstance();
      }
    }
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     */
    public Builder setAll(grpc.vectorindex._CountItemsRequest.All value) {
      if (allBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        filter_ = value;
        onChanged();
      } else {
        allBuilder_.setMessage(value);
      }
      filterCase_ = 2;
      return this;
    }
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     */
    public Builder setAll(
        grpc.vectorindex._CountItemsRequest.All.Builder builderForValue) {
      if (allBuilder_ == null) {
        filter_ = builderForValue.build();
        onChanged();
      } else {
        allBuilder_.setMessage(builderForValue.build());
      }
      filterCase_ = 2;
      return this;
    }
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     */
    public Builder mergeAll(grpc.vectorindex._CountItemsRequest.All value) {
      if (allBuilder_ == null) {
        if (filterCase_ == 2 &&
            filter_ != grpc.vectorindex._CountItemsRequest.All.getDefaultInstance()) {
          filter_ = grpc.vectorindex._CountItemsRequest.All.newBuilder((grpc.vectorindex._CountItemsRequest.All) filter_)
              .mergeFrom(value).buildPartial();
        } else {
          filter_ = value;
        }
        onChanged();
      } else {
        if (filterCase_ == 2) {
          allBuilder_.mergeFrom(value);
        } else {
          allBuilder_.setMessage(value);
        }
      }
      filterCase_ = 2;
      return this;
    }
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     */
    public Builder clearAll() {
      if (allBuilder_ == null) {
        if (filterCase_ == 2) {
          filterCase_ = 0;
          filter_ = null;
          onChanged();
        }
      } else {
        if (filterCase_ == 2) {
          filterCase_ = 0;
          filter_ = null;
        }
        allBuilder_.clear();
      }
      return this;
    }
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     */
    public grpc.vectorindex._CountItemsRequest.All.Builder getAllBuilder() {
      return getAllFieldBuilder().getBuilder();
    }
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     */
    @java.lang.Override
    public grpc.vectorindex._CountItemsRequest.AllOrBuilder getAllOrBuilder() {
      if ((filterCase_ == 2) && (allBuilder_ != null)) {
        return allBuilder_.getMessageOrBuilder();
      } else {
        if (filterCase_ == 2) {
          return (grpc.vectorindex._CountItemsRequest.All) filter_;
        }
        return grpc.vectorindex._CountItemsRequest.All.getDefaultInstance();
      }
    }
    /**
     * .vectorindex._CountItemsRequest.All all = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._CountItemsRequest.All, grpc.vectorindex._CountItemsRequest.All.Builder, grpc.vectorindex._CountItemsRequest.AllOrBuilder> 
        getAllFieldBuilder() {
      if (allBuilder_ == null) {
        if (!(filterCase_ == 2)) {
          filter_ = grpc.vectorindex._CountItemsRequest.All.getDefaultInstance();
        }
        allBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.vectorindex._CountItemsRequest.All, grpc.vectorindex._CountItemsRequest.All.Builder, grpc.vectorindex._CountItemsRequest.AllOrBuilder>(
                (grpc.vectorindex._CountItemsRequest.All) filter_,
                getParentForChildren(),
                isClean());
        filter_ = null;
      }
      filterCase_ = 2;
      onChanged();
      return allBuilder_;
    }
    @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:vectorindex._CountItemsRequest)
  }

  // @@protoc_insertion_point(class_scope:vectorindex._CountItemsRequest)
  private static final grpc.vectorindex._CountItemsRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new grpc.vectorindex._CountItemsRequest();
  }

  public static grpc.vectorindex._CountItemsRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<_CountItemsRequest>
      PARSER = new com.google.protobuf.AbstractParser<_CountItemsRequest>() {
    @java.lang.Override
    public _CountItemsRequest 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<_CountItemsRequest> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<_CountItemsRequest> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public grpc.vectorindex._CountItemsRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy