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

com.alibaba.graphscope.proto.groot.StorePropertyPb 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/model.proto

package com.alibaba.graphscope.proto.groot;

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

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

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

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

  public static final int PROPERTY_ID_FIELD_NUMBER = 1;
  private int propertyId_ = 0;
  /**
   * int32 property_id = 1;
   * @return The propertyId.
   */
  @java.lang.Override
  public int getPropertyId() {
    return propertyId_;
  }

  public static final int PROPERTY_VALUE_FIELD_NUMBER = 2;
  private com.alibaba.graphscope.proto.groot.PropertyValuePb propertyValue_;
  /**
   * .gs.rpc.graph.PropertyValuePb property_value = 2;
   * @return Whether the propertyValue field is set.
   */
  @java.lang.Override
  public boolean hasPropertyValue() {
    return propertyValue_ != null;
  }
  /**
   * .gs.rpc.graph.PropertyValuePb property_value = 2;
   * @return The propertyValue.
   */
  @java.lang.Override
  public com.alibaba.graphscope.proto.groot.PropertyValuePb getPropertyValue() {
    return propertyValue_ == null ? com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance() : propertyValue_;
  }
  /**
   * .gs.rpc.graph.PropertyValuePb property_value = 2;
   */
  @java.lang.Override
  public com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder getPropertyValueOrBuilder() {
    return propertyValue_ == null ? com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance() : propertyValue_;
  }

  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 (propertyId_ != 0) {
      output.writeInt32(1, propertyId_);
    }
    if (propertyValue_ != null) {
      output.writeMessage(2, getPropertyValue());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (propertyId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, propertyId_);
    }
    if (propertyValue_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getPropertyValue());
    }
    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.StorePropertyPb)) {
      return super.equals(obj);
    }
    com.alibaba.graphscope.proto.groot.StorePropertyPb other = (com.alibaba.graphscope.proto.groot.StorePropertyPb) obj;

    if (getPropertyId()
        != other.getPropertyId()) return false;
    if (hasPropertyValue() != other.hasPropertyValue()) return false;
    if (hasPropertyValue()) {
      if (!getPropertyValue()
          .equals(other.getPropertyValue())) 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) + PROPERTY_ID_FIELD_NUMBER;
    hash = (53 * hash) + getPropertyId();
    if (hasPropertyValue()) {
      hash = (37 * hash) + PROPERTY_VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getPropertyValue().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      propertyId_ = 0;
      propertyValue_ = null;
      if (propertyValueBuilder_ != null) {
        propertyValueBuilder_.dispose();
        propertyValueBuilder_ = null;
      }
      return this;
    }

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

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

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

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

    private void buildPartial0(com.alibaba.graphscope.proto.groot.StorePropertyPb result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.propertyId_ = propertyId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.propertyValue_ = propertyValueBuilder_ == null
            ? propertyValue_
            : propertyValueBuilder_.build();
      }
    }

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

    public Builder mergeFrom(com.alibaba.graphscope.proto.groot.StorePropertyPb other) {
      if (other == com.alibaba.graphscope.proto.groot.StorePropertyPb.getDefaultInstance()) return this;
      if (other.getPropertyId() != 0) {
        setPropertyId(other.getPropertyId());
      }
      if (other.hasPropertyValue()) {
        mergePropertyValue(other.getPropertyValue());
      }
      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: {
              propertyId_ = input.readInt32();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 18: {
              input.readMessage(
                  getPropertyValueFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private int propertyId_ ;
    /**
     * int32 property_id = 1;
     * @return The propertyId.
     */
    @java.lang.Override
    public int getPropertyId() {
      return propertyId_;
    }
    /**
     * int32 property_id = 1;
     * @param value The propertyId to set.
     * @return This builder for chaining.
     */
    public Builder setPropertyId(int value) {

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

    private com.alibaba.graphscope.proto.groot.PropertyValuePb propertyValue_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.alibaba.graphscope.proto.groot.PropertyValuePb, com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder, com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder> propertyValueBuilder_;
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     * @return Whether the propertyValue field is set.
     */
    public boolean hasPropertyValue() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     * @return The propertyValue.
     */
    public com.alibaba.graphscope.proto.groot.PropertyValuePb getPropertyValue() {
      if (propertyValueBuilder_ == null) {
        return propertyValue_ == null ? com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance() : propertyValue_;
      } else {
        return propertyValueBuilder_.getMessage();
      }
    }
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     */
    public Builder setPropertyValue(com.alibaba.graphscope.proto.groot.PropertyValuePb value) {
      if (propertyValueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        propertyValue_ = value;
      } else {
        propertyValueBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     */
    public Builder setPropertyValue(
        com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder builderForValue) {
      if (propertyValueBuilder_ == null) {
        propertyValue_ = builderForValue.build();
      } else {
        propertyValueBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     */
    public Builder mergePropertyValue(com.alibaba.graphscope.proto.groot.PropertyValuePb value) {
      if (propertyValueBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          propertyValue_ != null &&
          propertyValue_ != com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance()) {
          getPropertyValueBuilder().mergeFrom(value);
        } else {
          propertyValue_ = value;
        }
      } else {
        propertyValueBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     */
    public Builder clearPropertyValue() {
      bitField0_ = (bitField0_ & ~0x00000002);
      propertyValue_ = null;
      if (propertyValueBuilder_ != null) {
        propertyValueBuilder_.dispose();
        propertyValueBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     */
    public com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder getPropertyValueBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getPropertyValueFieldBuilder().getBuilder();
    }
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     */
    public com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder getPropertyValueOrBuilder() {
      if (propertyValueBuilder_ != null) {
        return propertyValueBuilder_.getMessageOrBuilder();
      } else {
        return propertyValue_ == null ?
            com.alibaba.graphscope.proto.groot.PropertyValuePb.getDefaultInstance() : propertyValue_;
      }
    }
    /**
     * .gs.rpc.graph.PropertyValuePb property_value = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.alibaba.graphscope.proto.groot.PropertyValuePb, com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder, com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder> 
        getPropertyValueFieldBuilder() {
      if (propertyValueBuilder_ == null) {
        propertyValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.alibaba.graphscope.proto.groot.PropertyValuePb, com.alibaba.graphscope.proto.groot.PropertyValuePb.Builder, com.alibaba.graphscope.proto.groot.PropertyValuePbOrBuilder>(
                getPropertyValue(),
                getParentForChildren(),
                isClean());
        propertyValue_ = null;
      }
      return propertyValueBuilder_;
    }
    @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.StorePropertyPb)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy