com.vesoft.nebula.proto.graph.ResultTable Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: graph.proto
// Protobuf Java Version: 3.25.1
package com.vesoft.nebula.proto.graph;
/**
* Protobuf type {@code nebula.proto.graph.ResultTable}
*/
public final class ResultTable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:nebula.proto.graph.ResultTable)
ResultTableOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResultTable.newBuilder() to construct.
private ResultTable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResultTable() {
columnNames_ = emptyList(com.google.protobuf.ByteString.class);
records_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResultTable();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ResultTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ResultTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vesoft.nebula.proto.graph.ResultTable.class, com.vesoft.nebula.proto.graph.ResultTable.Builder.class);
}
public static final int COLUMN_NAMES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList columnNames_ =
emptyList(com.google.protobuf.ByteString.class);
/**
* repeated bytes column_names = 1;
* @return A list containing the columnNames.
*/
@java.lang.Override
public java.util.List
getColumnNamesList() {
return columnNames_;
}
/**
* repeated bytes column_names = 1;
* @return The count of columnNames.
*/
public int getColumnNamesCount() {
return columnNames_.size();
}
/**
* repeated bytes column_names = 1;
* @param index The index of the element to return.
* @return The columnNames at the given index.
*/
public com.google.protobuf.ByteString getColumnNames(int index) {
return columnNames_.get(index);
}
public static final int RECORDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List records_;
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
@java.lang.Override
public java.util.List getRecordsList() {
return records_;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
@java.lang.Override
public java.util.List extends com.vesoft.nebula.proto.graph.RowOrBuilder>
getRecordsOrBuilderList() {
return records_;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
@java.lang.Override
public int getRecordsCount() {
return records_.size();
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
@java.lang.Override
public com.vesoft.nebula.proto.graph.Row getRecords(int index) {
return records_.get(index);
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
@java.lang.Override
public com.vesoft.nebula.proto.graph.RowOrBuilder getRecordsOrBuilder(
int index) {
return records_.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 < columnNames_.size(); i++) {
output.writeBytes(1, columnNames_.get(i));
}
for (int i = 0; i < records_.size(); i++) {
output.writeMessage(2, records_.get(i));
}
getUnknownFields().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 < columnNames_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(columnNames_.get(i));
}
size += dataSize;
size += 1 * getColumnNamesList().size();
}
for (int i = 0; i < records_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, records_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vesoft.nebula.proto.graph.ResultTable)) {
return super.equals(obj);
}
com.vesoft.nebula.proto.graph.ResultTable other = (com.vesoft.nebula.proto.graph.ResultTable) obj;
if (!getColumnNamesList()
.equals(other.getColumnNamesList())) return false;
if (!getRecordsList()
.equals(other.getRecordsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getColumnNamesCount() > 0) {
hash = (37 * hash) + COLUMN_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getColumnNamesList().hashCode();
}
if (getRecordsCount() > 0) {
hash = (37 * hash) + RECORDS_FIELD_NUMBER;
hash = (53 * hash) + getRecordsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.ResultTable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vesoft.nebula.proto.graph.ResultTable 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 nebula.proto.graph.ResultTable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:nebula.proto.graph.ResultTable)
com.vesoft.nebula.proto.graph.ResultTableOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ResultTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ResultTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vesoft.nebula.proto.graph.ResultTable.class, com.vesoft.nebula.proto.graph.ResultTable.Builder.class);
}
// Construct using com.vesoft.nebula.proto.graph.ResultTable.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
columnNames_ = emptyList(com.google.protobuf.ByteString.class);
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
} else {
records_ = null;
recordsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ResultTable_descriptor;
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.ResultTable getDefaultInstanceForType() {
return com.vesoft.nebula.proto.graph.ResultTable.getDefaultInstance();
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.ResultTable build() {
com.vesoft.nebula.proto.graph.ResultTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.ResultTable buildPartial() {
com.vesoft.nebula.proto.graph.ResultTable result = new com.vesoft.nebula.proto.graph.ResultTable(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.vesoft.nebula.proto.graph.ResultTable result) {
if (recordsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
records_ = java.util.Collections.unmodifiableList(records_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.records_ = records_;
} else {
result.records_ = recordsBuilder_.build();
}
}
private void buildPartial0(com.vesoft.nebula.proto.graph.ResultTable result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
columnNames_.makeImmutable();
result.columnNames_ = columnNames_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vesoft.nebula.proto.graph.ResultTable) {
return mergeFrom((com.vesoft.nebula.proto.graph.ResultTable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vesoft.nebula.proto.graph.ResultTable other) {
if (other == com.vesoft.nebula.proto.graph.ResultTable.getDefaultInstance()) return this;
if (!other.columnNames_.isEmpty()) {
if (columnNames_.isEmpty()) {
columnNames_ = other.columnNames_;
columnNames_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensureColumnNamesIsMutable();
columnNames_.addAll(other.columnNames_);
}
onChanged();
}
if (recordsBuilder_ == null) {
if (!other.records_.isEmpty()) {
if (records_.isEmpty()) {
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRecordsIsMutable();
records_.addAll(other.records_);
}
onChanged();
}
} else {
if (!other.records_.isEmpty()) {
if (recordsBuilder_.isEmpty()) {
recordsBuilder_.dispose();
recordsBuilder_ = null;
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000002);
recordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecordsFieldBuilder() : null;
} else {
recordsBuilder_.addAllMessages(other.records_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString v = input.readBytes();
ensureColumnNamesIsMutable();
columnNames_.add(v);
break;
} // case 10
case 18: {
com.vesoft.nebula.proto.graph.Row m =
input.readMessage(
com.vesoft.nebula.proto.graph.Row.parser(),
extensionRegistry);
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(m);
} else {
recordsBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.ProtobufList columnNames_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureColumnNamesIsMutable() {
if (!columnNames_.isModifiable()) {
columnNames_ = makeMutableCopy(columnNames_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated bytes column_names = 1;
* @return A list containing the columnNames.
*/
public java.util.List
getColumnNamesList() {
columnNames_.makeImmutable();
return columnNames_;
}
/**
* repeated bytes column_names = 1;
* @return The count of columnNames.
*/
public int getColumnNamesCount() {
return columnNames_.size();
}
/**
* repeated bytes column_names = 1;
* @param index The index of the element to return.
* @return The columnNames at the given index.
*/
public com.google.protobuf.ByteString getColumnNames(int index) {
return columnNames_.get(index);
}
/**
* repeated bytes column_names = 1;
* @param index The index to set the value at.
* @param value The columnNames to set.
* @return This builder for chaining.
*/
public Builder setColumnNames(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureColumnNamesIsMutable();
columnNames_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated bytes column_names = 1;
* @param value The columnNames to add.
* @return This builder for chaining.
*/
public Builder addColumnNames(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureColumnNamesIsMutable();
columnNames_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated bytes column_names = 1;
* @param values The columnNames to add.
* @return This builder for chaining.
*/
public Builder addAllColumnNames(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureColumnNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, columnNames_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated bytes column_names = 1;
* @return This builder for chaining.
*/
public Builder clearColumnNames() {
columnNames_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List records_ =
java.util.Collections.emptyList();
private void ensureRecordsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
records_ = new java.util.ArrayList(records_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vesoft.nebula.proto.graph.Row, com.vesoft.nebula.proto.graph.Row.Builder, com.vesoft.nebula.proto.graph.RowOrBuilder> recordsBuilder_;
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public java.util.List getRecordsList() {
if (recordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(records_);
} else {
return recordsBuilder_.getMessageList();
}
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public int getRecordsCount() {
if (recordsBuilder_ == null) {
return records_.size();
} else {
return recordsBuilder_.getCount();
}
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public com.vesoft.nebula.proto.graph.Row getRecords(int index) {
if (recordsBuilder_ == null) {
return records_.get(index);
} else {
return recordsBuilder_.getMessage(index);
}
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder setRecords(
int index, com.vesoft.nebula.proto.graph.Row value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.set(index, value);
onChanged();
} else {
recordsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder setRecords(
int index, com.vesoft.nebula.proto.graph.Row.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.set(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder addRecords(com.vesoft.nebula.proto.graph.Row value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(value);
onChanged();
} else {
recordsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder addRecords(
int index, com.vesoft.nebula.proto.graph.Row value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(index, value);
onChanged();
} else {
recordsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder addRecords(
com.vesoft.nebula.proto.graph.Row.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder addRecords(
int index, com.vesoft.nebula.proto.graph.Row.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder addAllRecords(
java.lang.Iterable extends com.vesoft.nebula.proto.graph.Row> values) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, records_);
onChanged();
} else {
recordsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder clearRecords() {
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
recordsBuilder_.clear();
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public Builder removeRecords(int index) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.remove(index);
onChanged();
} else {
recordsBuilder_.remove(index);
}
return this;
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public com.vesoft.nebula.proto.graph.Row.Builder getRecordsBuilder(
int index) {
return getRecordsFieldBuilder().getBuilder(index);
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public com.vesoft.nebula.proto.graph.RowOrBuilder getRecordsOrBuilder(
int index) {
if (recordsBuilder_ == null) {
return records_.get(index); } else {
return recordsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public java.util.List extends com.vesoft.nebula.proto.graph.RowOrBuilder>
getRecordsOrBuilderList() {
if (recordsBuilder_ != null) {
return recordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(records_);
}
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public com.vesoft.nebula.proto.graph.Row.Builder addRecordsBuilder() {
return getRecordsFieldBuilder().addBuilder(
com.vesoft.nebula.proto.graph.Row.getDefaultInstance());
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public com.vesoft.nebula.proto.graph.Row.Builder addRecordsBuilder(
int index) {
return getRecordsFieldBuilder().addBuilder(
index, com.vesoft.nebula.proto.graph.Row.getDefaultInstance());
}
/**
* repeated .nebula.proto.graph.Row records = 2;
*/
public java.util.List
getRecordsBuilderList() {
return getRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vesoft.nebula.proto.graph.Row, com.vesoft.nebula.proto.graph.Row.Builder, com.vesoft.nebula.proto.graph.RowOrBuilder>
getRecordsFieldBuilder() {
if (recordsBuilder_ == null) {
recordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vesoft.nebula.proto.graph.Row, com.vesoft.nebula.proto.graph.Row.Builder, com.vesoft.nebula.proto.graph.RowOrBuilder>(
records_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
records_ = null;
}
return recordsBuilder_;
}
@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:nebula.proto.graph.ResultTable)
}
// @@protoc_insertion_point(class_scope:nebula.proto.graph.ResultTable)
private static final com.vesoft.nebula.proto.graph.ResultTable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vesoft.nebula.proto.graph.ResultTable();
}
public static com.vesoft.nebula.proto.graph.ResultTable getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResultTable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.ResultTable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}