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

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

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

package com.alibaba.graphscope.proto.groot;

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

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

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

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 3:
        return internalGetProperties();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.alibaba.graphscope.proto.groot.WriteService.internal_static_gs_rpc_groot_DataRecordPb_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.alibaba.graphscope.proto.groot.DataRecordPb.class, com.alibaba.graphscope.proto.groot.DataRecordPb.Builder.class);
  }

  private int recordKeyCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object recordKey_;
  public enum RecordKeyCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    VERTEX_RECORD_KEY(1),
    EDGE_RECORD_KEY(2),
    RECORDKEY_NOT_SET(0);
    private final int value;
    private RecordKeyCase(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 RecordKeyCase valueOf(int value) {
      return forNumber(value);
    }

    public static RecordKeyCase forNumber(int value) {
      switch (value) {
        case 1: return VERTEX_RECORD_KEY;
        case 2: return EDGE_RECORD_KEY;
        case 0: return RECORDKEY_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public RecordKeyCase
  getRecordKeyCase() {
    return RecordKeyCase.forNumber(
        recordKeyCase_);
  }

  public static final int VERTEX_RECORD_KEY_FIELD_NUMBER = 1;
  /**
   * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
   * @return Whether the vertexRecordKey field is set.
   */
  @java.lang.Override
  public boolean hasVertexRecordKey() {
    return recordKeyCase_ == 1;
  }
  /**
   * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
   * @return The vertexRecordKey.
   */
  @java.lang.Override
  public com.alibaba.graphscope.proto.groot.VertexRecordKeyPb getVertexRecordKey() {
    if (recordKeyCase_ == 1) {
       return (com.alibaba.graphscope.proto.groot.VertexRecordKeyPb) recordKey_;
    }
    return com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.getDefaultInstance();
  }
  /**
   * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
   */
  @java.lang.Override
  public com.alibaba.graphscope.proto.groot.VertexRecordKeyPbOrBuilder getVertexRecordKeyOrBuilder() {
    if (recordKeyCase_ == 1) {
       return (com.alibaba.graphscope.proto.groot.VertexRecordKeyPb) recordKey_;
    }
    return com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.getDefaultInstance();
  }

  public static final int EDGE_RECORD_KEY_FIELD_NUMBER = 2;
  /**
   * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
   * @return Whether the edgeRecordKey field is set.
   */
  @java.lang.Override
  public boolean hasEdgeRecordKey() {
    return recordKeyCase_ == 2;
  }
  /**
   * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
   * @return The edgeRecordKey.
   */
  @java.lang.Override
  public com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb getEdgeRecordKey() {
    if (recordKeyCase_ == 2) {
       return (com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb) recordKey_;
    }
    return com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.getDefaultInstance();
  }
  /**
   * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
   */
  @java.lang.Override
  public com.alibaba.graphscope.proto.groot.EdgeRecordKeyPbOrBuilder getEdgeRecordKeyOrBuilder() {
    if (recordKeyCase_ == 2) {
       return (com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb) recordKey_;
    }
    return com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.getDefaultInstance();
  }

  public static final int PROPERTIES_FIELD_NUMBER = 3;
  private static final class PropertiesDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, java.lang.String> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                com.alibaba.graphscope.proto.groot.WriteService.internal_static_gs_rpc_groot_DataRecordPb_PropertiesEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<
      java.lang.String, java.lang.String> properties_;
  private com.google.protobuf.MapField
  internalGetProperties() {
    if (properties_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          PropertiesDefaultEntryHolder.defaultEntry);
    }
    return properties_;
  }
  public int getPropertiesCount() {
    return internalGetProperties().getMap().size();
  }
  /**
   * map<string, string> properties = 3;
   */
  @java.lang.Override
  public boolean containsProperties(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetProperties().getMap().containsKey(key);
  }
  /**
   * Use {@link #getPropertiesMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getProperties() {
    return getPropertiesMap();
  }
  /**
   * map<string, string> properties = 3;
   */
  @java.lang.Override
  public java.util.Map getPropertiesMap() {
    return internalGetProperties().getMap();
  }
  /**
   * map<string, string> properties = 3;
   */
  @java.lang.Override
  public /* nullable */
java.lang.String getPropertiesOrDefault(
      java.lang.String key,
      /* nullable */
java.lang.String defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetProperties().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, string> properties = 3;
   */
  @java.lang.Override
  public java.lang.String getPropertiesOrThrow(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetProperties().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (recordKeyCase_ == 1) {
      output.writeMessage(1, (com.alibaba.graphscope.proto.groot.VertexRecordKeyPb) recordKey_);
    }
    if (recordKeyCase_ == 2) {
      output.writeMessage(2, (com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb) recordKey_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetProperties(),
        PropertiesDefaultEntryHolder.defaultEntry,
        3);
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (recordKeyCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.alibaba.graphscope.proto.groot.VertexRecordKeyPb) recordKey_);
    }
    if (recordKeyCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb) recordKey_);
    }
    for (java.util.Map.Entry entry
         : internalGetProperties().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, properties__);
    }
    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.DataRecordPb)) {
      return super.equals(obj);
    }
    com.alibaba.graphscope.proto.groot.DataRecordPb other = (com.alibaba.graphscope.proto.groot.DataRecordPb) obj;

    if (!internalGetProperties().equals(
        other.internalGetProperties())) return false;
    if (!getRecordKeyCase().equals(other.getRecordKeyCase())) return false;
    switch (recordKeyCase_) {
      case 1:
        if (!getVertexRecordKey()
            .equals(other.getVertexRecordKey())) return false;
        break;
      case 2:
        if (!getEdgeRecordKey()
            .equals(other.getEdgeRecordKey())) 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();
    if (!internalGetProperties().getMap().isEmpty()) {
      hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
      hash = (53 * hash) + internalGetProperties().hashCode();
    }
    switch (recordKeyCase_) {
      case 1:
        hash = (37 * hash) + VERTEX_RECORD_KEY_FIELD_NUMBER;
        hash = (53 * hash) + getVertexRecordKey().hashCode();
        break;
      case 2:
        hash = (37 * hash) + EDGE_RECORD_KEY_FIELD_NUMBER;
        hash = (53 * hash) + getEdgeRecordKey().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 3:
          return internalGetProperties();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 3:
          return internalGetMutableProperties();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.alibaba.graphscope.proto.groot.WriteService.internal_static_gs_rpc_groot_DataRecordPb_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.alibaba.graphscope.proto.groot.DataRecordPb.class, com.alibaba.graphscope.proto.groot.DataRecordPb.Builder.class);
    }

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (vertexRecordKeyBuilder_ != null) {
        vertexRecordKeyBuilder_.clear();
      }
      if (edgeRecordKeyBuilder_ != null) {
        edgeRecordKeyBuilder_.clear();
      }
      internalGetMutableProperties().clear();
      recordKeyCase_ = 0;
      recordKey_ = null;
      return this;
    }

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

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

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

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

    private void buildPartial0(com.alibaba.graphscope.proto.groot.DataRecordPb result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.properties_ = internalGetProperties();
        result.properties_.makeImmutable();
      }
    }

    private void buildPartialOneofs(com.alibaba.graphscope.proto.groot.DataRecordPb result) {
      result.recordKeyCase_ = recordKeyCase_;
      result.recordKey_ = this.recordKey_;
      if (recordKeyCase_ == 1 &&
          vertexRecordKeyBuilder_ != null) {
        result.recordKey_ = vertexRecordKeyBuilder_.build();
      }
      if (recordKeyCase_ == 2 &&
          edgeRecordKeyBuilder_ != null) {
        result.recordKey_ = edgeRecordKeyBuilder_.build();
      }
    }

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

    public Builder mergeFrom(com.alibaba.graphscope.proto.groot.DataRecordPb other) {
      if (other == com.alibaba.graphscope.proto.groot.DataRecordPb.getDefaultInstance()) return this;
      internalGetMutableProperties().mergeFrom(
          other.internalGetProperties());
      bitField0_ |= 0x00000004;
      switch (other.getRecordKeyCase()) {
        case VERTEX_RECORD_KEY: {
          mergeVertexRecordKey(other.getVertexRecordKey());
          break;
        }
        case EDGE_RECORD_KEY: {
          mergeEdgeRecordKey(other.getEdgeRecordKey());
          break;
        }
        case RECORDKEY_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: {
              input.readMessage(
                  getVertexRecordKeyFieldBuilder().getBuilder(),
                  extensionRegistry);
              recordKeyCase_ = 1;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getEdgeRecordKeyFieldBuilder().getBuilder(),
                  extensionRegistry);
              recordKeyCase_ = 2;
              break;
            } // case 18
            case 26: {
              com.google.protobuf.MapEntry
              properties__ = input.readMessage(
                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              internalGetMutableProperties().getMutableMap().put(
                  properties__.getKey(), properties__.getValue());
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int recordKeyCase_ = 0;
    private java.lang.Object recordKey_;
    public RecordKeyCase
        getRecordKeyCase() {
      return RecordKeyCase.forNumber(
          recordKeyCase_);
    }

    public Builder clearRecordKey() {
      recordKeyCase_ = 0;
      recordKey_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
        com.alibaba.graphscope.proto.groot.VertexRecordKeyPb, com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.Builder, com.alibaba.graphscope.proto.groot.VertexRecordKeyPbOrBuilder> vertexRecordKeyBuilder_;
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     * @return Whether the vertexRecordKey field is set.
     */
    @java.lang.Override
    public boolean hasVertexRecordKey() {
      return recordKeyCase_ == 1;
    }
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     * @return The vertexRecordKey.
     */
    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.VertexRecordKeyPb getVertexRecordKey() {
      if (vertexRecordKeyBuilder_ == null) {
        if (recordKeyCase_ == 1) {
          return (com.alibaba.graphscope.proto.groot.VertexRecordKeyPb) recordKey_;
        }
        return com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.getDefaultInstance();
      } else {
        if (recordKeyCase_ == 1) {
          return vertexRecordKeyBuilder_.getMessage();
        }
        return com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.getDefaultInstance();
      }
    }
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     */
    public Builder setVertexRecordKey(com.alibaba.graphscope.proto.groot.VertexRecordKeyPb value) {
      if (vertexRecordKeyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        recordKey_ = value;
        onChanged();
      } else {
        vertexRecordKeyBuilder_.setMessage(value);
      }
      recordKeyCase_ = 1;
      return this;
    }
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     */
    public Builder setVertexRecordKey(
        com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.Builder builderForValue) {
      if (vertexRecordKeyBuilder_ == null) {
        recordKey_ = builderForValue.build();
        onChanged();
      } else {
        vertexRecordKeyBuilder_.setMessage(builderForValue.build());
      }
      recordKeyCase_ = 1;
      return this;
    }
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     */
    public Builder mergeVertexRecordKey(com.alibaba.graphscope.proto.groot.VertexRecordKeyPb value) {
      if (vertexRecordKeyBuilder_ == null) {
        if (recordKeyCase_ == 1 &&
            recordKey_ != com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.getDefaultInstance()) {
          recordKey_ = com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.newBuilder((com.alibaba.graphscope.proto.groot.VertexRecordKeyPb) recordKey_)
              .mergeFrom(value).buildPartial();
        } else {
          recordKey_ = value;
        }
        onChanged();
      } else {
        if (recordKeyCase_ == 1) {
          vertexRecordKeyBuilder_.mergeFrom(value);
        } else {
          vertexRecordKeyBuilder_.setMessage(value);
        }
      }
      recordKeyCase_ = 1;
      return this;
    }
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     */
    public Builder clearVertexRecordKey() {
      if (vertexRecordKeyBuilder_ == null) {
        if (recordKeyCase_ == 1) {
          recordKeyCase_ = 0;
          recordKey_ = null;
          onChanged();
        }
      } else {
        if (recordKeyCase_ == 1) {
          recordKeyCase_ = 0;
          recordKey_ = null;
        }
        vertexRecordKeyBuilder_.clear();
      }
      return this;
    }
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     */
    public com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.Builder getVertexRecordKeyBuilder() {
      return getVertexRecordKeyFieldBuilder().getBuilder();
    }
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     */
    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.VertexRecordKeyPbOrBuilder getVertexRecordKeyOrBuilder() {
      if ((recordKeyCase_ == 1) && (vertexRecordKeyBuilder_ != null)) {
        return vertexRecordKeyBuilder_.getMessageOrBuilder();
      } else {
        if (recordKeyCase_ == 1) {
          return (com.alibaba.graphscope.proto.groot.VertexRecordKeyPb) recordKey_;
        }
        return com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.getDefaultInstance();
      }
    }
    /**
     * .gs.rpc.groot.VertexRecordKeyPb vertex_record_key = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.alibaba.graphscope.proto.groot.VertexRecordKeyPb, com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.Builder, com.alibaba.graphscope.proto.groot.VertexRecordKeyPbOrBuilder> 
        getVertexRecordKeyFieldBuilder() {
      if (vertexRecordKeyBuilder_ == null) {
        if (!(recordKeyCase_ == 1)) {
          recordKey_ = com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.getDefaultInstance();
        }
        vertexRecordKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.alibaba.graphscope.proto.groot.VertexRecordKeyPb, com.alibaba.graphscope.proto.groot.VertexRecordKeyPb.Builder, com.alibaba.graphscope.proto.groot.VertexRecordKeyPbOrBuilder>(
                (com.alibaba.graphscope.proto.groot.VertexRecordKeyPb) recordKey_,
                getParentForChildren(),
                isClean());
        recordKey_ = null;
      }
      recordKeyCase_ = 1;
      onChanged();
      return vertexRecordKeyBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb, com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.Builder, com.alibaba.graphscope.proto.groot.EdgeRecordKeyPbOrBuilder> edgeRecordKeyBuilder_;
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     * @return Whether the edgeRecordKey field is set.
     */
    @java.lang.Override
    public boolean hasEdgeRecordKey() {
      return recordKeyCase_ == 2;
    }
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     * @return The edgeRecordKey.
     */
    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb getEdgeRecordKey() {
      if (edgeRecordKeyBuilder_ == null) {
        if (recordKeyCase_ == 2) {
          return (com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb) recordKey_;
        }
        return com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.getDefaultInstance();
      } else {
        if (recordKeyCase_ == 2) {
          return edgeRecordKeyBuilder_.getMessage();
        }
        return com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.getDefaultInstance();
      }
    }
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     */
    public Builder setEdgeRecordKey(com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb value) {
      if (edgeRecordKeyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        recordKey_ = value;
        onChanged();
      } else {
        edgeRecordKeyBuilder_.setMessage(value);
      }
      recordKeyCase_ = 2;
      return this;
    }
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     */
    public Builder setEdgeRecordKey(
        com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.Builder builderForValue) {
      if (edgeRecordKeyBuilder_ == null) {
        recordKey_ = builderForValue.build();
        onChanged();
      } else {
        edgeRecordKeyBuilder_.setMessage(builderForValue.build());
      }
      recordKeyCase_ = 2;
      return this;
    }
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     */
    public Builder mergeEdgeRecordKey(com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb value) {
      if (edgeRecordKeyBuilder_ == null) {
        if (recordKeyCase_ == 2 &&
            recordKey_ != com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.getDefaultInstance()) {
          recordKey_ = com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.newBuilder((com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb) recordKey_)
              .mergeFrom(value).buildPartial();
        } else {
          recordKey_ = value;
        }
        onChanged();
      } else {
        if (recordKeyCase_ == 2) {
          edgeRecordKeyBuilder_.mergeFrom(value);
        } else {
          edgeRecordKeyBuilder_.setMessage(value);
        }
      }
      recordKeyCase_ = 2;
      return this;
    }
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     */
    public Builder clearEdgeRecordKey() {
      if (edgeRecordKeyBuilder_ == null) {
        if (recordKeyCase_ == 2) {
          recordKeyCase_ = 0;
          recordKey_ = null;
          onChanged();
        }
      } else {
        if (recordKeyCase_ == 2) {
          recordKeyCase_ = 0;
          recordKey_ = null;
        }
        edgeRecordKeyBuilder_.clear();
      }
      return this;
    }
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     */
    public com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.Builder getEdgeRecordKeyBuilder() {
      return getEdgeRecordKeyFieldBuilder().getBuilder();
    }
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     */
    @java.lang.Override
    public com.alibaba.graphscope.proto.groot.EdgeRecordKeyPbOrBuilder getEdgeRecordKeyOrBuilder() {
      if ((recordKeyCase_ == 2) && (edgeRecordKeyBuilder_ != null)) {
        return edgeRecordKeyBuilder_.getMessageOrBuilder();
      } else {
        if (recordKeyCase_ == 2) {
          return (com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb) recordKey_;
        }
        return com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.getDefaultInstance();
      }
    }
    /**
     * .gs.rpc.groot.EdgeRecordKeyPb edge_record_key = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb, com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.Builder, com.alibaba.graphscope.proto.groot.EdgeRecordKeyPbOrBuilder> 
        getEdgeRecordKeyFieldBuilder() {
      if (edgeRecordKeyBuilder_ == null) {
        if (!(recordKeyCase_ == 2)) {
          recordKey_ = com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.getDefaultInstance();
        }
        edgeRecordKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb, com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb.Builder, com.alibaba.graphscope.proto.groot.EdgeRecordKeyPbOrBuilder>(
                (com.alibaba.graphscope.proto.groot.EdgeRecordKeyPb) recordKey_,
                getParentForChildren(),
                isClean());
        recordKey_ = null;
      }
      recordKeyCase_ = 2;
      onChanged();
      return edgeRecordKeyBuilder_;
    }

    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> properties_;
    private com.google.protobuf.MapField
        internalGetProperties() {
      if (properties_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            PropertiesDefaultEntryHolder.defaultEntry);
      }
      return properties_;
    }
    private com.google.protobuf.MapField
        internalGetMutableProperties() {
      if (properties_ == null) {
        properties_ = com.google.protobuf.MapField.newMapField(
            PropertiesDefaultEntryHolder.defaultEntry);
      }
      if (!properties_.isMutable()) {
        properties_ = properties_.copy();
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return properties_;
    }
    public int getPropertiesCount() {
      return internalGetProperties().getMap().size();
    }
    /**
     * map<string, string> properties = 3;
     */
    @java.lang.Override
    public boolean containsProperties(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetProperties().getMap().containsKey(key);
    }
    /**
     * Use {@link #getPropertiesMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getProperties() {
      return getPropertiesMap();
    }
    /**
     * map<string, string> properties = 3;
     */
    @java.lang.Override
    public java.util.Map getPropertiesMap() {
      return internalGetProperties().getMap();
    }
    /**
     * map<string, string> properties = 3;
     */
    @java.lang.Override
    public /* nullable */
java.lang.String getPropertiesOrDefault(
        java.lang.String key,
        /* nullable */
java.lang.String defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetProperties().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, string> properties = 3;
     */
    @java.lang.Override
    public java.lang.String getPropertiesOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetProperties().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }
    public Builder clearProperties() {
      bitField0_ = (bitField0_ & ~0x00000004);
      internalGetMutableProperties().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, string> properties = 3;
     */
    public Builder removeProperties(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      internalGetMutableProperties().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
        getMutableProperties() {
      bitField0_ |= 0x00000004;
      return internalGetMutableProperties().getMutableMap();
    }
    /**
     * map<string, string> properties = 3;
     */
    public Builder putProperties(
        java.lang.String key,
        java.lang.String value) {
      if (key == null) { throw new NullPointerException("map key"); }
      if (value == null) { throw new NullPointerException("map value"); }
      internalGetMutableProperties().getMutableMap()
          .put(key, value);
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * map<string, string> properties = 3;
     */
    public Builder putAllProperties(
        java.util.Map values) {
      internalGetMutableProperties().getMutableMap()
          .putAll(values);
      bitField0_ |= 0x00000004;
      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.DataRecordPb)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy