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

com.alibaba.graphscope.proto.MutableGraphInfoPb Maven / Gradle / Ivy

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

package com.alibaba.graphscope.proto;

/**
 * 
 * Attributes that only meaningful to and will be set by dynamic storage
 * 
* * Protobuf type {@code gs.rpc.graph.MutableGraphInfoPb} */ public final class MutableGraphInfoPb extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gs.rpc.graph.MutableGraphInfoPb) MutableGraphInfoPbOrBuilder { private static final long serialVersionUID = 0L; // Use MutableGraphInfoPb.newBuilder() to construct. private MutableGraphInfoPb(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MutableGraphInfoPb() { vdataType_ = 0; edataType_ = 0; propertySchemaJson_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MutableGraphInfoPb(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.graphscope.proto.GraphDef.internal_static_gs_rpc_graph_MutableGraphInfoPb_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.graphscope.proto.GraphDef.internal_static_gs_rpc_graph_MutableGraphInfoPb_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.graphscope.proto.MutableGraphInfoPb.class, com.alibaba.graphscope.proto.MutableGraphInfoPb.Builder.class); } public static final int VDATA_TYPE_FIELD_NUMBER = 1; private int vdataType_ = 0; /** * .gs.rpc.graph.DataTypePb vdata_type = 1; * @return The enum numeric value on the wire for vdataType. */ @java.lang.Override public int getVdataTypeValue() { return vdataType_; } /** * .gs.rpc.graph.DataTypePb vdata_type = 1; * @return The vdataType. */ @java.lang.Override public com.alibaba.graphscope.proto.groot.DataTypePb getVdataType() { com.alibaba.graphscope.proto.groot.DataTypePb result = com.alibaba.graphscope.proto.groot.DataTypePb.forNumber(vdataType_); return result == null ? com.alibaba.graphscope.proto.groot.DataTypePb.UNRECOGNIZED : result; } public static final int EDATA_TYPE_FIELD_NUMBER = 2; private int edataType_ = 0; /** * .gs.rpc.graph.DataTypePb edata_type = 2; * @return The enum numeric value on the wire for edataType. */ @java.lang.Override public int getEdataTypeValue() { return edataType_; } /** * .gs.rpc.graph.DataTypePb edata_type = 2; * @return The edataType. */ @java.lang.Override public com.alibaba.graphscope.proto.groot.DataTypePb getEdataType() { com.alibaba.graphscope.proto.groot.DataTypePb result = com.alibaba.graphscope.proto.groot.DataTypePb.forNumber(edataType_); return result == null ? com.alibaba.graphscope.proto.groot.DataTypePb.UNRECOGNIZED : result; } public static final int PROPERTY_SCHEMA_JSON_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object propertySchemaJson_ = ""; /** * string property_schema_json = 3; * @return The propertySchemaJson. */ @java.lang.Override public java.lang.String getPropertySchemaJson() { java.lang.Object ref = propertySchemaJson_; 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(); propertySchemaJson_ = s; return s; } } /** * string property_schema_json = 3; * @return The bytes for propertySchemaJson. */ @java.lang.Override public com.google.protobuf.ByteString getPropertySchemaJsonBytes() { java.lang.Object ref = propertySchemaJson_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); propertySchemaJson_ = 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 (vdataType_ != com.alibaba.graphscope.proto.groot.DataTypePb.UNKNOWN.getNumber()) { output.writeEnum(1, vdataType_); } if (edataType_ != com.alibaba.graphscope.proto.groot.DataTypePb.UNKNOWN.getNumber()) { output.writeEnum(2, edataType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertySchemaJson_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, propertySchemaJson_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (vdataType_ != com.alibaba.graphscope.proto.groot.DataTypePb.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, vdataType_); } if (edataType_ != com.alibaba.graphscope.proto.groot.DataTypePb.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, edataType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertySchemaJson_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, propertySchemaJson_); } 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.MutableGraphInfoPb)) { return super.equals(obj); } com.alibaba.graphscope.proto.MutableGraphInfoPb other = (com.alibaba.graphscope.proto.MutableGraphInfoPb) obj; if (vdataType_ != other.vdataType_) return false; if (edataType_ != other.edataType_) return false; if (!getPropertySchemaJson() .equals(other.getPropertySchemaJson())) 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) + VDATA_TYPE_FIELD_NUMBER; hash = (53 * hash) + vdataType_; hash = (37 * hash) + EDATA_TYPE_FIELD_NUMBER; hash = (53 * hash) + edataType_; hash = (37 * hash) + PROPERTY_SCHEMA_JSON_FIELD_NUMBER; hash = (53 * hash) + getPropertySchemaJson().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.graphscope.proto.MutableGraphInfoPb parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.graphscope.proto.MutableGraphInfoPb 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.MutableGraphInfoPb parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.graphscope.proto.MutableGraphInfoPb 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.MutableGraphInfoPb parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.graphscope.proto.MutableGraphInfoPb parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.graphscope.proto.MutableGraphInfoPb parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.alibaba.graphscope.proto.MutableGraphInfoPb 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.MutableGraphInfoPb parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.graphscope.proto.MutableGraphInfoPb 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.MutableGraphInfoPb parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.alibaba.graphscope.proto.MutableGraphInfoPb 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.MutableGraphInfoPb 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; } /** *
   * Attributes that only meaningful to and will be set by dynamic storage
   * 
* * Protobuf type {@code gs.rpc.graph.MutableGraphInfoPb} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gs.rpc.graph.MutableGraphInfoPb) com.alibaba.graphscope.proto.MutableGraphInfoPbOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.graphscope.proto.GraphDef.internal_static_gs_rpc_graph_MutableGraphInfoPb_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.graphscope.proto.GraphDef.internal_static_gs_rpc_graph_MutableGraphInfoPb_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.graphscope.proto.MutableGraphInfoPb.class, com.alibaba.graphscope.proto.MutableGraphInfoPb.Builder.class); } // Construct using com.alibaba.graphscope.proto.MutableGraphInfoPb.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; vdataType_ = 0; edataType_ = 0; propertySchemaJson_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.graphscope.proto.GraphDef.internal_static_gs_rpc_graph_MutableGraphInfoPb_descriptor; } @java.lang.Override public com.alibaba.graphscope.proto.MutableGraphInfoPb getDefaultInstanceForType() { return com.alibaba.graphscope.proto.MutableGraphInfoPb.getDefaultInstance(); } @java.lang.Override public com.alibaba.graphscope.proto.MutableGraphInfoPb build() { com.alibaba.graphscope.proto.MutableGraphInfoPb result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.graphscope.proto.MutableGraphInfoPb buildPartial() { com.alibaba.graphscope.proto.MutableGraphInfoPb result = new com.alibaba.graphscope.proto.MutableGraphInfoPb(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.alibaba.graphscope.proto.MutableGraphInfoPb result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.vdataType_ = vdataType_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.edataType_ = edataType_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.propertySchemaJson_ = propertySchemaJson_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.alibaba.graphscope.proto.MutableGraphInfoPb) { return mergeFrom((com.alibaba.graphscope.proto.MutableGraphInfoPb)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.graphscope.proto.MutableGraphInfoPb other) { if (other == com.alibaba.graphscope.proto.MutableGraphInfoPb.getDefaultInstance()) return this; if (other.vdataType_ != 0) { setVdataTypeValue(other.getVdataTypeValue()); } if (other.edataType_ != 0) { setEdataTypeValue(other.getEdataTypeValue()); } if (!other.getPropertySchemaJson().isEmpty()) { propertySchemaJson_ = other.propertySchemaJson_; bitField0_ |= 0x00000004; 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: { vdataType_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { edataType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { propertySchemaJson_ = input.readStringRequireUtf8(); 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 bitField0_; private int vdataType_ = 0; /** * .gs.rpc.graph.DataTypePb vdata_type = 1; * @return The enum numeric value on the wire for vdataType. */ @java.lang.Override public int getVdataTypeValue() { return vdataType_; } /** * .gs.rpc.graph.DataTypePb vdata_type = 1; * @param value The enum numeric value on the wire for vdataType to set. * @return This builder for chaining. */ public Builder setVdataTypeValue(int value) { vdataType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .gs.rpc.graph.DataTypePb vdata_type = 1; * @return The vdataType. */ @java.lang.Override public com.alibaba.graphscope.proto.groot.DataTypePb getVdataType() { com.alibaba.graphscope.proto.groot.DataTypePb result = com.alibaba.graphscope.proto.groot.DataTypePb.forNumber(vdataType_); return result == null ? com.alibaba.graphscope.proto.groot.DataTypePb.UNRECOGNIZED : result; } /** * .gs.rpc.graph.DataTypePb vdata_type = 1; * @param value The vdataType to set. * @return This builder for chaining. */ public Builder setVdataType(com.alibaba.graphscope.proto.groot.DataTypePb value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; vdataType_ = value.getNumber(); onChanged(); return this; } /** * .gs.rpc.graph.DataTypePb vdata_type = 1; * @return This builder for chaining. */ public Builder clearVdataType() { bitField0_ = (bitField0_ & ~0x00000001); vdataType_ = 0; onChanged(); return this; } private int edataType_ = 0; /** * .gs.rpc.graph.DataTypePb edata_type = 2; * @return The enum numeric value on the wire for edataType. */ @java.lang.Override public int getEdataTypeValue() { return edataType_; } /** * .gs.rpc.graph.DataTypePb edata_type = 2; * @param value The enum numeric value on the wire for edataType to set. * @return This builder for chaining. */ public Builder setEdataTypeValue(int value) { edataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .gs.rpc.graph.DataTypePb edata_type = 2; * @return The edataType. */ @java.lang.Override public com.alibaba.graphscope.proto.groot.DataTypePb getEdataType() { com.alibaba.graphscope.proto.groot.DataTypePb result = com.alibaba.graphscope.proto.groot.DataTypePb.forNumber(edataType_); return result == null ? com.alibaba.graphscope.proto.groot.DataTypePb.UNRECOGNIZED : result; } /** * .gs.rpc.graph.DataTypePb edata_type = 2; * @param value The edataType to set. * @return This builder for chaining. */ public Builder setEdataType(com.alibaba.graphscope.proto.groot.DataTypePb value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; edataType_ = value.getNumber(); onChanged(); return this; } /** * .gs.rpc.graph.DataTypePb edata_type = 2; * @return This builder for chaining. */ public Builder clearEdataType() { bitField0_ = (bitField0_ & ~0x00000002); edataType_ = 0; onChanged(); return this; } private java.lang.Object propertySchemaJson_ = ""; /** * string property_schema_json = 3; * @return The propertySchemaJson. */ public java.lang.String getPropertySchemaJson() { java.lang.Object ref = propertySchemaJson_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); propertySchemaJson_ = s; return s; } else { return (java.lang.String) ref; } } /** * string property_schema_json = 3; * @return The bytes for propertySchemaJson. */ public com.google.protobuf.ByteString getPropertySchemaJsonBytes() { java.lang.Object ref = propertySchemaJson_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); propertySchemaJson_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string property_schema_json = 3; * @param value The propertySchemaJson to set. * @return This builder for chaining. */ public Builder setPropertySchemaJson( java.lang.String value) { if (value == null) { throw new NullPointerException(); } propertySchemaJson_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string property_schema_json = 3; * @return This builder for chaining. */ public Builder clearPropertySchemaJson() { propertySchemaJson_ = getDefaultInstance().getPropertySchemaJson(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string property_schema_json = 3; * @param value The bytes for propertySchemaJson to set. * @return This builder for chaining. */ public Builder setPropertySchemaJsonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); propertySchemaJson_ = value; bitField0_ |= 0x00000004; 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.MutableGraphInfoPb) } // @@protoc_insertion_point(class_scope:gs.rpc.graph.MutableGraphInfoPb) private static final com.alibaba.graphscope.proto.MutableGraphInfoPb DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.graphscope.proto.MutableGraphInfoPb(); } public static com.alibaba.graphscope.proto.MutableGraphInfoPb getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MutableGraphInfoPb 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.MutableGraphInfoPb getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy