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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: schema_common.proto

package com.alibaba.graphscope.proto.groot;

/**
 * Protobuf type {@code gs.rpc.graph.PropertyDefPb}
 */
public final class PropertyDefPb extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:gs.rpc.graph.PropertyDefPb)
    PropertyDefPbOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PropertyDefPb.newBuilder() to construct.
  private PropertyDefPb(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PropertyDefPb() {
    name_ = "";
    dataType_ = 0;
    comment_ = "";
  }

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

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

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

  public static final int ID_FIELD_NUMBER = 1;
  private int id_ = 0;
  /**
   * int32 id = 1;
   * @return The id.
   */
  @java.lang.Override
  public int getId() {
    return id_;
  }

  public static final int INNER_ID_FIELD_NUMBER = 2;
  private int innerId_ = 0;
  /**
   * int32 inner_id = 2;
   * @return The innerId.
   */
  @java.lang.Override
  public int getInnerId() {
    return innerId_;
  }

  public static final int NAME_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   * string name = 3;
   * @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 = 3;
   * @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 DATA_TYPE_FIELD_NUMBER = 4;
  private int dataType_ = 0;
  /**
   * .gs.rpc.graph.DataTypePb data_type = 4;
   * @return The enum numeric value on the wire for dataType.
   */
  @java.lang.Override public int getDataTypeValue() {
    return dataType_;
  }
  /**
   * .gs.rpc.graph.DataTypePb data_type = 4;
   * @return The dataType.
   */
  @java.lang.Override public com.alibaba.graphscope.proto.groot.DataTypePb getDataType() {
    com.alibaba.graphscope.proto.groot.DataTypePb result = com.alibaba.graphscope.proto.groot.DataTypePb.forNumber(dataType_);
    return result == null ? com.alibaba.graphscope.proto.groot.DataTypePb.UNRECOGNIZED : result;
  }

  public static final int DEFAULT_VALUE_FIELD_NUMBER = 5;
  private com.alibaba.graphscope.proto.groot.PropertyValuePb defaultValue_;
  /**
   * .gs.rpc.graph.PropertyValuePb default_value = 5;
   * @return Whether the defaultValue field is set.
   */
  @java.lang.Override
  public boolean hasDefaultValue() {
    return defaultValue_ != null;
  }
  /**
   * .gs.rpc.graph.PropertyValuePb default_value = 5;
   * @return The defaultValue.
   */
  @java.lang.Override
  public com.alibaba.graphscope.proto.groot.PropertyValuePb getDefaultValue() {
    return defaultValue_ == null ? com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance() : defaultValue_;
  }
  /**
   * .gs.rpc.graph.PropertyValuePb default_value = 5;
   */
  @java.lang.Override
  public com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder getDefaultValueOrBuilder() {
    return defaultValue_ == null ? com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance() : defaultValue_;
  }

  public static final int PK_FIELD_NUMBER = 6;
  private boolean pk_ = false;
  /**
   * bool pk = 6;
   * @return The pk.
   */
  @java.lang.Override
  public boolean getPk() {
    return pk_;
  }

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

  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 (id_ != 0) {
      output.writeInt32(1, id_);
    }
    if (innerId_ != 0) {
      output.writeInt32(2, innerId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
    }
    if (dataType_ != com.alibaba.graphscope.proto.groot.DataTypePb.UNKNOWN.getNumber()) {
      output.writeEnum(4, dataType_);
    }
    if (defaultValue_ != null) {
      output.writeMessage(5, getDefaultValue());
    }
    if (pk_ != false) {
      output.writeBool(6, pk_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, comment_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (id_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, id_);
    }
    if (innerId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, innerId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
    }
    if (dataType_ != com.alibaba.graphscope.proto.groot.DataTypePb.UNKNOWN.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(4, dataType_);
    }
    if (defaultValue_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getDefaultValue());
    }
    if (pk_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(6, pk_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, comment_);
    }
    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.PropertyDefPb)) {
      return super.equals(obj);
    }
    com.alibaba.graphscope.proto.groot.PropertyDefPb other = (com.alibaba.graphscope.proto.groot.PropertyDefPb) obj;

    if (getId()
        != other.getId()) return false;
    if (getInnerId()
        != other.getInnerId()) return false;
    if (!getName()
        .equals(other.getName())) return false;
    if (dataType_ != other.dataType_) return false;
    if (hasDefaultValue() != other.hasDefaultValue()) return false;
    if (hasDefaultValue()) {
      if (!getDefaultValue()
          .equals(other.getDefaultValue())) return false;
    }
    if (getPk()
        != other.getPk()) return false;
    if (!getComment()
        .equals(other.getComment())) 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) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + INNER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getInnerId();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + dataType_;
    if (hasDefaultValue()) {
      hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getDefaultValue().hashCode();
    }
    hash = (37 * hash) + PK_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getPk());
    hash = (37 * hash) + COMMENT_FIELD_NUMBER;
    hash = (53 * hash) + getComment().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      id_ = 0;
      innerId_ = 0;
      name_ = "";
      dataType_ = 0;
      defaultValue_ = null;
      if (defaultValueBuilder_ != null) {
        defaultValueBuilder_.dispose();
        defaultValueBuilder_ = null;
      }
      pk_ = false;
      comment_ = "";
      return this;
    }

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

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

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

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

    private void buildPartial0(com.alibaba.graphscope.proto.groot.PropertyDefPb result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.id_ = id_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.innerId_ = innerId_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.dataType_ = dataType_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.defaultValue_ = defaultValueBuilder_ == null
            ? defaultValue_
            : defaultValueBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.pk_ = pk_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.comment_ = comment_;
      }
    }

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

    public Builder mergeFrom(com.alibaba.graphscope.proto.groot.PropertyDefPb other) {
      if (other == com.alibaba.graphscope.proto.groot.PropertyDefPb.getDefaultInstance()) return this;
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (other.getInnerId() != 0) {
        setInnerId(other.getInnerId());
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (other.dataType_ != 0) {
        setDataTypeValue(other.getDataTypeValue());
      }
      if (other.hasDefaultValue()) {
        mergeDefaultValue(other.getDefaultValue());
      }
      if (other.getPk() != false) {
        setPk(other.getPk());
      }
      if (!other.getComment().isEmpty()) {
        comment_ = other.comment_;
        bitField0_ |= 0x00000040;
        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 8: {
              id_ = input.readInt32();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 16: {
              innerId_ = input.readInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              name_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 32: {
              dataType_ = input.readEnum();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 42: {
              input.readMessage(
                  getDefaultValueFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 48: {
              pk_ = input.readBool();
              bitField0_ |= 0x00000020;
              break;
            } // case 48
            case 58: {
              comment_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000040;
              break;
            } // case 58
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private int id_ ;
    /**
     * int32 id = 1;
     * @return The id.
     */
    @java.lang.Override
    public int getId() {
      return id_;
    }
    /**
     * int32 id = 1;
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(int value) {

      id_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * int32 id = 1;
     * @return This builder for chaining.
     */
    public Builder clearId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      id_ = 0;
      onChanged();
      return this;
    }

    private int innerId_ ;
    /**
     * int32 inner_id = 2;
     * @return The innerId.
     */
    @java.lang.Override
    public int getInnerId() {
      return innerId_;
    }
    /**
     * int32 inner_id = 2;
     * @param value The innerId to set.
     * @return This builder for chaining.
     */
    public Builder setInnerId(int value) {

      innerId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * int32 inner_id = 2;
     * @return This builder for chaining.
     */
    public Builder clearInnerId() {
      bitField0_ = (bitField0_ & ~0x00000002);
      innerId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * string name = 3;
     * @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 = 3;
     * @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 = 3;
     * @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_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * string name = 3;
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * string name = 3;
     * @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_ |= 0x00000004;
      onChanged();
      return this;
    }

    private int dataType_ = 0;
    /**
     * .gs.rpc.graph.DataTypePb data_type = 4;
     * @return The enum numeric value on the wire for dataType.
     */
    @java.lang.Override public int getDataTypeValue() {
      return dataType_;
    }
    /**
     * .gs.rpc.graph.DataTypePb data_type = 4;
     * @param value The enum numeric value on the wire for dataType to set.
     * @return This builder for chaining.
     */
    public Builder setDataTypeValue(int value) {
      dataType_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.DataTypePb data_type = 4;
     * @return The dataType.
     */
    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.DataTypePb getDataType() {
      com.alibaba.graphscope.proto.groot.DataTypePb result = com.alibaba.graphscope.proto.groot.DataTypePb.forNumber(dataType_);
      return result == null ? com.alibaba.graphscope.proto.groot.DataTypePb.UNRECOGNIZED : result;
    }
    /**
     * .gs.rpc.graph.DataTypePb data_type = 4;
     * @param value The dataType to set.
     * @return This builder for chaining.
     */
    public Builder setDataType(com.alibaba.graphscope.proto.groot.DataTypePb value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000008;
      dataType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.DataTypePb data_type = 4;
     * @return This builder for chaining.
     */
    public Builder clearDataType() {
      bitField0_ = (bitField0_ & ~0x00000008);
      dataType_ = 0;
      onChanged();
      return this;
    }

    private com.alibaba.graphscope.proto.groot.PropertyValuePb defaultValue_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.alibaba.graphscope.proto.groot.PropertyValuePb, com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder, com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder> defaultValueBuilder_;
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     * @return Whether the defaultValue field is set.
     */
    public boolean hasDefaultValue() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     * @return The defaultValue.
     */
    public com.alibaba.graphscope.proto.groot.PropertyValuePb getDefaultValue() {
      if (defaultValueBuilder_ == null) {
        return defaultValue_ == null ? com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance() : defaultValue_;
      } else {
        return defaultValueBuilder_.getMessage();
      }
    }
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     */
    public Builder setDefaultValue(com.alibaba.graphscope.proto.groot.PropertyValuePb value) {
      if (defaultValueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        defaultValue_ = value;
      } else {
        defaultValueBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     */
    public Builder setDefaultValue(
        com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder builderForValue) {
      if (defaultValueBuilder_ == null) {
        defaultValue_ = builderForValue.build();
      } else {
        defaultValueBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     */
    public Builder mergeDefaultValue(com.alibaba.graphscope.proto.groot.PropertyValuePb value) {
      if (defaultValueBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0) &&
          defaultValue_ != null &&
          defaultValue_ != com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance()) {
          getDefaultValueBuilder().mergeFrom(value);
        } else {
          defaultValue_ = value;
        }
      } else {
        defaultValueBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     */
    public Builder clearDefaultValue() {
      bitField0_ = (bitField0_ & ~0x00000010);
      defaultValue_ = null;
      if (defaultValueBuilder_ != null) {
        defaultValueBuilder_.dispose();
        defaultValueBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     */
    public com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder getDefaultValueBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getDefaultValueFieldBuilder().getBuilder();
    }
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     */
    public com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder getDefaultValueOrBuilder() {
      if (defaultValueBuilder_ != null) {
        return defaultValueBuilder_.getMessageOrBuilder();
      } else {
        return defaultValue_ == null ?
            com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance() : defaultValue_;
      }
    }
    /**
     * .gs.rpc.graph.PropertyValuePb default_value = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.alibaba.graphscope.proto.groot.PropertyValuePb, com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder, com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder> 
        getDefaultValueFieldBuilder() {
      if (defaultValueBuilder_ == null) {
        defaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.alibaba.graphscope.proto.groot.PropertyValuePb, com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder, com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder>(
                getDefaultValue(),
                getParentForChildren(),
                isClean());
        defaultValue_ = null;
      }
      return defaultValueBuilder_;
    }

    private boolean pk_ ;
    /**
     * bool pk = 6;
     * @return The pk.
     */
    @java.lang.Override
    public boolean getPk() {
      return pk_;
    }
    /**
     * bool pk = 6;
     * @param value The pk to set.
     * @return This builder for chaining.
     */
    public Builder setPk(boolean value) {

      pk_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * bool pk = 6;
     * @return This builder for chaining.
     */
    public Builder clearPk() {
      bitField0_ = (bitField0_ & ~0x00000020);
      pk_ = false;
      onChanged();
      return this;
    }

    private java.lang.Object comment_ = "";
    /**
     * string comment = 7;
     * @return The comment.
     */
    public java.lang.String getComment() {
      java.lang.Object ref = comment_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        comment_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string comment = 7;
     * @return The bytes for comment.
     */
    public com.google.protobuf.ByteString
        getCommentBytes() {
      java.lang.Object ref = comment_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        comment_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string comment = 7;
     * @param value The comment to set.
     * @return This builder for chaining.
     */
    public Builder setComment(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      comment_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * string comment = 7;
     * @return This builder for chaining.
     */
    public Builder clearComment() {
      comment_ = getDefaultInstance().getComment();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     * string comment = 7;
     * @param value The bytes for comment to set.
     * @return This builder for chaining.
     */
    public Builder setCommentBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      comment_ = value;
      bitField0_ |= 0x00000040;
      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.graph.PropertyDefPb)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy