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

com.alibaba.graphscope.proto.groot.AddIndexReq Maven / Gradle / Ivy

There is a newer version: 0.28.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: groot/sdk/schema.proto

package com.alibaba.graphscope.proto.groot;

/**
 * Protobuf type {@code gs.rpc.groot.AddIndexReq}
 */
public final class AddIndexReq extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:gs.rpc.groot.AddIndexReq)
    AddIndexReqOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AddIndexReq.newBuilder() to construct.
  private AddIndexReq(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private AddIndexReq() {
    label_ = "";
    name_ = "";
    indexType_ = 0;
    property_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_AddIndexReq_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_AddIndexReq_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.alibaba.graphscope.proto.groot.AddIndexReq.class, com.alibaba.graphscope.proto.groot.AddIndexReq.Builder.class);
  }

  public static final int LABEL_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object label_ = "";
  /**
   * string label = 1;
   * @return The label.
   */
  @java.lang.Override
  public java.lang.String getLabel() {
    java.lang.Object ref = label_;
    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();
      label_ = s;
      return s;
    }
  }
  /**
   * string label = 1;
   * @return The bytes for label.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLabelBytes() {
    java.lang.Object ref = label_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      label_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NAME_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   * string name = 2;
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   * string name = 2;
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INDEXTYPE_FIELD_NUMBER = 3;
  private int indexType_ = 0;
  /**
   * .gs.rpc.groot.IndexDefProto.Type indexType = 3;
   * @return The enum numeric value on the wire for indexType.
   */
  @java.lang.Override public int getIndexTypeValue() {
    return indexType_;
  }
  /**
   * .gs.rpc.groot.IndexDefProto.Type indexType = 3;
   * @return The indexType.
   */
  @java.lang.Override public com.alibaba.graphscope.proto.groot.IndexDefProto.Type getIndexType() {
    com.alibaba.graphscope.proto.groot.IndexDefProto.Type result = com.alibaba.graphscope.proto.groot.IndexDefProto.Type.forNumber(indexType_);
    return result == null ? com.alibaba.graphscope.proto.groot.IndexDefProto.Type.UNRECOGNIZED : result;
  }

  public static final int PROPERTY_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList property_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * repeated string property = 4;
   * @return A list containing the property.
   */
  public com.google.protobuf.ProtocolStringList
      getPropertyList() {
    return property_;
  }
  /**
   * repeated string property = 4;
   * @return The count of property.
   */
  public int getPropertyCount() {
    return property_.size();
  }
  /**
   * repeated string property = 4;
   * @param index The index of the element to return.
   * @return The property at the given index.
   */
  public java.lang.String getProperty(int index) {
    return property_.get(index);
  }
  /**
   * repeated string property = 4;
   * @param index The index of the value to return.
   * @return The bytes of the property at the given index.
   */
  public com.google.protobuf.ByteString
      getPropertyBytes(int index) {
    return property_.getByteString(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 {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
    }
    if (indexType_ != com.alibaba.graphscope.proto.groot.IndexDefProto.Type.PRIMARY_KEY.getNumber()) {
      output.writeEnum(3, indexType_);
    }
    for (int i = 0; i < property_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, property_.getRaw(i));
    }
    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(label_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
    }
    if (indexType_ != com.alibaba.graphscope.proto.groot.IndexDefProto.Type.PRIMARY_KEY.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(3, indexType_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < property_.size(); i++) {
        dataSize += computeStringSizeNoTag(property_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getPropertyList().size();
    }
    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.alibaba.graphscope.proto.groot.AddIndexReq)) {
      return super.equals(obj);
    }
    com.alibaba.graphscope.proto.groot.AddIndexReq other = (com.alibaba.graphscope.proto.groot.AddIndexReq) obj;

    if (!getLabel()
        .equals(other.getLabel())) return false;
    if (!getName()
        .equals(other.getName())) return false;
    if (indexType_ != other.indexType_) return false;
    if (!getPropertyList()
        .equals(other.getPropertyList())) 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) + LABEL_FIELD_NUMBER;
    hash = (53 * hash) + getLabel().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + INDEXTYPE_FIELD_NUMBER;
    hash = (53 * hash) + indexType_;
    if (getPropertyCount() > 0) {
      hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
      hash = (53 * hash) + getPropertyList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.alibaba.graphscope.proto.groot.AddIndexReq parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq 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.alibaba.graphscope.proto.groot.AddIndexReq parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq 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.alibaba.graphscope.proto.groot.AddIndexReq parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.alibaba.graphscope.proto.groot.AddIndexReq 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.alibaba.graphscope.proto.groot.AddIndexReq 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 gs.rpc.groot.AddIndexReq}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:gs.rpc.groot.AddIndexReq)
      com.alibaba.graphscope.proto.groot.AddIndexReqOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_AddIndexReq_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_AddIndexReq_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.alibaba.graphscope.proto.groot.AddIndexReq.class, com.alibaba.graphscope.proto.groot.AddIndexReq.Builder.class);
    }

    // Construct using com.alibaba.graphscope.proto.groot.AddIndexReq.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      label_ = "";
      name_ = "";
      indexType_ = 0;
      property_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_AddIndexReq_descriptor;
    }

    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.AddIndexReq getDefaultInstanceForType() {
      return com.alibaba.graphscope.proto.groot.AddIndexReq.getDefaultInstance();
    }

    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.AddIndexReq build() {
      com.alibaba.graphscope.proto.groot.AddIndexReq result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.AddIndexReq buildPartial() {
      com.alibaba.graphscope.proto.groot.AddIndexReq result = new com.alibaba.graphscope.proto.groot.AddIndexReq(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.alibaba.graphscope.proto.groot.AddIndexReq result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.label_ = label_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.indexType_ = indexType_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        property_.makeImmutable();
        result.property_ = property_;
      }
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.alibaba.graphscope.proto.groot.AddIndexReq) {
        return mergeFrom((com.alibaba.graphscope.proto.groot.AddIndexReq)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.alibaba.graphscope.proto.groot.AddIndexReq other) {
      if (other == com.alibaba.graphscope.proto.groot.AddIndexReq.getDefaultInstance()) return this;
      if (!other.getLabel().isEmpty()) {
        label_ = other.label_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.indexType_ != 0) {
        setIndexTypeValue(other.getIndexTypeValue());
      }
      if (!other.property_.isEmpty()) {
        if (property_.isEmpty()) {
          property_ = other.property_;
          bitField0_ |= 0x00000008;
        } else {
          ensurePropertyIsMutable();
          property_.addAll(other.property_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              label_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              name_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 24: {
              indexType_ = input.readEnum();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();
              ensurePropertyIsMutable();
              property_.add(s);
              break;
            } // case 34
            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 label_ = "";
    /**
     * string label = 1;
     * @return The label.
     */
    public java.lang.String getLabel() {
      java.lang.Object ref = label_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        label_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string label = 1;
     * @return The bytes for label.
     */
    public com.google.protobuf.ByteString
        getLabelBytes() {
      java.lang.Object ref = label_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        label_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string label = 1;
     * @param value The label to set.
     * @return This builder for chaining.
     */
    public Builder setLabel(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      label_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string label = 1;
     * @return This builder for chaining.
     */
    public Builder clearLabel() {
      label_ = getDefaultInstance().getLabel();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string label = 1;
     * @param value The bytes for label to set.
     * @return This builder for chaining.
     */
    public Builder setLabelBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      label_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * string name = 2;
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string name = 2;
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string name = 2;
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      name_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * string name = 2;
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * string name = 2;
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private int indexType_ = 0;
    /**
     * .gs.rpc.groot.IndexDefProto.Type indexType = 3;
     * @return The enum numeric value on the wire for indexType.
     */
    @java.lang.Override public int getIndexTypeValue() {
      return indexType_;
    }
    /**
     * .gs.rpc.groot.IndexDefProto.Type indexType = 3;
     * @param value The enum numeric value on the wire for indexType to set.
     * @return This builder for chaining.
     */
    public Builder setIndexTypeValue(int value) {
      indexType_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.groot.IndexDefProto.Type indexType = 3;
     * @return The indexType.
     */
    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.IndexDefProto.Type getIndexType() {
      com.alibaba.graphscope.proto.groot.IndexDefProto.Type result = com.alibaba.graphscope.proto.groot.IndexDefProto.Type.forNumber(indexType_);
      return result == null ? com.alibaba.graphscope.proto.groot.IndexDefProto.Type.UNRECOGNIZED : result;
    }
    /**
     * .gs.rpc.groot.IndexDefProto.Type indexType = 3;
     * @param value The indexType to set.
     * @return This builder for chaining.
     */
    public Builder setIndexType(com.alibaba.graphscope.proto.groot.IndexDefProto.Type value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      indexType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.groot.IndexDefProto.Type indexType = 3;
     * @return This builder for chaining.
     */
    public Builder clearIndexType() {
      bitField0_ = (bitField0_ & ~0x00000004);
      indexType_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringArrayList property_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    private void ensurePropertyIsMutable() {
      if (!property_.isModifiable()) {
        property_ = new com.google.protobuf.LazyStringArrayList(property_);
      }
      bitField0_ |= 0x00000008;
    }
    /**
     * repeated string property = 4;
     * @return A list containing the property.
     */
    public com.google.protobuf.ProtocolStringList
        getPropertyList() {
      property_.makeImmutable();
      return property_;
    }
    /**
     * repeated string property = 4;
     * @return The count of property.
     */
    public int getPropertyCount() {
      return property_.size();
    }
    /**
     * repeated string property = 4;
     * @param index The index of the element to return.
     * @return The property at the given index.
     */
    public java.lang.String getProperty(int index) {
      return property_.get(index);
    }
    /**
     * repeated string property = 4;
     * @param index The index of the value to return.
     * @return The bytes of the property at the given index.
     */
    public com.google.protobuf.ByteString
        getPropertyBytes(int index) {
      return property_.getByteString(index);
    }
    /**
     * repeated string property = 4;
     * @param index The index to set the value at.
     * @param value The property to set.
     * @return This builder for chaining.
     */
    public Builder setProperty(
        int index, java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensurePropertyIsMutable();
      property_.set(index, value);
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * repeated string property = 4;
     * @param value The property to add.
     * @return This builder for chaining.
     */
    public Builder addProperty(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensurePropertyIsMutable();
      property_.add(value);
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * repeated string property = 4;
     * @param values The property to add.
     * @return This builder for chaining.
     */
    public Builder addAllProperty(
        java.lang.Iterable values) {
      ensurePropertyIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, property_);
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * repeated string property = 4;
     * @return This builder for chaining.
     */
    public Builder clearProperty() {
      property_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000008);;
      onChanged();
      return this;
    }
    /**
     * repeated string property = 4;
     * @param value The bytes of the property to add.
     * @return This builder for chaining.
     */
    public Builder addPropertyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      ensurePropertyIsMutable();
      property_.add(value);
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:gs.rpc.groot.AddIndexReq)
  }

  // @@protoc_insertion_point(class_scope:gs.rpc.groot.AddIndexReq)
  private static final com.alibaba.graphscope.proto.groot.AddIndexReq DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.alibaba.graphscope.proto.groot.AddIndexReq();
  }

  public static com.alibaba.graphscope.proto.groot.AddIndexReq getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public AddIndexReq 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.alibaba.graphscope.proto.groot.AddIndexReq getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy