getVertexesList() {
- if (vertexesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(vertexes_);
- } else {
- return vertexesBuilder_.getMessageList();
- }
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public int getVertexesCount() {
- if (vertexesBuilder_ == null) {
- return vertexes_.size();
- } else {
- return vertexesBuilder_.getCount();
- }
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public lgraph.Lgraph.ListOfProtoFieldData getVertexes(int index) {
- if (vertexesBuilder_ == null) {
- return vertexes_.get(index);
- } else {
- return vertexesBuilder_.getMessage(index);
- }
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder setVertexes(
- int index, lgraph.Lgraph.ListOfProtoFieldData value) {
- if (vertexesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureVertexesIsMutable();
- vertexes_.set(index, value);
- onChanged();
- } else {
- vertexesBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder setVertexes(
- int index, lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) {
- if (vertexesBuilder_ == null) {
- ensureVertexesIsMutable();
- vertexes_.set(index, builderForValue.build());
- onChanged();
- } else {
- vertexesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder addVertexes(lgraph.Lgraph.ListOfProtoFieldData value) {
- if (vertexesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureVertexesIsMutable();
- vertexes_.add(value);
- onChanged();
- } else {
- vertexesBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder addVertexes(
- int index, lgraph.Lgraph.ListOfProtoFieldData value) {
- if (vertexesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureVertexesIsMutable();
- vertexes_.add(index, value);
- onChanged();
- } else {
- vertexesBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder addVertexes(
- lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) {
- if (vertexesBuilder_ == null) {
- ensureVertexesIsMutable();
- vertexes_.add(builderForValue.build());
- onChanged();
- } else {
- vertexesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder addVertexes(
- int index, lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) {
- if (vertexesBuilder_ == null) {
- ensureVertexesIsMutable();
- vertexes_.add(index, builderForValue.build());
- onChanged();
- } else {
- vertexesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder addAllVertexes(
- java.lang.Iterable extends lgraph.Lgraph.ListOfProtoFieldData> values) {
- if (vertexesBuilder_ == null) {
- ensureVertexesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, vertexes_);
- onChanged();
- } else {
- vertexesBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder clearVertexes() {
- if (vertexesBuilder_ == null) {
- vertexes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- vertexesBuilder_.clear();
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public Builder removeVertexes(int index) {
- if (vertexesBuilder_ == null) {
- ensureVertexesIsMutable();
- vertexes_.remove(index);
- onChanged();
- } else {
- vertexesBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public lgraph.Lgraph.ListOfProtoFieldData.Builder getVertexesBuilder(
- int index) {
- return getVertexesFieldBuilder().getBuilder(index);
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getVertexesOrBuilder(
- int index) {
- if (vertexesBuilder_ == null) {
- return vertexes_.get(index); } else {
- return vertexesBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public java.util.List extends lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>
- getVertexesOrBuilderList() {
- if (vertexesBuilder_ != null) {
- return vertexesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(vertexes_);
- }
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public lgraph.Lgraph.ListOfProtoFieldData.Builder addVertexesBuilder() {
- return getVertexesFieldBuilder().addBuilder(
- lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance());
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public lgraph.Lgraph.ListOfProtoFieldData.Builder addVertexesBuilder(
- int index) {
- return getVertexesFieldBuilder().addBuilder(
- index, lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance());
- }
- /**
- *
- * list of vector<FieldData>, each for one vertex
- *
- *
- * repeated .lgraph.ListOfProtoFieldData vertexes = 3;
- */
- public java.util.List
- getVertexesBuilderList() {
- return getVertexesFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>
- getVertexesFieldBuilder() {
- if (vertexesBuilder_ == null) {
- vertexesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>(
- vertexes_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- vertexes_ = null;
- }
- return vertexesBuilder_;
- }
- @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:lgraph.AddVertexesRequest)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.AddVertexesRequest)
- private static final lgraph.Lgraph.AddVertexesRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.AddVertexesRequest();
- }
-
- public static lgraph.Lgraph.AddVertexesRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public AddVertexesRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new AddVertexesRequest(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddVertexesRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface AddVertexesResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.AddVertexesResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- java.util.List getVidList();
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- int getVidCount();
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- long getVid(int index);
- }
- /**
- * Protobuf type {@code lgraph.AddVertexesResponse}
- */
- public static final class AddVertexesResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.AddVertexesResponse)
- AddVertexesResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use AddVertexesResponse.newBuilder() to construct.
- private AddVertexesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AddVertexesResponse() {
- vid_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AddVertexesResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- vid_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- vid_.add(input.readInt64());
- break;
- }
- case 10: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
- vid_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- while (input.getBytesUntilLimit() > 0) {
- vid_.add(input.readInt64());
- }
- input.popLimit(limit);
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- vid_ = java.util.Collections.unmodifiableList(vid_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.AddVertexesResponse.class, lgraph.Lgraph.AddVertexesResponse.Builder.class);
- }
-
- public static final int VID_FIELD_NUMBER = 1;
- private java.util.List vid_;
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public java.util.List
- getVidList() {
- return vid_;
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public int getVidCount() {
- return vid_.size();
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public long getVid(int index) {
- return vid_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < vid_.size(); i++) {
- output.writeInt64(1, vid_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- {
- int dataSize = 0;
- for (int i = 0; i < vid_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt64SizeNoTag(vid_.get(i));
- }
- size += dataSize;
- size += 1 * getVidList().size();
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.AddVertexesResponse)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.AddVertexesResponse other = (lgraph.Lgraph.AddVertexesResponse) obj;
-
- boolean result = true;
- result = result && getVidList()
- .equals(other.getVidList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getVidCount() > 0) {
- hash = (37 * hash) + VID_FIELD_NUMBER;
- hash = (53 * hash) + getVidList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.AddVertexesResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddVertexesResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddVertexesResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddVertexesResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddVertexesResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddVertexesResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddVertexesResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddVertexesResponse 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 lgraph.Lgraph.AddVertexesResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddVertexesResponse 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 lgraph.Lgraph.AddVertexesResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddVertexesResponse 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(lgraph.Lgraph.AddVertexesResponse 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 lgraph.AddVertexesResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.AddVertexesResponse)
- lgraph.Lgraph.AddVertexesResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.AddVertexesResponse.class, lgraph.Lgraph.AddVertexesResponse.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.AddVertexesResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- vid_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddVertexesResponse getDefaultInstanceForType() {
- return lgraph.Lgraph.AddVertexesResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddVertexesResponse build() {
- lgraph.Lgraph.AddVertexesResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddVertexesResponse buildPartial() {
- lgraph.Lgraph.AddVertexesResponse result = new lgraph.Lgraph.AddVertexesResponse(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- vid_ = java.util.Collections.unmodifiableList(vid_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.vid_ = vid_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.AddVertexesResponse) {
- return mergeFrom((lgraph.Lgraph.AddVertexesResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.AddVertexesResponse other) {
- if (other == lgraph.Lgraph.AddVertexesResponse.getDefaultInstance()) return this;
- if (!other.vid_.isEmpty()) {
- if (vid_.isEmpty()) {
- vid_ = other.vid_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureVidIsMutable();
- vid_.addAll(other.vid_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- 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 {
- lgraph.Lgraph.AddVertexesResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.AddVertexesResponse) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.util.List vid_ = java.util.Collections.emptyList();
- private void ensureVidIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- vid_ = new java.util.ArrayList(vid_);
- bitField0_ |= 0x00000001;
- }
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public java.util.List
- getVidList() {
- return java.util.Collections.unmodifiableList(vid_);
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public int getVidCount() {
- return vid_.size();
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public long getVid(int index) {
- return vid_.get(index);
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public Builder setVid(
- int index, long value) {
- ensureVidIsMutable();
- vid_.set(index, value);
- onChanged();
- return this;
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public Builder addVid(long value) {
- ensureVidIsMutable();
- vid_.add(value);
- onChanged();
- return this;
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public Builder addAllVid(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureVidIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, vid_);
- onChanged();
- return this;
- }
- /**
- *
- * returns list of vids of each vertex if successful, otherwise -1
- *
- *
- * repeated int64 vid = 1;
- */
- public Builder clearVid() {
- vid_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- 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:lgraph.AddVertexesResponse)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.AddVertexesResponse)
- private static final lgraph.Lgraph.AddVertexesResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.AddVertexesResponse();
- }
-
- public static lgraph.Lgraph.AddVertexesResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public AddVertexesResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new AddVertexesResponse(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddVertexesResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface DelVertexRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.DelVertexRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 vid = 1;
- */
- boolean hasVid();
- /**
- * required int64 vid = 1;
- */
- long getVid();
- }
- /**
- * Protobuf type {@code lgraph.DelVertexRequest}
- */
- public static final class DelVertexRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.DelVertexRequest)
- DelVertexRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use DelVertexRequest.newBuilder() to construct.
- private DelVertexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private DelVertexRequest() {
- vid_ = 0L;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private DelVertexRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- bitField0_ |= 0x00000001;
- vid_ = input.readInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.DelVertexRequest.class, lgraph.Lgraph.DelVertexRequest.Builder.class);
- }
-
- private int bitField0_;
- public static final int VID_FIELD_NUMBER = 1;
- private long vid_;
- /**
- * required int64 vid = 1;
- */
- public boolean hasVid() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 vid = 1;
- */
- public long getVid() {
- return vid_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasVid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, vid_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, vid_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.DelVertexRequest)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.DelVertexRequest other = (lgraph.Lgraph.DelVertexRequest) obj;
-
- boolean result = true;
- result = result && (hasVid() == other.hasVid());
- if (hasVid()) {
- result = result && (getVid()
- == other.getVid());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasVid()) {
- hash = (37 * hash) + VID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getVid());
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.DelVertexRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelVertexRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelVertexRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelVertexRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelVertexRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelVertexRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelVertexRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelVertexRequest 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 lgraph.Lgraph.DelVertexRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelVertexRequest 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 lgraph.Lgraph.DelVertexRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelVertexRequest 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(lgraph.Lgraph.DelVertexRequest 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 lgraph.DelVertexRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.DelVertexRequest)
- lgraph.Lgraph.DelVertexRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.DelVertexRequest.class, lgraph.Lgraph.DelVertexRequest.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.DelVertexRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- vid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelVertexRequest getDefaultInstanceForType() {
- return lgraph.Lgraph.DelVertexRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelVertexRequest build() {
- lgraph.Lgraph.DelVertexRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelVertexRequest buildPartial() {
- lgraph.Lgraph.DelVertexRequest result = new lgraph.Lgraph.DelVertexRequest(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.vid_ = vid_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.DelVertexRequest) {
- return mergeFrom((lgraph.Lgraph.DelVertexRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.DelVertexRequest other) {
- if (other == lgraph.Lgraph.DelVertexRequest.getDefaultInstance()) return this;
- if (other.hasVid()) {
- setVid(other.getVid());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasVid()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- lgraph.Lgraph.DelVertexRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.DelVertexRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private long vid_ ;
- /**
- * required int64 vid = 1;
- */
- public boolean hasVid() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 vid = 1;
- */
- public long getVid() {
- return vid_;
- }
- /**
- * required int64 vid = 1;
- */
- public Builder setVid(long value) {
- bitField0_ |= 0x00000001;
- vid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 vid = 1;
- */
- public Builder clearVid() {
- bitField0_ = (bitField0_ & ~0x00000001);
- vid_ = 0L;
- 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:lgraph.DelVertexRequest)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.DelVertexRequest)
- private static final lgraph.Lgraph.DelVertexRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.DelVertexRequest();
- }
-
- public static lgraph.Lgraph.DelVertexRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public DelVertexRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DelVertexRequest(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelVertexRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface DelVertexResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.DelVertexResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 n_ins = 1;
- */
- boolean hasNIns();
- /**
- * required int64 n_ins = 1;
- */
- long getNIns();
-
- /**
- * required int64 n_outs = 2;
- */
- boolean hasNOuts();
- /**
- * required int64 n_outs = 2;
- */
- long getNOuts();
- }
- /**
- * Protobuf type {@code lgraph.DelVertexResponse}
- */
- public static final class DelVertexResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.DelVertexResponse)
- DelVertexResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use DelVertexResponse.newBuilder() to construct.
- private DelVertexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private DelVertexResponse() {
- nIns_ = 0L;
- nOuts_ = 0L;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private DelVertexResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- bitField0_ |= 0x00000001;
- nIns_ = input.readInt64();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- nOuts_ = input.readInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.DelVertexResponse.class, lgraph.Lgraph.DelVertexResponse.Builder.class);
- }
-
- private int bitField0_;
- public static final int N_INS_FIELD_NUMBER = 1;
- private long nIns_;
- /**
- * required int64 n_ins = 1;
- */
- public boolean hasNIns() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 n_ins = 1;
- */
- public long getNIns() {
- return nIns_;
- }
-
- public static final int N_OUTS_FIELD_NUMBER = 2;
- private long nOuts_;
- /**
- * required int64 n_outs = 2;
- */
- public boolean hasNOuts() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required int64 n_outs = 2;
- */
- public long getNOuts() {
- return nOuts_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasNIns()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasNOuts()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, nIns_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt64(2, nOuts_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, nIns_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, nOuts_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.DelVertexResponse)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.DelVertexResponse other = (lgraph.Lgraph.DelVertexResponse) obj;
-
- boolean result = true;
- result = result && (hasNIns() == other.hasNIns());
- if (hasNIns()) {
- result = result && (getNIns()
- == other.getNIns());
- }
- result = result && (hasNOuts() == other.hasNOuts());
- if (hasNOuts()) {
- result = result && (getNOuts()
- == other.getNOuts());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasNIns()) {
- hash = (37 * hash) + N_INS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getNIns());
- }
- if (hasNOuts()) {
- hash = (37 * hash) + N_OUTS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getNOuts());
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.DelVertexResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelVertexResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelVertexResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelVertexResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelVertexResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelVertexResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelVertexResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelVertexResponse 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 lgraph.Lgraph.DelVertexResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelVertexResponse 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 lgraph.Lgraph.DelVertexResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelVertexResponse 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(lgraph.Lgraph.DelVertexResponse 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 lgraph.DelVertexResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.DelVertexResponse)
- lgraph.Lgraph.DelVertexResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.DelVertexResponse.class, lgraph.Lgraph.DelVertexResponse.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.DelVertexResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- nIns_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- nOuts_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelVertexResponse getDefaultInstanceForType() {
- return lgraph.Lgraph.DelVertexResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelVertexResponse build() {
- lgraph.Lgraph.DelVertexResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelVertexResponse buildPartial() {
- lgraph.Lgraph.DelVertexResponse result = new lgraph.Lgraph.DelVertexResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.nIns_ = nIns_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.nOuts_ = nOuts_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.DelVertexResponse) {
- return mergeFrom((lgraph.Lgraph.DelVertexResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.DelVertexResponse other) {
- if (other == lgraph.Lgraph.DelVertexResponse.getDefaultInstance()) return this;
- if (other.hasNIns()) {
- setNIns(other.getNIns());
- }
- if (other.hasNOuts()) {
- setNOuts(other.getNOuts());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasNIns()) {
- return false;
- }
- if (!hasNOuts()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- lgraph.Lgraph.DelVertexResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.DelVertexResponse) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private long nIns_ ;
- /**
- * required int64 n_ins = 1;
- */
- public boolean hasNIns() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 n_ins = 1;
- */
- public long getNIns() {
- return nIns_;
- }
- /**
- * required int64 n_ins = 1;
- */
- public Builder setNIns(long value) {
- bitField0_ |= 0x00000001;
- nIns_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 n_ins = 1;
- */
- public Builder clearNIns() {
- bitField0_ = (bitField0_ & ~0x00000001);
- nIns_ = 0L;
- onChanged();
- return this;
- }
-
- private long nOuts_ ;
- /**
- * required int64 n_outs = 2;
- */
- public boolean hasNOuts() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required int64 n_outs = 2;
- */
- public long getNOuts() {
- return nOuts_;
- }
- /**
- * required int64 n_outs = 2;
- */
- public Builder setNOuts(long value) {
- bitField0_ |= 0x00000002;
- nOuts_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 n_outs = 2;
- */
- public Builder clearNOuts() {
- bitField0_ = (bitField0_ & ~0x00000002);
- nOuts_ = 0L;
- 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:lgraph.DelVertexResponse)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.DelVertexResponse)
- private static final lgraph.Lgraph.DelVertexResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.DelVertexResponse();
- }
-
- public static lgraph.Lgraph.DelVertexResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public DelVertexResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DelVertexResponse(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelVertexResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ModVertexRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.ModVertexRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 vid = 1;
- */
- boolean hasVid();
- /**
- * required int64 vid = 1;
- */
- long getVid();
-
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- boolean hasLabel();
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- java.lang.String getLabel();
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- com.google.protobuf.ByteString
- getLabelBytes();
-
- /**
- * repeated string fields = 3;
- */
- java.util.List
- getFieldsList();
- /**
- * repeated string fields = 3;
- */
- int getFieldsCount();
- /**
- * repeated string fields = 3;
- */
- java.lang.String getFields(int index);
- /**
- * repeated string fields = 3;
- */
- com.google.protobuf.ByteString
- getFieldsBytes(int index);
-
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- boolean hasValues();
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- lgraph.Lgraph.ListOfProtoFieldData getValues();
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder();
- }
- /**
- * Protobuf type {@code lgraph.ModVertexRequest}
- */
- public static final class ModVertexRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.ModVertexRequest)
- ModVertexRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ModVertexRequest.newBuilder() to construct.
- private ModVertexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private ModVertexRequest() {
- vid_ = 0L;
- label_ = "";
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ModVertexRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- bitField0_ |= 0x00000001;
- vid_ = input.readInt64();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- label_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- fields_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- fields_.add(bs);
- break;
- }
- case 34: {
- lgraph.Lgraph.ListOfProtoFieldData.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- subBuilder = values_.toBuilder();
- }
- values_ = input.readMessage(lgraph.Lgraph.ListOfProtoFieldData.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(values_);
- values_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000004;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- fields_ = fields_.getUnmodifiableView();
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.ModVertexRequest.class, lgraph.Lgraph.ModVertexRequest.Builder.class);
- }
-
- private int bitField0_;
- public static final int VID_FIELD_NUMBER = 1;
- private long vid_;
- /**
- * required int64 vid = 1;
- */
- public boolean hasVid() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 vid = 1;
- */
- public long getVid() {
- return vid_;
- }
-
- public static final int LABEL_FIELD_NUMBER = 2;
- private volatile java.lang.Object label_;
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public boolean hasLabel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public java.lang.String getLabel() {
- java.lang.Object ref = label_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- label_ = s;
- }
- return s;
- }
- }
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public com.google.protobuf.ByteString
- getLabelBytes() {
- java.lang.Object ref = label_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- label_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int FIELDS_FIELD_NUMBER = 3;
- private com.google.protobuf.LazyStringList fields_;
- /**
- * repeated string fields = 3;
- */
- public com.google.protobuf.ProtocolStringList
- getFieldsList() {
- return fields_;
- }
- /**
- * repeated string fields = 3;
- */
- public int getFieldsCount() {
- return fields_.size();
- }
- /**
- * repeated string fields = 3;
- */
- public java.lang.String getFields(int index) {
- return fields_.get(index);
- }
- /**
- * repeated string fields = 3;
- */
- public com.google.protobuf.ByteString
- getFieldsBytes(int index) {
- return fields_.getByteString(index);
- }
-
- public static final int VALUES_FIELD_NUMBER = 4;
- private lgraph.Lgraph.ListOfProtoFieldData values_;
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public boolean hasValues() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public lgraph.Lgraph.ListOfProtoFieldData getValues() {
- return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() {
- return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasVid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasValues()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, vid_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_);
- }
- for (int i = 0; i < fields_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fields_.getRaw(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(4, getValues());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, vid_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < fields_.size(); i++) {
- dataSize += computeStringSizeNoTag(fields_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getFieldsList().size();
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, getValues());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.ModVertexRequest)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.ModVertexRequest other = (lgraph.Lgraph.ModVertexRequest) obj;
-
- boolean result = true;
- result = result && (hasVid() == other.hasVid());
- if (hasVid()) {
- result = result && (getVid()
- == other.getVid());
- }
- result = result && (hasLabel() == other.hasLabel());
- if (hasLabel()) {
- result = result && getLabel()
- .equals(other.getLabel());
- }
- result = result && getFieldsList()
- .equals(other.getFieldsList());
- result = result && (hasValues() == other.hasValues());
- if (hasValues()) {
- result = result && getValues()
- .equals(other.getValues());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasVid()) {
- hash = (37 * hash) + VID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getVid());
- }
- if (hasLabel()) {
- hash = (37 * hash) + LABEL_FIELD_NUMBER;
- hash = (53 * hash) + getLabel().hashCode();
- }
- if (getFieldsCount() > 0) {
- hash = (37 * hash) + FIELDS_FIELD_NUMBER;
- hash = (53 * hash) + getFieldsList().hashCode();
- }
- if (hasValues()) {
- hash = (37 * hash) + VALUES_FIELD_NUMBER;
- hash = (53 * hash) + getValues().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.ModVertexRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModVertexRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModVertexRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModVertexRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModVertexRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModVertexRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModVertexRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModVertexRequest 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 lgraph.Lgraph.ModVertexRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModVertexRequest 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 lgraph.Lgraph.ModVertexRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModVertexRequest 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(lgraph.Lgraph.ModVertexRequest 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 lgraph.ModVertexRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.ModVertexRequest)
- lgraph.Lgraph.ModVertexRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.ModVertexRequest.class, lgraph.Lgraph.ModVertexRequest.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.ModVertexRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getValuesFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- vid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- label_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- if (valuesBuilder_ == null) {
- values_ = null;
- } else {
- valuesBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModVertexRequest getDefaultInstanceForType() {
- return lgraph.Lgraph.ModVertexRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModVertexRequest build() {
- lgraph.Lgraph.ModVertexRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModVertexRequest buildPartial() {
- lgraph.Lgraph.ModVertexRequest result = new lgraph.Lgraph.ModVertexRequest(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.vid_ = vid_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.label_ = label_;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- fields_ = fields_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.fields_ = fields_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000004;
- }
- if (valuesBuilder_ == null) {
- result.values_ = values_;
- } else {
- result.values_ = valuesBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.ModVertexRequest) {
- return mergeFrom((lgraph.Lgraph.ModVertexRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.ModVertexRequest other) {
- if (other == lgraph.Lgraph.ModVertexRequest.getDefaultInstance()) return this;
- if (other.hasVid()) {
- setVid(other.getVid());
- }
- if (other.hasLabel()) {
- bitField0_ |= 0x00000002;
- label_ = other.label_;
- onChanged();
- }
- if (!other.fields_.isEmpty()) {
- if (fields_.isEmpty()) {
- fields_ = other.fields_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureFieldsIsMutable();
- fields_.addAll(other.fields_);
- }
- onChanged();
- }
- if (other.hasValues()) {
- mergeValues(other.getValues());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasVid()) {
- return false;
- }
- if (!hasValues()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- lgraph.Lgraph.ModVertexRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.ModVertexRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private long vid_ ;
- /**
- * required int64 vid = 1;
- */
- public boolean hasVid() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 vid = 1;
- */
- public long getVid() {
- return vid_;
- }
- /**
- * required int64 vid = 1;
- */
- public Builder setVid(long value) {
- bitField0_ |= 0x00000001;
- vid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 vid = 1;
- */
- public Builder clearVid() {
- bitField0_ = (bitField0_ & ~0x00000001);
- vid_ = 0L;
- onChanged();
- return this;
- }
-
- private java.lang.Object label_ = "";
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public boolean hasLabel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public java.lang.String getLabel() {
- java.lang.Object ref = label_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- label_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public com.google.protobuf.ByteString
- getLabelBytes() {
- java.lang.Object ref = label_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- label_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public Builder setLabel(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- label_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public Builder clearLabel() {
- bitField0_ = (bitField0_ & ~0x00000002);
- label_ = getDefaultInstance().getLabel();
- onChanged();
- return this;
- }
- /**
- *
- * if label not set, then
- *
- *
- * optional string label = 2;
- */
- public Builder setLabelBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- label_ = value;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureFieldsIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- fields_ = new com.google.protobuf.LazyStringArrayList(fields_);
- bitField0_ |= 0x00000004;
- }
- }
- /**
- * repeated string fields = 3;
- */
- public com.google.protobuf.ProtocolStringList
- getFieldsList() {
- return fields_.getUnmodifiableView();
- }
- /**
- * repeated string fields = 3;
- */
- public int getFieldsCount() {
- return fields_.size();
- }
- /**
- * repeated string fields = 3;
- */
- public java.lang.String getFields(int index) {
- return fields_.get(index);
- }
- /**
- * repeated string fields = 3;
- */
- public com.google.protobuf.ByteString
- getFieldsBytes(int index) {
- return fields_.getByteString(index);
- }
- /**
- * repeated string fields = 3;
- */
- public Builder setFields(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 3;
- */
- public Builder addFields(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 3;
- */
- public Builder addAllFields(
- java.lang.Iterable values) {
- ensureFieldsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, fields_);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 3;
- */
- public Builder clearFields() {
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 3;
- */
- public Builder addFieldsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.add(value);
- onChanged();
- return this;
- }
-
- private lgraph.Lgraph.ListOfProtoFieldData values_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> valuesBuilder_;
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public boolean hasValues() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public lgraph.Lgraph.ListOfProtoFieldData getValues() {
- if (valuesBuilder_ == null) {
- return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_;
- } else {
- return valuesBuilder_.getMessage();
- }
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public Builder setValues(lgraph.Lgraph.ListOfProtoFieldData value) {
- if (valuesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- values_ = value;
- onChanged();
- } else {
- valuesBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000008;
- return this;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public Builder setValues(
- lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) {
- if (valuesBuilder_ == null) {
- values_ = builderForValue.build();
- onChanged();
- } else {
- valuesBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000008;
- return this;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public Builder mergeValues(lgraph.Lgraph.ListOfProtoFieldData value) {
- if (valuesBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008) &&
- values_ != null &&
- values_ != lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()) {
- values_ =
- lgraph.Lgraph.ListOfProtoFieldData.newBuilder(values_).mergeFrom(value).buildPartial();
- } else {
- values_ = value;
- }
- onChanged();
- } else {
- valuesBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000008;
- return this;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public Builder clearValues() {
- if (valuesBuilder_ == null) {
- values_ = null;
- onChanged();
- } else {
- valuesBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public lgraph.Lgraph.ListOfProtoFieldData.Builder getValuesBuilder() {
- bitField0_ |= 0x00000008;
- onChanged();
- return getValuesFieldBuilder().getBuilder();
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() {
- if (valuesBuilder_ != null) {
- return valuesBuilder_.getMessageOrBuilder();
- } else {
- return values_ == null ?
- lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_;
- }
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 4;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>
- getValuesFieldBuilder() {
- if (valuesBuilder_ == null) {
- valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>(
- getValues(),
- getParentForChildren(),
- isClean());
- values_ = null;
- }
- return valuesBuilder_;
- }
- @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:lgraph.ModVertexRequest)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.ModVertexRequest)
- private static final lgraph.Lgraph.ModVertexRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.ModVertexRequest();
- }
-
- public static lgraph.Lgraph.ModVertexRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ModVertexRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ModVertexRequest(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModVertexRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ModVertexResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.ModVertexResponse)
- com.google.protobuf.MessageOrBuilder {
- }
- /**
- * Protobuf type {@code lgraph.ModVertexResponse}
- */
- public static final class ModVertexResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.ModVertexResponse)
- ModVertexResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ModVertexResponse.newBuilder() to construct.
- private ModVertexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private ModVertexResponse() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ModVertexResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.ModVertexResponse.class, lgraph.Lgraph.ModVertexResponse.Builder.class);
- }
-
- 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 {
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.ModVertexResponse)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.ModVertexResponse other = (lgraph.Lgraph.ModVertexResponse) obj;
-
- boolean result = true;
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.ModVertexResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModVertexResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModVertexResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModVertexResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModVertexResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModVertexResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModVertexResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModVertexResponse 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 lgraph.Lgraph.ModVertexResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModVertexResponse 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 lgraph.Lgraph.ModVertexResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModVertexResponse 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(lgraph.Lgraph.ModVertexResponse 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 lgraph.ModVertexResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.ModVertexResponse)
- lgraph.Lgraph.ModVertexResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.ModVertexResponse.class, lgraph.Lgraph.ModVertexResponse.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.ModVertexResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModVertexResponse getDefaultInstanceForType() {
- return lgraph.Lgraph.ModVertexResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModVertexResponse build() {
- lgraph.Lgraph.ModVertexResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModVertexResponse buildPartial() {
- lgraph.Lgraph.ModVertexResponse result = new lgraph.Lgraph.ModVertexResponse(this);
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.ModVertexResponse) {
- return mergeFrom((lgraph.Lgraph.ModVertexResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.ModVertexResponse other) {
- if (other == lgraph.Lgraph.ModVertexResponse.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.unknownFields);
- 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 {
- lgraph.Lgraph.ModVertexResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.ModVertexResponse) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- 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:lgraph.ModVertexResponse)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.ModVertexResponse)
- private static final lgraph.Lgraph.ModVertexResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.ModVertexResponse();
- }
-
- public static lgraph.Lgraph.ModVertexResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ModVertexResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ModVertexResponse(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModVertexResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface AddEdgesRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.AddEdgesRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required string label = 1;
- */
- boolean hasLabel();
- /**
- * required string label = 1;
- */
- java.lang.String getLabel();
- /**
- * required string label = 1;
- */
- com.google.protobuf.ByteString
- getLabelBytes();
-
- /**
- * repeated string fields = 2;
- */
- java.util.List
- getFieldsList();
- /**
- * repeated string fields = 2;
- */
- int getFieldsCount();
- /**
- * repeated string fields = 2;
- */
- java.lang.String getFields(int index);
- /**
- * repeated string fields = 2;
- */
- com.google.protobuf.ByteString
- getFieldsBytes(int index);
-
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- java.util.List
- getEdgesList();
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- lgraph.Lgraph.SrcDstFieldValues getEdges(int index);
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- int getEdgesCount();
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- java.util.List extends lgraph.Lgraph.SrcDstFieldValuesOrBuilder>
- getEdgesOrBuilderList();
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- lgraph.Lgraph.SrcDstFieldValuesOrBuilder getEdgesOrBuilder(
- int index);
- }
- /**
- *
- * edge
- *
- *
- * Protobuf type {@code lgraph.AddEdgesRequest}
- */
- public static final class AddEdgesRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.AddEdgesRequest)
- AddEdgesRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use AddEdgesRequest.newBuilder() to construct.
- private AddEdgesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AddEdgesRequest() {
- label_ = "";
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- edges_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AddEdgesRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- label_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- fields_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000002;
- }
- fields_.add(bs);
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- edges_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- edges_.add(
- input.readMessage(lgraph.Lgraph.SrcDstFieldValues.PARSER, extensionRegistry));
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- fields_ = fields_.getUnmodifiableView();
- }
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- edges_ = java.util.Collections.unmodifiableList(edges_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.AddEdgesRequest.class, lgraph.Lgraph.AddEdgesRequest.Builder.class);
- }
-
- private int bitField0_;
- public static final int LABEL_FIELD_NUMBER = 1;
- private volatile java.lang.Object label_;
- /**
- * required string label = 1;
- */
- public boolean hasLabel() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string label = 1;
- */
- public java.lang.String getLabel() {
- java.lang.Object ref = label_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- label_ = s;
- }
- return s;
- }
- }
- /**
- * required string label = 1;
- */
- public com.google.protobuf.ByteString
- getLabelBytes() {
- java.lang.Object ref = label_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- label_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int FIELDS_FIELD_NUMBER = 2;
- private com.google.protobuf.LazyStringList fields_;
- /**
- * repeated string fields = 2;
- */
- public com.google.protobuf.ProtocolStringList
- getFieldsList() {
- return fields_;
- }
- /**
- * repeated string fields = 2;
- */
- public int getFieldsCount() {
- return fields_.size();
- }
- /**
- * repeated string fields = 2;
- */
- public java.lang.String getFields(int index) {
- return fields_.get(index);
- }
- /**
- * repeated string fields = 2;
- */
- public com.google.protobuf.ByteString
- getFieldsBytes(int index) {
- return fields_.getByteString(index);
- }
-
- public static final int EDGES_FIELD_NUMBER = 3;
- private java.util.List edges_;
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public java.util.List getEdgesList() {
- return edges_;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public java.util.List extends lgraph.Lgraph.SrcDstFieldValuesOrBuilder>
- getEdgesOrBuilderList() {
- return edges_;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public int getEdgesCount() {
- return edges_.size();
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public lgraph.Lgraph.SrcDstFieldValues getEdges(int index) {
- return edges_.get(index);
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public lgraph.Lgraph.SrcDstFieldValuesOrBuilder getEdgesOrBuilder(
- int index) {
- return edges_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasLabel()) {
- memoizedIsInitialized = 0;
- return false;
- }
- for (int i = 0; i < getEdgesCount(); i++) {
- if (!getEdges(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
- }
- for (int i = 0; i < fields_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fields_.getRaw(i));
- }
- for (int i = 0; i < edges_.size(); i++) {
- output.writeMessage(3, edges_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < fields_.size(); i++) {
- dataSize += computeStringSizeNoTag(fields_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getFieldsList().size();
- }
- for (int i = 0; i < edges_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, edges_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.AddEdgesRequest)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.AddEdgesRequest other = (lgraph.Lgraph.AddEdgesRequest) obj;
-
- boolean result = true;
- result = result && (hasLabel() == other.hasLabel());
- if (hasLabel()) {
- result = result && getLabel()
- .equals(other.getLabel());
- }
- result = result && getFieldsList()
- .equals(other.getFieldsList());
- result = result && getEdgesList()
- .equals(other.getEdgesList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasLabel()) {
- hash = (37 * hash) + LABEL_FIELD_NUMBER;
- hash = (53 * hash) + getLabel().hashCode();
- }
- if (getFieldsCount() > 0) {
- hash = (37 * hash) + FIELDS_FIELD_NUMBER;
- hash = (53 * hash) + getFieldsList().hashCode();
- }
- if (getEdgesCount() > 0) {
- hash = (37 * hash) + EDGES_FIELD_NUMBER;
- hash = (53 * hash) + getEdgesList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.AddEdgesRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddEdgesRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddEdgesRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddEdgesRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddEdgesRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddEdgesRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddEdgesRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddEdgesRequest 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 lgraph.Lgraph.AddEdgesRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddEdgesRequest 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 lgraph.Lgraph.AddEdgesRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddEdgesRequest 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(lgraph.Lgraph.AddEdgesRequest 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;
- }
- /**
- *
- * edge
- *
- *
- * Protobuf type {@code lgraph.AddEdgesRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.AddEdgesRequest)
- lgraph.Lgraph.AddEdgesRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.AddEdgesRequest.class, lgraph.Lgraph.AddEdgesRequest.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.AddEdgesRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getEdgesFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- label_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- if (edgesBuilder_ == null) {
- edges_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- edgesBuilder_.clear();
- }
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddEdgesRequest getDefaultInstanceForType() {
- return lgraph.Lgraph.AddEdgesRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddEdgesRequest build() {
- lgraph.Lgraph.AddEdgesRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddEdgesRequest buildPartial() {
- lgraph.Lgraph.AddEdgesRequest result = new lgraph.Lgraph.AddEdgesRequest(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.label_ = label_;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- fields_ = fields_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.fields_ = fields_;
- if (edgesBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- edges_ = java.util.Collections.unmodifiableList(edges_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.edges_ = edges_;
- } else {
- result.edges_ = edgesBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.AddEdgesRequest) {
- return mergeFrom((lgraph.Lgraph.AddEdgesRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.AddEdgesRequest other) {
- if (other == lgraph.Lgraph.AddEdgesRequest.getDefaultInstance()) return this;
- if (other.hasLabel()) {
- bitField0_ |= 0x00000001;
- label_ = other.label_;
- onChanged();
- }
- if (!other.fields_.isEmpty()) {
- if (fields_.isEmpty()) {
- fields_ = other.fields_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureFieldsIsMutable();
- fields_.addAll(other.fields_);
- }
- onChanged();
- }
- if (edgesBuilder_ == null) {
- if (!other.edges_.isEmpty()) {
- if (edges_.isEmpty()) {
- edges_ = other.edges_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureEdgesIsMutable();
- edges_.addAll(other.edges_);
- }
- onChanged();
- }
- } else {
- if (!other.edges_.isEmpty()) {
- if (edgesBuilder_.isEmpty()) {
- edgesBuilder_.dispose();
- edgesBuilder_ = null;
- edges_ = other.edges_;
- bitField0_ = (bitField0_ & ~0x00000004);
- edgesBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getEdgesFieldBuilder() : null;
- } else {
- edgesBuilder_.addAllMessages(other.edges_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasLabel()) {
- return false;
- }
- for (int i = 0; i < getEdgesCount(); i++) {
- if (!getEdges(i).isInitialized()) {
- return false;
- }
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- lgraph.Lgraph.AddEdgesRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.AddEdgesRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object label_ = "";
- /**
- * required string label = 1;
- */
- public boolean hasLabel() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string label = 1;
- */
- public java.lang.String getLabel() {
- java.lang.Object ref = label_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- label_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string label = 1;
- */
- public com.google.protobuf.ByteString
- getLabelBytes() {
- java.lang.Object ref = label_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- label_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string label = 1;
- */
- public Builder setLabel(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- label_ = value;
- onChanged();
- return this;
- }
- /**
- * required string label = 1;
- */
- public Builder clearLabel() {
- bitField0_ = (bitField0_ & ~0x00000001);
- label_ = getDefaultInstance().getLabel();
- onChanged();
- return this;
- }
- /**
- * required string label = 1;
- */
- public Builder setLabelBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- label_ = value;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureFieldsIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- fields_ = new com.google.protobuf.LazyStringArrayList(fields_);
- bitField0_ |= 0x00000002;
- }
- }
- /**
- * repeated string fields = 2;
- */
- public com.google.protobuf.ProtocolStringList
- getFieldsList() {
- return fields_.getUnmodifiableView();
- }
- /**
- * repeated string fields = 2;
- */
- public int getFieldsCount() {
- return fields_.size();
- }
- /**
- * repeated string fields = 2;
- */
- public java.lang.String getFields(int index) {
- return fields_.get(index);
- }
- /**
- * repeated string fields = 2;
- */
- public com.google.protobuf.ByteString
- getFieldsBytes(int index) {
- return fields_.getByteString(index);
- }
- /**
- * repeated string fields = 2;
- */
- public Builder setFields(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 2;
- */
- public Builder addFields(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 2;
- */
- public Builder addAllFields(
- java.lang.Iterable values) {
- ensureFieldsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, fields_);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 2;
- */
- public Builder clearFields() {
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 2;
- */
- public Builder addFieldsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.add(value);
- onChanged();
- return this;
- }
-
- private java.util.List edges_ =
- java.util.Collections.emptyList();
- private void ensureEdgesIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- edges_ = new java.util.ArrayList(edges_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- lgraph.Lgraph.SrcDstFieldValues, lgraph.Lgraph.SrcDstFieldValues.Builder, lgraph.Lgraph.SrcDstFieldValuesOrBuilder> edgesBuilder_;
-
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public java.util.List getEdgesList() {
- if (edgesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(edges_);
- } else {
- return edgesBuilder_.getMessageList();
- }
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public int getEdgesCount() {
- if (edgesBuilder_ == null) {
- return edges_.size();
- } else {
- return edgesBuilder_.getCount();
- }
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public lgraph.Lgraph.SrcDstFieldValues getEdges(int index) {
- if (edgesBuilder_ == null) {
- return edges_.get(index);
- } else {
- return edgesBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder setEdges(
- int index, lgraph.Lgraph.SrcDstFieldValues value) {
- if (edgesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureEdgesIsMutable();
- edges_.set(index, value);
- onChanged();
- } else {
- edgesBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder setEdges(
- int index, lgraph.Lgraph.SrcDstFieldValues.Builder builderForValue) {
- if (edgesBuilder_ == null) {
- ensureEdgesIsMutable();
- edges_.set(index, builderForValue.build());
- onChanged();
- } else {
- edgesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder addEdges(lgraph.Lgraph.SrcDstFieldValues value) {
- if (edgesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureEdgesIsMutable();
- edges_.add(value);
- onChanged();
- } else {
- edgesBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder addEdges(
- int index, lgraph.Lgraph.SrcDstFieldValues value) {
- if (edgesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureEdgesIsMutable();
- edges_.add(index, value);
- onChanged();
- } else {
- edgesBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder addEdges(
- lgraph.Lgraph.SrcDstFieldValues.Builder builderForValue) {
- if (edgesBuilder_ == null) {
- ensureEdgesIsMutable();
- edges_.add(builderForValue.build());
- onChanged();
- } else {
- edgesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder addEdges(
- int index, lgraph.Lgraph.SrcDstFieldValues.Builder builderForValue) {
- if (edgesBuilder_ == null) {
- ensureEdgesIsMutable();
- edges_.add(index, builderForValue.build());
- onChanged();
- } else {
- edgesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder addAllEdges(
- java.lang.Iterable extends lgraph.Lgraph.SrcDstFieldValues> values) {
- if (edgesBuilder_ == null) {
- ensureEdgesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, edges_);
- onChanged();
- } else {
- edgesBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder clearEdges() {
- if (edgesBuilder_ == null) {
- edges_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- edgesBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public Builder removeEdges(int index) {
- if (edgesBuilder_ == null) {
- ensureEdgesIsMutable();
- edges_.remove(index);
- onChanged();
- } else {
- edgesBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public lgraph.Lgraph.SrcDstFieldValues.Builder getEdgesBuilder(
- int index) {
- return getEdgesFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public lgraph.Lgraph.SrcDstFieldValuesOrBuilder getEdgesOrBuilder(
- int index) {
- if (edgesBuilder_ == null) {
- return edges_.get(index); } else {
- return edgesBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public java.util.List extends lgraph.Lgraph.SrcDstFieldValuesOrBuilder>
- getEdgesOrBuilderList() {
- if (edgesBuilder_ != null) {
- return edgesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(edges_);
- }
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public lgraph.Lgraph.SrcDstFieldValues.Builder addEdgesBuilder() {
- return getEdgesFieldBuilder().addBuilder(
- lgraph.Lgraph.SrcDstFieldValues.getDefaultInstance());
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public lgraph.Lgraph.SrcDstFieldValues.Builder addEdgesBuilder(
- int index) {
- return getEdgesFieldBuilder().addBuilder(
- index, lgraph.Lgraph.SrcDstFieldValues.getDefaultInstance());
- }
- /**
- * repeated .lgraph.SrcDstFieldValues edges = 3;
- */
- public java.util.List
- getEdgesBuilderList() {
- return getEdgesFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- lgraph.Lgraph.SrcDstFieldValues, lgraph.Lgraph.SrcDstFieldValues.Builder, lgraph.Lgraph.SrcDstFieldValuesOrBuilder>
- getEdgesFieldBuilder() {
- if (edgesBuilder_ == null) {
- edgesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- lgraph.Lgraph.SrcDstFieldValues, lgraph.Lgraph.SrcDstFieldValues.Builder, lgraph.Lgraph.SrcDstFieldValuesOrBuilder>(
- edges_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- edges_ = null;
- }
- return edgesBuilder_;
- }
- @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:lgraph.AddEdgesRequest)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.AddEdgesRequest)
- private static final lgraph.Lgraph.AddEdgesRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.AddEdgesRequest();
- }
-
- public static lgraph.Lgraph.AddEdgesRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public AddEdgesRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new AddEdgesRequest(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddEdgesRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface AddEdgesResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.AddEdgesResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 lid = 1;
- */
- boolean hasLid();
- /**
- * required int64 lid = 1;
- */
- long getLid();
-
- /**
- * required int64 tid = 2;
- */
- boolean hasTid();
- /**
- * required int64 tid = 2;
- */
- long getTid();
-
- /**
- * repeated int64 eids = 3;
- */
- java.util.List getEidsList();
- /**
- * repeated int64 eids = 3;
- */
- int getEidsCount();
- /**
- * repeated int64 eids = 3;
- */
- long getEids(int index);
- }
- /**
- * Protobuf type {@code lgraph.AddEdgesResponse}
- */
- public static final class AddEdgesResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.AddEdgesResponse)
- AddEdgesResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use AddEdgesResponse.newBuilder() to construct.
- private AddEdgesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AddEdgesResponse() {
- lid_ = 0L;
- tid_ = 0L;
- eids_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AddEdgesResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- bitField0_ |= 0x00000001;
- lid_ = input.readInt64();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- tid_ = input.readInt64();
- break;
- }
- case 24: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- eids_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- eids_.add(input.readInt64());
- break;
- }
- case 26: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
- eids_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- while (input.getBytesUntilLimit() > 0) {
- eids_.add(input.readInt64());
- }
- input.popLimit(limit);
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- eids_ = java.util.Collections.unmodifiableList(eids_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.AddEdgesResponse.class, lgraph.Lgraph.AddEdgesResponse.Builder.class);
- }
-
- private int bitField0_;
- public static final int LID_FIELD_NUMBER = 1;
- private long lid_;
- /**
- * required int64 lid = 1;
- */
- public boolean hasLid() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 lid = 1;
- */
- public long getLid() {
- return lid_;
- }
-
- public static final int TID_FIELD_NUMBER = 2;
- private long tid_;
- /**
- * required int64 tid = 2;
- */
- public boolean hasTid() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required int64 tid = 2;
- */
- public long getTid() {
- return tid_;
- }
-
- public static final int EIDS_FIELD_NUMBER = 3;
- private java.util.List eids_;
- /**
- * repeated int64 eids = 3;
- */
- public java.util.List
- getEidsList() {
- return eids_;
- }
- /**
- * repeated int64 eids = 3;
- */
- public int getEidsCount() {
- return eids_.size();
- }
- /**
- * repeated int64 eids = 3;
- */
- public long getEids(int index) {
- return eids_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasLid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasTid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, lid_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt64(2, tid_);
- }
- for (int i = 0; i < eids_.size(); i++) {
- output.writeInt64(3, eids_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, lid_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, tid_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < eids_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt64SizeNoTag(eids_.get(i));
- }
- size += dataSize;
- size += 1 * getEidsList().size();
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.AddEdgesResponse)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.AddEdgesResponse other = (lgraph.Lgraph.AddEdgesResponse) obj;
-
- boolean result = true;
- result = result && (hasLid() == other.hasLid());
- if (hasLid()) {
- result = result && (getLid()
- == other.getLid());
- }
- result = result && (hasTid() == other.hasTid());
- if (hasTid()) {
- result = result && (getTid()
- == other.getTid());
- }
- result = result && getEidsList()
- .equals(other.getEidsList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasLid()) {
- hash = (37 * hash) + LID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getLid());
- }
- if (hasTid()) {
- hash = (37 * hash) + TID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTid());
- }
- if (getEidsCount() > 0) {
- hash = (37 * hash) + EIDS_FIELD_NUMBER;
- hash = (53 * hash) + getEidsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.AddEdgesResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddEdgesResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddEdgesResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddEdgesResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddEdgesResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.AddEdgesResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.AddEdgesResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddEdgesResponse 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 lgraph.Lgraph.AddEdgesResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddEdgesResponse 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 lgraph.Lgraph.AddEdgesResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.AddEdgesResponse 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(lgraph.Lgraph.AddEdgesResponse 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 lgraph.AddEdgesResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.AddEdgesResponse)
- lgraph.Lgraph.AddEdgesResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.AddEdgesResponse.class, lgraph.Lgraph.AddEdgesResponse.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.AddEdgesResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- lid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- tid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
- eids_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddEdgesResponse getDefaultInstanceForType() {
- return lgraph.Lgraph.AddEdgesResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddEdgesResponse build() {
- lgraph.Lgraph.AddEdgesResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddEdgesResponse buildPartial() {
- lgraph.Lgraph.AddEdgesResponse result = new lgraph.Lgraph.AddEdgesResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.lid_ = lid_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.tid_ = tid_;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- eids_ = java.util.Collections.unmodifiableList(eids_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.eids_ = eids_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.AddEdgesResponse) {
- return mergeFrom((lgraph.Lgraph.AddEdgesResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.AddEdgesResponse other) {
- if (other == lgraph.Lgraph.AddEdgesResponse.getDefaultInstance()) return this;
- if (other.hasLid()) {
- setLid(other.getLid());
- }
- if (other.hasTid()) {
- setTid(other.getTid());
- }
- if (!other.eids_.isEmpty()) {
- if (eids_.isEmpty()) {
- eids_ = other.eids_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureEidsIsMutable();
- eids_.addAll(other.eids_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasLid()) {
- return false;
- }
- if (!hasTid()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- lgraph.Lgraph.AddEdgesResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.AddEdgesResponse) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private long lid_ ;
- /**
- * required int64 lid = 1;
- */
- public boolean hasLid() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 lid = 1;
- */
- public long getLid() {
- return lid_;
- }
- /**
- * required int64 lid = 1;
- */
- public Builder setLid(long value) {
- bitField0_ |= 0x00000001;
- lid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 lid = 1;
- */
- public Builder clearLid() {
- bitField0_ = (bitField0_ & ~0x00000001);
- lid_ = 0L;
- onChanged();
- return this;
- }
-
- private long tid_ ;
- /**
- * required int64 tid = 2;
- */
- public boolean hasTid() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required int64 tid = 2;
- */
- public long getTid() {
- return tid_;
- }
- /**
- * required int64 tid = 2;
- */
- public Builder setTid(long value) {
- bitField0_ |= 0x00000002;
- tid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 tid = 2;
- */
- public Builder clearTid() {
- bitField0_ = (bitField0_ & ~0x00000002);
- tid_ = 0L;
- onChanged();
- return this;
- }
-
- private java.util.List eids_ = java.util.Collections.emptyList();
- private void ensureEidsIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- eids_ = new java.util.ArrayList(eids_);
- bitField0_ |= 0x00000004;
- }
- }
- /**
- * repeated int64 eids = 3;
- */
- public java.util.List
- getEidsList() {
- return java.util.Collections.unmodifiableList(eids_);
- }
- /**
- * repeated int64 eids = 3;
- */
- public int getEidsCount() {
- return eids_.size();
- }
- /**
- * repeated int64 eids = 3;
- */
- public long getEids(int index) {
- return eids_.get(index);
- }
- /**
- * repeated int64 eids = 3;
- */
- public Builder setEids(
- int index, long value) {
- ensureEidsIsMutable();
- eids_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated int64 eids = 3;
- */
- public Builder addEids(long value) {
- ensureEidsIsMutable();
- eids_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated int64 eids = 3;
- */
- public Builder addAllEids(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureEidsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, eids_);
- onChanged();
- return this;
- }
- /**
- * repeated int64 eids = 3;
- */
- public Builder clearEids() {
- eids_ = java.util.Collections.emptyList();
- bitField0_ = (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:lgraph.AddEdgesResponse)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.AddEdgesResponse)
- private static final lgraph.Lgraph.AddEdgesResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.AddEdgesResponse();
- }
-
- public static lgraph.Lgraph.AddEdgesResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public AddEdgesResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new AddEdgesResponse(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.AddEdgesResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface DelEdgeRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.DelEdgeRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 src = 1;
- */
- boolean hasSrc();
- /**
- * required int64 src = 1;
- */
- long getSrc();
-
- /**
- * required int64 tid = 2;
- */
- boolean hasTid();
- /**
- * required int64 tid = 2;
- */
- long getTid();
-
- /**
- * required int64 lid = 3;
- */
- boolean hasLid();
- /**
- * required int64 lid = 3;
- */
- long getLid();
-
- /**
- * required int64 dst = 4;
- */
- boolean hasDst();
- /**
- * required int64 dst = 4;
- */
- long getDst();
-
- /**
- * required int64 eid = 5;
- */
- boolean hasEid();
- /**
- * required int64 eid = 5;
- */
- long getEid();
- }
- /**
- * Protobuf type {@code lgraph.DelEdgeRequest}
- */
- public static final class DelEdgeRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.DelEdgeRequest)
- DelEdgeRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use DelEdgeRequest.newBuilder() to construct.
- private DelEdgeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private DelEdgeRequest() {
- src_ = 0L;
- tid_ = 0L;
- lid_ = 0L;
- dst_ = 0L;
- eid_ = 0L;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private DelEdgeRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- bitField0_ |= 0x00000001;
- src_ = input.readInt64();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- tid_ = input.readInt64();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- lid_ = input.readInt64();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- dst_ = input.readInt64();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000010;
- eid_ = input.readInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.DelEdgeRequest.class, lgraph.Lgraph.DelEdgeRequest.Builder.class);
- }
-
- private int bitField0_;
- public static final int SRC_FIELD_NUMBER = 1;
- private long src_;
- /**
- * required int64 src = 1;
- */
- public boolean hasSrc() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 src = 1;
- */
- public long getSrc() {
- return src_;
- }
-
- public static final int TID_FIELD_NUMBER = 2;
- private long tid_;
- /**
- * required int64 tid = 2;
- */
- public boolean hasTid() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required int64 tid = 2;
- */
- public long getTid() {
- return tid_;
- }
-
- public static final int LID_FIELD_NUMBER = 3;
- private long lid_;
- /**
- * required int64 lid = 3;
- */
- public boolean hasLid() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required int64 lid = 3;
- */
- public long getLid() {
- return lid_;
- }
-
- public static final int DST_FIELD_NUMBER = 4;
- private long dst_;
- /**
- * required int64 dst = 4;
- */
- public boolean hasDst() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * required int64 dst = 4;
- */
- public long getDst() {
- return dst_;
- }
-
- public static final int EID_FIELD_NUMBER = 5;
- private long eid_;
- /**
- * required int64 eid = 5;
- */
- public boolean hasEid() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required int64 eid = 5;
- */
- public long getEid() {
- return eid_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasSrc()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasTid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasLid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasDst()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasEid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, src_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt64(2, tid_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeInt64(3, lid_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeInt64(4, dst_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeInt64(5, eid_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, src_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, tid_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, lid_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(4, dst_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(5, eid_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.DelEdgeRequest)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.DelEdgeRequest other = (lgraph.Lgraph.DelEdgeRequest) obj;
-
- boolean result = true;
- result = result && (hasSrc() == other.hasSrc());
- if (hasSrc()) {
- result = result && (getSrc()
- == other.getSrc());
- }
- result = result && (hasTid() == other.hasTid());
- if (hasTid()) {
- result = result && (getTid()
- == other.getTid());
- }
- result = result && (hasLid() == other.hasLid());
- if (hasLid()) {
- result = result && (getLid()
- == other.getLid());
- }
- result = result && (hasDst() == other.hasDst());
- if (hasDst()) {
- result = result && (getDst()
- == other.getDst());
- }
- result = result && (hasEid() == other.hasEid());
- if (hasEid()) {
- result = result && (getEid()
- == other.getEid());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasSrc()) {
- hash = (37 * hash) + SRC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getSrc());
- }
- if (hasTid()) {
- hash = (37 * hash) + TID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTid());
- }
- if (hasLid()) {
- hash = (37 * hash) + LID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getLid());
- }
- if (hasDst()) {
- hash = (37 * hash) + DST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getDst());
- }
- if (hasEid()) {
- hash = (37 * hash) + EID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getEid());
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.DelEdgeRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelEdgeRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelEdgeRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelEdgeRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelEdgeRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelEdgeRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelEdgeRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelEdgeRequest 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 lgraph.Lgraph.DelEdgeRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelEdgeRequest 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 lgraph.Lgraph.DelEdgeRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelEdgeRequest 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(lgraph.Lgraph.DelEdgeRequest 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 lgraph.DelEdgeRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.DelEdgeRequest)
- lgraph.Lgraph.DelEdgeRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.DelEdgeRequest.class, lgraph.Lgraph.DelEdgeRequest.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.DelEdgeRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- src_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- tid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
- lid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000004);
- dst_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- eid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelEdgeRequest getDefaultInstanceForType() {
- return lgraph.Lgraph.DelEdgeRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelEdgeRequest build() {
- lgraph.Lgraph.DelEdgeRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelEdgeRequest buildPartial() {
- lgraph.Lgraph.DelEdgeRequest result = new lgraph.Lgraph.DelEdgeRequest(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.src_ = src_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.tid_ = tid_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.lid_ = lid_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.dst_ = dst_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.eid_ = eid_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.DelEdgeRequest) {
- return mergeFrom((lgraph.Lgraph.DelEdgeRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.DelEdgeRequest other) {
- if (other == lgraph.Lgraph.DelEdgeRequest.getDefaultInstance()) return this;
- if (other.hasSrc()) {
- setSrc(other.getSrc());
- }
- if (other.hasTid()) {
- setTid(other.getTid());
- }
- if (other.hasLid()) {
- setLid(other.getLid());
- }
- if (other.hasDst()) {
- setDst(other.getDst());
- }
- if (other.hasEid()) {
- setEid(other.getEid());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasSrc()) {
- return false;
- }
- if (!hasTid()) {
- return false;
- }
- if (!hasLid()) {
- return false;
- }
- if (!hasDst()) {
- return false;
- }
- if (!hasEid()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- lgraph.Lgraph.DelEdgeRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.DelEdgeRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private long src_ ;
- /**
- * required int64 src = 1;
- */
- public boolean hasSrc() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 src = 1;
- */
- public long getSrc() {
- return src_;
- }
- /**
- * required int64 src = 1;
- */
- public Builder setSrc(long value) {
- bitField0_ |= 0x00000001;
- src_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 src = 1;
- */
- public Builder clearSrc() {
- bitField0_ = (bitField0_ & ~0x00000001);
- src_ = 0L;
- onChanged();
- return this;
- }
-
- private long tid_ ;
- /**
- * required int64 tid = 2;
- */
- public boolean hasTid() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required int64 tid = 2;
- */
- public long getTid() {
- return tid_;
- }
- /**
- * required int64 tid = 2;
- */
- public Builder setTid(long value) {
- bitField0_ |= 0x00000002;
- tid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 tid = 2;
- */
- public Builder clearTid() {
- bitField0_ = (bitField0_ & ~0x00000002);
- tid_ = 0L;
- onChanged();
- return this;
- }
-
- private long lid_ ;
- /**
- * required int64 lid = 3;
- */
- public boolean hasLid() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required int64 lid = 3;
- */
- public long getLid() {
- return lid_;
- }
- /**
- * required int64 lid = 3;
- */
- public Builder setLid(long value) {
- bitField0_ |= 0x00000004;
- lid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 lid = 3;
- */
- public Builder clearLid() {
- bitField0_ = (bitField0_ & ~0x00000004);
- lid_ = 0L;
- onChanged();
- return this;
- }
-
- private long dst_ ;
- /**
- * required int64 dst = 4;
- */
- public boolean hasDst() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * required int64 dst = 4;
- */
- public long getDst() {
- return dst_;
- }
- /**
- * required int64 dst = 4;
- */
- public Builder setDst(long value) {
- bitField0_ |= 0x00000008;
- dst_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 dst = 4;
- */
- public Builder clearDst() {
- bitField0_ = (bitField0_ & ~0x00000008);
- dst_ = 0L;
- onChanged();
- return this;
- }
-
- private long eid_ ;
- /**
- * required int64 eid = 5;
- */
- public boolean hasEid() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required int64 eid = 5;
- */
- public long getEid() {
- return eid_;
- }
- /**
- * required int64 eid = 5;
- */
- public Builder setEid(long value) {
- bitField0_ |= 0x00000010;
- eid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 eid = 5;
- */
- public Builder clearEid() {
- bitField0_ = (bitField0_ & ~0x00000010);
- eid_ = 0L;
- 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:lgraph.DelEdgeRequest)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.DelEdgeRequest)
- private static final lgraph.Lgraph.DelEdgeRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.DelEdgeRequest();
- }
-
- public static lgraph.Lgraph.DelEdgeRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public DelEdgeRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DelEdgeRequest(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelEdgeRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface DelEdgeResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.DelEdgeResponse)
- com.google.protobuf.MessageOrBuilder {
- }
- /**
- * Protobuf type {@code lgraph.DelEdgeResponse}
- */
- public static final class DelEdgeResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.DelEdgeResponse)
- DelEdgeResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use DelEdgeResponse.newBuilder() to construct.
- private DelEdgeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private DelEdgeResponse() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private DelEdgeResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.DelEdgeResponse.class, lgraph.Lgraph.DelEdgeResponse.Builder.class);
- }
-
- 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 {
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.DelEdgeResponse)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.DelEdgeResponse other = (lgraph.Lgraph.DelEdgeResponse) obj;
-
- boolean result = true;
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.DelEdgeResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelEdgeResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelEdgeResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelEdgeResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelEdgeResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.DelEdgeResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.DelEdgeResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelEdgeResponse 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 lgraph.Lgraph.DelEdgeResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelEdgeResponse 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 lgraph.Lgraph.DelEdgeResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.DelEdgeResponse 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(lgraph.Lgraph.DelEdgeResponse 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 lgraph.DelEdgeResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.DelEdgeResponse)
- lgraph.Lgraph.DelEdgeResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.DelEdgeResponse.class, lgraph.Lgraph.DelEdgeResponse.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.DelEdgeResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelEdgeResponse getDefaultInstanceForType() {
- return lgraph.Lgraph.DelEdgeResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelEdgeResponse build() {
- lgraph.Lgraph.DelEdgeResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelEdgeResponse buildPartial() {
- lgraph.Lgraph.DelEdgeResponse result = new lgraph.Lgraph.DelEdgeResponse(this);
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.DelEdgeResponse) {
- return mergeFrom((lgraph.Lgraph.DelEdgeResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.DelEdgeResponse other) {
- if (other == lgraph.Lgraph.DelEdgeResponse.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.unknownFields);
- 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 {
- lgraph.Lgraph.DelEdgeResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.DelEdgeResponse) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- 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:lgraph.DelEdgeResponse)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.DelEdgeResponse)
- private static final lgraph.Lgraph.DelEdgeResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.DelEdgeResponse();
- }
-
- public static lgraph.Lgraph.DelEdgeResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public DelEdgeResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DelEdgeResponse(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.DelEdgeResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ModEdgeRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.ModEdgeRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 src = 1;
- */
- boolean hasSrc();
- /**
- * required int64 src = 1;
- */
- long getSrc();
-
- /**
- * required int64 tid = 2;
- */
- boolean hasTid();
- /**
- * required int64 tid = 2;
- */
- long getTid();
-
- /**
- * required int64 lid = 3;
- */
- boolean hasLid();
- /**
- * required int64 lid = 3;
- */
- long getLid();
-
- /**
- * required int64 dst = 4;
- */
- boolean hasDst();
- /**
- * required int64 dst = 4;
- */
- long getDst();
-
- /**
- * required int64 eid = 5;
- */
- boolean hasEid();
- /**
- * required int64 eid = 5;
- */
- long getEid();
-
- /**
- * repeated string fields = 6;
- */
- java.util.List
- getFieldsList();
- /**
- * repeated string fields = 6;
- */
- int getFieldsCount();
- /**
- * repeated string fields = 6;
- */
- java.lang.String getFields(int index);
- /**
- * repeated string fields = 6;
- */
- com.google.protobuf.ByteString
- getFieldsBytes(int index);
-
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- boolean hasValues();
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- lgraph.Lgraph.ListOfProtoFieldData getValues();
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder();
- }
- /**
- * Protobuf type {@code lgraph.ModEdgeRequest}
- */
- public static final class ModEdgeRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.ModEdgeRequest)
- ModEdgeRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ModEdgeRequest.newBuilder() to construct.
- private ModEdgeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private ModEdgeRequest() {
- src_ = 0L;
- tid_ = 0L;
- lid_ = 0L;
- dst_ = 0L;
- eid_ = 0L;
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ModEdgeRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- bitField0_ |= 0x00000001;
- src_ = input.readInt64();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- tid_ = input.readInt64();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- lid_ = input.readInt64();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- dst_ = input.readInt64();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000010;
- eid_ = input.readInt64();
- break;
- }
- case 50: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- fields_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000020;
- }
- fields_.add(bs);
- break;
- }
- case 58: {
- lgraph.Lgraph.ListOfProtoFieldData.Builder subBuilder = null;
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- subBuilder = values_.toBuilder();
- }
- values_ = input.readMessage(lgraph.Lgraph.ListOfProtoFieldData.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(values_);
- values_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000020;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- fields_ = fields_.getUnmodifiableView();
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.ModEdgeRequest.class, lgraph.Lgraph.ModEdgeRequest.Builder.class);
- }
-
- private int bitField0_;
- public static final int SRC_FIELD_NUMBER = 1;
- private long src_;
- /**
- * required int64 src = 1;
- */
- public boolean hasSrc() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 src = 1;
- */
- public long getSrc() {
- return src_;
- }
-
- public static final int TID_FIELD_NUMBER = 2;
- private long tid_;
- /**
- * required int64 tid = 2;
- */
- public boolean hasTid() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required int64 tid = 2;
- */
- public long getTid() {
- return tid_;
- }
-
- public static final int LID_FIELD_NUMBER = 3;
- private long lid_;
- /**
- * required int64 lid = 3;
- */
- public boolean hasLid() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required int64 lid = 3;
- */
- public long getLid() {
- return lid_;
- }
-
- public static final int DST_FIELD_NUMBER = 4;
- private long dst_;
- /**
- * required int64 dst = 4;
- */
- public boolean hasDst() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * required int64 dst = 4;
- */
- public long getDst() {
- return dst_;
- }
-
- public static final int EID_FIELD_NUMBER = 5;
- private long eid_;
- /**
- * required int64 eid = 5;
- */
- public boolean hasEid() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required int64 eid = 5;
- */
- public long getEid() {
- return eid_;
- }
-
- public static final int FIELDS_FIELD_NUMBER = 6;
- private com.google.protobuf.LazyStringList fields_;
- /**
- * repeated string fields = 6;
- */
- public com.google.protobuf.ProtocolStringList
- getFieldsList() {
- return fields_;
- }
- /**
- * repeated string fields = 6;
- */
- public int getFieldsCount() {
- return fields_.size();
- }
- /**
- * repeated string fields = 6;
- */
- public java.lang.String getFields(int index) {
- return fields_.get(index);
- }
- /**
- * repeated string fields = 6;
- */
- public com.google.protobuf.ByteString
- getFieldsBytes(int index) {
- return fields_.getByteString(index);
- }
-
- public static final int VALUES_FIELD_NUMBER = 7;
- private lgraph.Lgraph.ListOfProtoFieldData values_;
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public boolean hasValues() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public lgraph.Lgraph.ListOfProtoFieldData getValues() {
- return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() {
- return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasSrc()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasTid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasLid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasDst()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasEid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasValues()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, src_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt64(2, tid_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeInt64(3, lid_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeInt64(4, dst_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeInt64(5, eid_);
- }
- for (int i = 0; i < fields_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fields_.getRaw(i));
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeMessage(7, getValues());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, src_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, tid_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, lid_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(4, dst_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(5, eid_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < fields_.size(); i++) {
- dataSize += computeStringSizeNoTag(fields_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getFieldsList().size();
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, getValues());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.ModEdgeRequest)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.ModEdgeRequest other = (lgraph.Lgraph.ModEdgeRequest) obj;
-
- boolean result = true;
- result = result && (hasSrc() == other.hasSrc());
- if (hasSrc()) {
- result = result && (getSrc()
- == other.getSrc());
- }
- result = result && (hasTid() == other.hasTid());
- if (hasTid()) {
- result = result && (getTid()
- == other.getTid());
- }
- result = result && (hasLid() == other.hasLid());
- if (hasLid()) {
- result = result && (getLid()
- == other.getLid());
- }
- result = result && (hasDst() == other.hasDst());
- if (hasDst()) {
- result = result && (getDst()
- == other.getDst());
- }
- result = result && (hasEid() == other.hasEid());
- if (hasEid()) {
- result = result && (getEid()
- == other.getEid());
- }
- result = result && getFieldsList()
- .equals(other.getFieldsList());
- result = result && (hasValues() == other.hasValues());
- if (hasValues()) {
- result = result && getValues()
- .equals(other.getValues());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasSrc()) {
- hash = (37 * hash) + SRC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getSrc());
- }
- if (hasTid()) {
- hash = (37 * hash) + TID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTid());
- }
- if (hasLid()) {
- hash = (37 * hash) + LID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getLid());
- }
- if (hasDst()) {
- hash = (37 * hash) + DST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getDst());
- }
- if (hasEid()) {
- hash = (37 * hash) + EID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getEid());
- }
- if (getFieldsCount() > 0) {
- hash = (37 * hash) + FIELDS_FIELD_NUMBER;
- hash = (53 * hash) + getFieldsList().hashCode();
- }
- if (hasValues()) {
- hash = (37 * hash) + VALUES_FIELD_NUMBER;
- hash = (53 * hash) + getValues().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.ModEdgeRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModEdgeRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModEdgeRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModEdgeRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModEdgeRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModEdgeRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModEdgeRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModEdgeRequest 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 lgraph.Lgraph.ModEdgeRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModEdgeRequest 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 lgraph.Lgraph.ModEdgeRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModEdgeRequest 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(lgraph.Lgraph.ModEdgeRequest 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 lgraph.ModEdgeRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.ModEdgeRequest)
- lgraph.Lgraph.ModEdgeRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.ModEdgeRequest.class, lgraph.Lgraph.ModEdgeRequest.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.ModEdgeRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getValuesFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- src_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- tid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
- lid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000004);
- dst_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- eid_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000020);
- if (valuesBuilder_ == null) {
- values_ = null;
- } else {
- valuesBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000040);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModEdgeRequest getDefaultInstanceForType() {
- return lgraph.Lgraph.ModEdgeRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModEdgeRequest build() {
- lgraph.Lgraph.ModEdgeRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModEdgeRequest buildPartial() {
- lgraph.Lgraph.ModEdgeRequest result = new lgraph.Lgraph.ModEdgeRequest(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.src_ = src_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.tid_ = tid_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.lid_ = lid_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.dst_ = dst_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.eid_ = eid_;
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- fields_ = fields_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.fields_ = fields_;
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
- to_bitField0_ |= 0x00000020;
- }
- if (valuesBuilder_ == null) {
- result.values_ = values_;
- } else {
- result.values_ = valuesBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.ModEdgeRequest) {
- return mergeFrom((lgraph.Lgraph.ModEdgeRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.ModEdgeRequest other) {
- if (other == lgraph.Lgraph.ModEdgeRequest.getDefaultInstance()) return this;
- if (other.hasSrc()) {
- setSrc(other.getSrc());
- }
- if (other.hasTid()) {
- setTid(other.getTid());
- }
- if (other.hasLid()) {
- setLid(other.getLid());
- }
- if (other.hasDst()) {
- setDst(other.getDst());
- }
- if (other.hasEid()) {
- setEid(other.getEid());
- }
- if (!other.fields_.isEmpty()) {
- if (fields_.isEmpty()) {
- fields_ = other.fields_;
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- ensureFieldsIsMutable();
- fields_.addAll(other.fields_);
- }
- onChanged();
- }
- if (other.hasValues()) {
- mergeValues(other.getValues());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasSrc()) {
- return false;
- }
- if (!hasTid()) {
- return false;
- }
- if (!hasLid()) {
- return false;
- }
- if (!hasDst()) {
- return false;
- }
- if (!hasEid()) {
- return false;
- }
- if (!hasValues()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- lgraph.Lgraph.ModEdgeRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.ModEdgeRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private long src_ ;
- /**
- * required int64 src = 1;
- */
- public boolean hasSrc() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required int64 src = 1;
- */
- public long getSrc() {
- return src_;
- }
- /**
- * required int64 src = 1;
- */
- public Builder setSrc(long value) {
- bitField0_ |= 0x00000001;
- src_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 src = 1;
- */
- public Builder clearSrc() {
- bitField0_ = (bitField0_ & ~0x00000001);
- src_ = 0L;
- onChanged();
- return this;
- }
-
- private long tid_ ;
- /**
- * required int64 tid = 2;
- */
- public boolean hasTid() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required int64 tid = 2;
- */
- public long getTid() {
- return tid_;
- }
- /**
- * required int64 tid = 2;
- */
- public Builder setTid(long value) {
- bitField0_ |= 0x00000002;
- tid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 tid = 2;
- */
- public Builder clearTid() {
- bitField0_ = (bitField0_ & ~0x00000002);
- tid_ = 0L;
- onChanged();
- return this;
- }
-
- private long lid_ ;
- /**
- * required int64 lid = 3;
- */
- public boolean hasLid() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required int64 lid = 3;
- */
- public long getLid() {
- return lid_;
- }
- /**
- * required int64 lid = 3;
- */
- public Builder setLid(long value) {
- bitField0_ |= 0x00000004;
- lid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 lid = 3;
- */
- public Builder clearLid() {
- bitField0_ = (bitField0_ & ~0x00000004);
- lid_ = 0L;
- onChanged();
- return this;
- }
-
- private long dst_ ;
- /**
- * required int64 dst = 4;
- */
- public boolean hasDst() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * required int64 dst = 4;
- */
- public long getDst() {
- return dst_;
- }
- /**
- * required int64 dst = 4;
- */
- public Builder setDst(long value) {
- bitField0_ |= 0x00000008;
- dst_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 dst = 4;
- */
- public Builder clearDst() {
- bitField0_ = (bitField0_ & ~0x00000008);
- dst_ = 0L;
- onChanged();
- return this;
- }
-
- private long eid_ ;
- /**
- * required int64 eid = 5;
- */
- public boolean hasEid() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required int64 eid = 5;
- */
- public long getEid() {
- return eid_;
- }
- /**
- * required int64 eid = 5;
- */
- public Builder setEid(long value) {
- bitField0_ |= 0x00000010;
- eid_ = value;
- onChanged();
- return this;
- }
- /**
- * required int64 eid = 5;
- */
- public Builder clearEid() {
- bitField0_ = (bitField0_ & ~0x00000010);
- eid_ = 0L;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureFieldsIsMutable() {
- if (!((bitField0_ & 0x00000020) == 0x00000020)) {
- fields_ = new com.google.protobuf.LazyStringArrayList(fields_);
- bitField0_ |= 0x00000020;
- }
- }
- /**
- * repeated string fields = 6;
- */
- public com.google.protobuf.ProtocolStringList
- getFieldsList() {
- return fields_.getUnmodifiableView();
- }
- /**
- * repeated string fields = 6;
- */
- public int getFieldsCount() {
- return fields_.size();
- }
- /**
- * repeated string fields = 6;
- */
- public java.lang.String getFields(int index) {
- return fields_.get(index);
- }
- /**
- * repeated string fields = 6;
- */
- public com.google.protobuf.ByteString
- getFieldsBytes(int index) {
- return fields_.getByteString(index);
- }
- /**
- * repeated string fields = 6;
- */
- public Builder setFields(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 6;
- */
- public Builder addFields(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 6;
- */
- public Builder addAllFields(
- java.lang.Iterable values) {
- ensureFieldsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, fields_);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 6;
- */
- public Builder clearFields() {
- fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
- }
- /**
- * repeated string fields = 6;
- */
- public Builder addFieldsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.add(value);
- onChanged();
- return this;
- }
-
- private lgraph.Lgraph.ListOfProtoFieldData values_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> valuesBuilder_;
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public boolean hasValues() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public lgraph.Lgraph.ListOfProtoFieldData getValues() {
- if (valuesBuilder_ == null) {
- return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_;
- } else {
- return valuesBuilder_.getMessage();
- }
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public Builder setValues(lgraph.Lgraph.ListOfProtoFieldData value) {
- if (valuesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- values_ = value;
- onChanged();
- } else {
- valuesBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000040;
- return this;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public Builder setValues(
- lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) {
- if (valuesBuilder_ == null) {
- values_ = builderForValue.build();
- onChanged();
- } else {
- valuesBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000040;
- return this;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public Builder mergeValues(lgraph.Lgraph.ListOfProtoFieldData value) {
- if (valuesBuilder_ == null) {
- if (((bitField0_ & 0x00000040) == 0x00000040) &&
- values_ != null &&
- values_ != lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()) {
- values_ =
- lgraph.Lgraph.ListOfProtoFieldData.newBuilder(values_).mergeFrom(value).buildPartial();
- } else {
- values_ = value;
- }
- onChanged();
- } else {
- valuesBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000040;
- return this;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public Builder clearValues() {
- if (valuesBuilder_ == null) {
- values_ = null;
- onChanged();
- } else {
- valuesBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000040);
- return this;
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public lgraph.Lgraph.ListOfProtoFieldData.Builder getValuesBuilder() {
- bitField0_ |= 0x00000040;
- onChanged();
- return getValuesFieldBuilder().getBuilder();
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() {
- if (valuesBuilder_ != null) {
- return valuesBuilder_.getMessageOrBuilder();
- } else {
- return values_ == null ?
- lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_;
- }
- }
- /**
- * required .lgraph.ListOfProtoFieldData values = 7;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>
- getValuesFieldBuilder() {
- if (valuesBuilder_ == null) {
- valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>(
- getValues(),
- getParentForChildren(),
- isClean());
- values_ = null;
- }
- return valuesBuilder_;
- }
- @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:lgraph.ModEdgeRequest)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.ModEdgeRequest)
- private static final lgraph.Lgraph.ModEdgeRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.ModEdgeRequest();
- }
-
- public static lgraph.Lgraph.ModEdgeRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ModEdgeRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ModEdgeRequest(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModEdgeRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ModEdgeResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.ModEdgeResponse)
- com.google.protobuf.MessageOrBuilder {
- }
- /**
- * Protobuf type {@code lgraph.ModEdgeResponse}
- */
- public static final class ModEdgeResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.ModEdgeResponse)
- ModEdgeResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ModEdgeResponse.newBuilder() to construct.
- private ModEdgeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private ModEdgeResponse() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ModEdgeResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.ModEdgeResponse.class, lgraph.Lgraph.ModEdgeResponse.Builder.class);
- }
-
- 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 {
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.ModEdgeResponse)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.ModEdgeResponse other = (lgraph.Lgraph.ModEdgeResponse) obj;
-
- boolean result = true;
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.ModEdgeResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModEdgeResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModEdgeResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModEdgeResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModEdgeResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.ModEdgeResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.ModEdgeResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModEdgeResponse 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 lgraph.Lgraph.ModEdgeResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModEdgeResponse 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 lgraph.Lgraph.ModEdgeResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.ModEdgeResponse 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(lgraph.Lgraph.ModEdgeResponse 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 lgraph.ModEdgeResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.ModEdgeResponse)
- lgraph.Lgraph.ModEdgeResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.ModEdgeResponse.class, lgraph.Lgraph.ModEdgeResponse.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.ModEdgeResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModEdgeResponse getDefaultInstanceForType() {
- return lgraph.Lgraph.ModEdgeResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModEdgeResponse build() {
- lgraph.Lgraph.ModEdgeResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModEdgeResponse buildPartial() {
- lgraph.Lgraph.ModEdgeResponse result = new lgraph.Lgraph.ModEdgeResponse(this);
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.ModEdgeResponse) {
- return mergeFrom((lgraph.Lgraph.ModEdgeResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.ModEdgeResponse other) {
- if (other == lgraph.Lgraph.ModEdgeResponse.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.unknownFields);
- 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 {
- lgraph.Lgraph.ModEdgeResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.ModEdgeResponse) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- 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:lgraph.ModEdgeResponse)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.ModEdgeResponse)
- private static final lgraph.Lgraph.ModEdgeResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.ModEdgeResponse();
- }
-
- public static lgraph.Lgraph.ModEdgeResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ModEdgeResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ModEdgeResponse(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.ModEdgeResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface FlushRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.FlushRequest)
- com.google.protobuf.MessageOrBuilder {
- }
- /**
- *
- * flush
- *
- *
- * Protobuf type {@code lgraph.FlushRequest}
- */
- public static final class FlushRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.FlushRequest)
- FlushRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use FlushRequest.newBuilder() to construct.
- private FlushRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private FlushRequest() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private FlushRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_FlushRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_FlushRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.FlushRequest.class, lgraph.Lgraph.FlushRequest.Builder.class);
- }
-
- 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 {
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.FlushRequest)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.FlushRequest other = (lgraph.Lgraph.FlushRequest) obj;
-
- boolean result = true;
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.FlushRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.FlushRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.FlushRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.FlushRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.FlushRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.FlushRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.FlushRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.FlushRequest 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 lgraph.Lgraph.FlushRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.FlushRequest 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 lgraph.Lgraph.FlushRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.FlushRequest 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(lgraph.Lgraph.FlushRequest 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;
- }
- /**
- *
- * flush
- *
- *
- * Protobuf type {@code lgraph.FlushRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.FlushRequest)
- lgraph.Lgraph.FlushRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_FlushRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_FlushRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.FlushRequest.class, lgraph.Lgraph.FlushRequest.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.FlushRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_FlushRequest_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.FlushRequest getDefaultInstanceForType() {
- return lgraph.Lgraph.FlushRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.FlushRequest build() {
- lgraph.Lgraph.FlushRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.FlushRequest buildPartial() {
- lgraph.Lgraph.FlushRequest result = new lgraph.Lgraph.FlushRequest(this);
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.FlushRequest) {
- return mergeFrom((lgraph.Lgraph.FlushRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.FlushRequest other) {
- if (other == lgraph.Lgraph.FlushRequest.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.unknownFields);
- 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 {
- lgraph.Lgraph.FlushRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.FlushRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- 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:lgraph.FlushRequest)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.FlushRequest)
- private static final lgraph.Lgraph.FlushRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.FlushRequest();
- }
-
- public static lgraph.Lgraph.FlushRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public FlushRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new FlushRequest(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.FlushRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface FlushResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.FlushResponse)
- com.google.protobuf.MessageOrBuilder {
- }
- /**
- * Protobuf type {@code lgraph.FlushResponse}
- */
- public static final class FlushResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.FlushResponse)
- FlushResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use FlushResponse.newBuilder() to construct.
- private FlushResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private FlushResponse() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private FlushResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_FlushResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_FlushResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.FlushResponse.class, lgraph.Lgraph.FlushResponse.Builder.class);
- }
-
- 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 {
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.FlushResponse)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.FlushResponse other = (lgraph.Lgraph.FlushResponse) obj;
-
- boolean result = true;
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.FlushResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.FlushResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.FlushResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.FlushResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.FlushResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.FlushResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.FlushResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.FlushResponse 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 lgraph.Lgraph.FlushResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.FlushResponse 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 lgraph.Lgraph.FlushResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.FlushResponse 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(lgraph.Lgraph.FlushResponse 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 lgraph.FlushResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.FlushResponse)
- lgraph.Lgraph.FlushResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_FlushResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_FlushResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.FlushResponse.class, lgraph.Lgraph.FlushResponse.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.FlushResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_FlushResponse_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.FlushResponse getDefaultInstanceForType() {
- return lgraph.Lgraph.FlushResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.FlushResponse build() {
- lgraph.Lgraph.FlushResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.FlushResponse buildPartial() {
- lgraph.Lgraph.FlushResponse result = new lgraph.Lgraph.FlushResponse(this);
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.FlushResponse) {
- return mergeFrom((lgraph.Lgraph.FlushResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.FlushResponse other) {
- if (other == lgraph.Lgraph.FlushResponse.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.unknownFields);
- 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 {
- lgraph.Lgraph.FlushResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.FlushResponse) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- 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:lgraph.FlushResponse)
- }
-
- // @@protoc_insertion_point(class_scope:lgraph.FlushResponse)
- private static final lgraph.Lgraph.FlushResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new lgraph.Lgraph.FlushResponse();
- }
-
- public static lgraph.Lgraph.FlushResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public FlushResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new FlushResponse(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.FlushResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface SubGraphRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:lgraph.SubGraphRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * repeated int64 vids = 1;
- */
- java.util.List getVidsList();
- /**
- * repeated int64 vids = 1;
- */
- int getVidsCount();
- /**
- * repeated int64 vids = 1;
- */
- long getVids(int index);
- }
- /**
- * Protobuf type {@code lgraph.SubGraphRequest}
- */
- public static final class SubGraphRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:lgraph.SubGraphRequest)
- SubGraphRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SubGraphRequest.newBuilder() to construct.
- private SubGraphRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private SubGraphRequest() {
- vids_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private SubGraphRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- vids_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- vids_.add(input.readInt64());
- break;
- }
- case 10: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
- vids_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- while (input.getBytesUntilLimit() > 0) {
- vids_.add(input.readInt64());
- }
- input.popLimit(limit);
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- vids_ = java.util.Collections.unmodifiableList(vids_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.SubGraphRequest.class, lgraph.Lgraph.SubGraphRequest.Builder.class);
- }
-
- public static final int VIDS_FIELD_NUMBER = 1;
- private java.util.List vids_;
- /**
- * repeated int64 vids = 1;
- */
- public java.util.List
- getVidsList() {
- return vids_;
- }
- /**
- * repeated int64 vids = 1;
- */
- public int getVidsCount() {
- return vids_.size();
- }
- /**
- * repeated int64 vids = 1;
- */
- public long getVids(int index) {
- return vids_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < vids_.size(); i++) {
- output.writeInt64(1, vids_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- {
- int dataSize = 0;
- for (int i = 0; i < vids_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt64SizeNoTag(vids_.get(i));
- }
- size += dataSize;
- size += 1 * getVidsList().size();
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof lgraph.Lgraph.SubGraphRequest)) {
- return super.equals(obj);
- }
- lgraph.Lgraph.SubGraphRequest other = (lgraph.Lgraph.SubGraphRequest) obj;
-
- boolean result = true;
- result = result && getVidsList()
- .equals(other.getVidsList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getVidsCount() > 0) {
- hash = (37 * hash) + VIDS_FIELD_NUMBER;
- hash = (53 * hash) + getVidsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static lgraph.Lgraph.SubGraphRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.SubGraphRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.SubGraphRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.SubGraphRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.SubGraphRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static lgraph.Lgraph.SubGraphRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static lgraph.Lgraph.SubGraphRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.SubGraphRequest 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 lgraph.Lgraph.SubGraphRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.SubGraphRequest 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 lgraph.Lgraph.SubGraphRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static lgraph.Lgraph.SubGraphRequest 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(lgraph.Lgraph.SubGraphRequest 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 lgraph.SubGraphRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:lgraph.SubGraphRequest)
- lgraph.Lgraph.SubGraphRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- lgraph.Lgraph.SubGraphRequest.class, lgraph.Lgraph.SubGraphRequest.Builder.class);
- }
-
- // Construct using lgraph.Lgraph.SubGraphRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- vids_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_descriptor;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.SubGraphRequest getDefaultInstanceForType() {
- return lgraph.Lgraph.SubGraphRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public lgraph.Lgraph.SubGraphRequest build() {
- lgraph.Lgraph.SubGraphRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public lgraph.Lgraph.SubGraphRequest buildPartial() {
- lgraph.Lgraph.SubGraphRequest result = new lgraph.Lgraph.SubGraphRequest(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- vids_ = java.util.Collections.unmodifiableList(vids_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.vids_ = vids_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return (Builder) super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof lgraph.Lgraph.SubGraphRequest) {
- return mergeFrom((lgraph.Lgraph.SubGraphRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(lgraph.Lgraph.SubGraphRequest other) {
- if (other == lgraph.Lgraph.SubGraphRequest.getDefaultInstance()) return this;
- if (!other.vids_.isEmpty()) {
- if (vids_.isEmpty()) {
- vids_ = other.vids_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureVidsIsMutable();
- vids_.addAll(other.vids_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- 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 {
- lgraph.Lgraph.SubGraphRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (lgraph.Lgraph.SubGraphRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.util.List vids_ = java.util.Collections.emptyList();
- private void ensureVidsIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- vids_ = new java.util.ArrayList