feat: add struct and list data type (#277)
* feat: add struct and list data type * type extensions * feat: extend column type * chore: rename fields * add value enum item * feat: add value * refactor: item->items * feat: use single ListValue/StructValue for Row and Column
This commit is contained in:
@@ -803,6 +803,54 @@ public final class Columns {
|
||||
*/
|
||||
io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValuesOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
java.util.List<io.greptime.v1.RowData.ListValue>
|
||||
getListValuesList();
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
io.greptime.v1.RowData.ListValue getListValues(int index);
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
int getListValuesCount();
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
java.util.List<? extends io.greptime.v1.RowData.ListValueOrBuilder>
|
||||
getListValuesOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
io.greptime.v1.RowData.ListValueOrBuilder getListValuesOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
java.util.List<io.greptime.v1.RowData.StructValue>
|
||||
getStructValuesList();
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
io.greptime.v1.RowData.StructValue getStructValues(int index);
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
int getStructValuesCount();
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
java.util.List<? extends io.greptime.v1.RowData.StructValueOrBuilder>
|
||||
getStructValuesOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
io.greptime.v1.RowData.StructValueOrBuilder getStructValuesOrBuilder(
|
||||
int index);
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code greptime.v1.Column.Values}
|
||||
@@ -844,6 +892,8 @@ public final class Columns {
|
||||
intervalDayTimeValues_ = emptyLongList();
|
||||
intervalMonthDayNanoValues_ = java.util.Collections.emptyList();
|
||||
decimal128Values_ = java.util.Collections.emptyList();
|
||||
listValues_ = java.util.Collections.emptyList();
|
||||
structValues_ = java.util.Collections.emptyList();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@@ -1395,6 +1445,24 @@ public final class Columns {
|
||||
input.readMessage(io.greptime.v1.Common.Decimal128.parser(), extensionRegistry));
|
||||
break;
|
||||
}
|
||||
case 322: {
|
||||
if (!((mutable_bitField0_ & 0x08000000) != 0)) {
|
||||
listValues_ = new java.util.ArrayList<io.greptime.v1.RowData.ListValue>();
|
||||
mutable_bitField0_ |= 0x08000000;
|
||||
}
|
||||
listValues_.add(
|
||||
input.readMessage(io.greptime.v1.RowData.ListValue.parser(), extensionRegistry));
|
||||
break;
|
||||
}
|
||||
case 330: {
|
||||
if (!((mutable_bitField0_ & 0x10000000) != 0)) {
|
||||
structValues_ = new java.util.ArrayList<io.greptime.v1.RowData.StructValue>();
|
||||
mutable_bitField0_ |= 0x10000000;
|
||||
}
|
||||
structValues_.add(
|
||||
input.readMessage(io.greptime.v1.RowData.StructValue.parser(), extensionRegistry));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -1493,6 +1561,12 @@ public final class Columns {
|
||||
if (((mutable_bitField0_ & 0x04000000) != 0)) {
|
||||
decimal128Values_ = java.util.Collections.unmodifiableList(decimal128Values_);
|
||||
}
|
||||
if (((mutable_bitField0_ & 0x08000000) != 0)) {
|
||||
listValues_ = java.util.Collections.unmodifiableList(listValues_);
|
||||
}
|
||||
if (((mutable_bitField0_ & 0x10000000) != 0)) {
|
||||
structValues_ = java.util.Collections.unmodifiableList(structValues_);
|
||||
}
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
@@ -2296,6 +2370,86 @@ public final class Columns {
|
||||
return decimal128Values_.get(index);
|
||||
}
|
||||
|
||||
public static final int LIST_VALUES_FIELD_NUMBER = 40;
|
||||
private java.util.List<io.greptime.v1.RowData.ListValue> listValues_;
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<io.greptime.v1.RowData.ListValue> getListValuesList() {
|
||||
return listValues_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<? extends io.greptime.v1.RowData.ListValueOrBuilder>
|
||||
getListValuesOrBuilderList() {
|
||||
return listValues_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getListValuesCount() {
|
||||
return listValues_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.RowData.ListValue getListValues(int index) {
|
||||
return listValues_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.RowData.ListValueOrBuilder getListValuesOrBuilder(
|
||||
int index) {
|
||||
return listValues_.get(index);
|
||||
}
|
||||
|
||||
public static final int STRUCT_VALUES_FIELD_NUMBER = 41;
|
||||
private java.util.List<io.greptime.v1.RowData.StructValue> structValues_;
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<io.greptime.v1.RowData.StructValue> getStructValuesList() {
|
||||
return structValues_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<? extends io.greptime.v1.RowData.StructValueOrBuilder>
|
||||
getStructValuesOrBuilderList() {
|
||||
return structValues_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getStructValuesCount() {
|
||||
return structValues_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.RowData.StructValue getStructValues(int index) {
|
||||
return structValues_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.RowData.StructValueOrBuilder getStructValuesOrBuilder(
|
||||
int index) {
|
||||
return structValues_.get(index);
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -2484,6 +2638,12 @@ public final class Columns {
|
||||
for (int i = 0; i < decimal128Values_.size(); i++) {
|
||||
output.writeMessage(31, decimal128Values_.get(i));
|
||||
}
|
||||
for (int i = 0; i < listValues_.size(); i++) {
|
||||
output.writeMessage(40, listValues_.get(i));
|
||||
}
|
||||
for (int i = 0; i < structValues_.size(); i++) {
|
||||
output.writeMessage(41, structValues_.get(i));
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -2831,6 +2991,14 @@ public final class Columns {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(31, decimal128Values_.get(i));
|
||||
}
|
||||
for (int i = 0; i < listValues_.size(); i++) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(40, listValues_.get(i));
|
||||
}
|
||||
for (int i = 0; i < structValues_.size(); i++) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(41, structValues_.get(i));
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -2900,6 +3068,10 @@ public final class Columns {
|
||||
.equals(other.getIntervalMonthDayNanoValuesList())) return false;
|
||||
if (!getDecimal128ValuesList()
|
||||
.equals(other.getDecimal128ValuesList())) return false;
|
||||
if (!getListValuesList()
|
||||
.equals(other.getListValuesList())) return false;
|
||||
if (!getStructValuesList()
|
||||
.equals(other.getStructValuesList())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -3019,6 +3191,14 @@ public final class Columns {
|
||||
hash = (37 * hash) + DECIMAL128_VALUES_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDecimal128ValuesList().hashCode();
|
||||
}
|
||||
if (getListValuesCount() > 0) {
|
||||
hash = (37 * hash) + LIST_VALUES_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getListValuesList().hashCode();
|
||||
}
|
||||
if (getStructValuesCount() > 0) {
|
||||
hash = (37 * hash) + STRUCT_VALUES_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getStructValuesList().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -3149,6 +3329,8 @@ public final class Columns {
|
||||
.alwaysUseFieldBuilders) {
|
||||
getIntervalMonthDayNanoValuesFieldBuilder();
|
||||
getDecimal128ValuesFieldBuilder();
|
||||
getListValuesFieldBuilder();
|
||||
getStructValuesFieldBuilder();
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
@@ -3216,6 +3398,18 @@ public final class Columns {
|
||||
} else {
|
||||
decimal128ValuesBuilder_.clear();
|
||||
}
|
||||
if (listValuesBuilder_ == null) {
|
||||
listValues_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x08000000);
|
||||
} else {
|
||||
listValuesBuilder_.clear();
|
||||
}
|
||||
if (structValuesBuilder_ == null) {
|
||||
structValues_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x10000000);
|
||||
} else {
|
||||
structValuesBuilder_.clear();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -3386,6 +3580,24 @@ public final class Columns {
|
||||
} else {
|
||||
result.decimal128Values_ = decimal128ValuesBuilder_.build();
|
||||
}
|
||||
if (listValuesBuilder_ == null) {
|
||||
if (((bitField0_ & 0x08000000) != 0)) {
|
||||
listValues_ = java.util.Collections.unmodifiableList(listValues_);
|
||||
bitField0_ = (bitField0_ & ~0x08000000);
|
||||
}
|
||||
result.listValues_ = listValues_;
|
||||
} else {
|
||||
result.listValues_ = listValuesBuilder_.build();
|
||||
}
|
||||
if (structValuesBuilder_ == null) {
|
||||
if (((bitField0_ & 0x10000000) != 0)) {
|
||||
structValues_ = java.util.Collections.unmodifiableList(structValues_);
|
||||
bitField0_ = (bitField0_ & ~0x10000000);
|
||||
}
|
||||
result.structValues_ = structValues_;
|
||||
} else {
|
||||
result.structValues_ = structValuesBuilder_.build();
|
||||
}
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -3736,6 +3948,58 @@ public final class Columns {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (listValuesBuilder_ == null) {
|
||||
if (!other.listValues_.isEmpty()) {
|
||||
if (listValues_.isEmpty()) {
|
||||
listValues_ = other.listValues_;
|
||||
bitField0_ = (bitField0_ & ~0x08000000);
|
||||
} else {
|
||||
ensureListValuesIsMutable();
|
||||
listValues_.addAll(other.listValues_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
} else {
|
||||
if (!other.listValues_.isEmpty()) {
|
||||
if (listValuesBuilder_.isEmpty()) {
|
||||
listValuesBuilder_.dispose();
|
||||
listValuesBuilder_ = null;
|
||||
listValues_ = other.listValues_;
|
||||
bitField0_ = (bitField0_ & ~0x08000000);
|
||||
listValuesBuilder_ =
|
||||
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
||||
getListValuesFieldBuilder() : null;
|
||||
} else {
|
||||
listValuesBuilder_.addAllMessages(other.listValues_);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (structValuesBuilder_ == null) {
|
||||
if (!other.structValues_.isEmpty()) {
|
||||
if (structValues_.isEmpty()) {
|
||||
structValues_ = other.structValues_;
|
||||
bitField0_ = (bitField0_ & ~0x10000000);
|
||||
} else {
|
||||
ensureStructValuesIsMutable();
|
||||
structValues_.addAll(other.structValues_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
} else {
|
||||
if (!other.structValues_.isEmpty()) {
|
||||
if (structValuesBuilder_.isEmpty()) {
|
||||
structValuesBuilder_.dispose();
|
||||
structValuesBuilder_ = null;
|
||||
structValues_ = other.structValues_;
|
||||
bitField0_ = (bitField0_ & ~0x10000000);
|
||||
structValuesBuilder_ =
|
||||
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
||||
getStructValuesFieldBuilder() : null;
|
||||
} else {
|
||||
structValuesBuilder_.addAllMessages(other.structValues_);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -6257,6 +6521,486 @@ public final class Columns {
|
||||
}
|
||||
return decimal128ValuesBuilder_;
|
||||
}
|
||||
|
||||
private java.util.List<io.greptime.v1.RowData.ListValue> listValues_ =
|
||||
java.util.Collections.emptyList();
|
||||
private void ensureListValuesIsMutable() {
|
||||
if (!((bitField0_ & 0x08000000) != 0)) {
|
||||
listValues_ = new java.util.ArrayList<io.greptime.v1.RowData.ListValue>(listValues_);
|
||||
bitField0_ |= 0x08000000;
|
||||
}
|
||||
}
|
||||
|
||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder> listValuesBuilder_;
|
||||
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public java.util.List<io.greptime.v1.RowData.ListValue> getListValuesList() {
|
||||
if (listValuesBuilder_ == null) {
|
||||
return java.util.Collections.unmodifiableList(listValues_);
|
||||
} else {
|
||||
return listValuesBuilder_.getMessageList();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public int getListValuesCount() {
|
||||
if (listValuesBuilder_ == null) {
|
||||
return listValues_.size();
|
||||
} else {
|
||||
return listValuesBuilder_.getCount();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.ListValue getListValues(int index) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
return listValues_.get(index);
|
||||
} else {
|
||||
return listValuesBuilder_.getMessage(index);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder setListValues(
|
||||
int index, io.greptime.v1.RowData.ListValue value) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureListValuesIsMutable();
|
||||
listValues_.set(index, value);
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.setMessage(index, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder setListValues(
|
||||
int index, io.greptime.v1.RowData.ListValue.Builder builderForValue) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
ensureListValuesIsMutable();
|
||||
listValues_.set(index, builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.setMessage(index, builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder addListValues(io.greptime.v1.RowData.ListValue value) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureListValuesIsMutable();
|
||||
listValues_.add(value);
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.addMessage(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder addListValues(
|
||||
int index, io.greptime.v1.RowData.ListValue value) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureListValuesIsMutable();
|
||||
listValues_.add(index, value);
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.addMessage(index, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder addListValues(
|
||||
io.greptime.v1.RowData.ListValue.Builder builderForValue) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
ensureListValuesIsMutable();
|
||||
listValues_.add(builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.addMessage(builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder addListValues(
|
||||
int index, io.greptime.v1.RowData.ListValue.Builder builderForValue) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
ensureListValuesIsMutable();
|
||||
listValues_.add(index, builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.addMessage(index, builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder addAllListValues(
|
||||
java.lang.Iterable<? extends io.greptime.v1.RowData.ListValue> values) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
ensureListValuesIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, listValues_);
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.addAllMessages(values);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder clearListValues() {
|
||||
if (listValuesBuilder_ == null) {
|
||||
listValues_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x08000000);
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.clear();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public Builder removeListValues(int index) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
ensureListValuesIsMutable();
|
||||
listValues_.remove(index);
|
||||
onChanged();
|
||||
} else {
|
||||
listValuesBuilder_.remove(index);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.ListValue.Builder getListValuesBuilder(
|
||||
int index) {
|
||||
return getListValuesFieldBuilder().getBuilder(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.ListValueOrBuilder getListValuesOrBuilder(
|
||||
int index) {
|
||||
if (listValuesBuilder_ == null) {
|
||||
return listValues_.get(index); } else {
|
||||
return listValuesBuilder_.getMessageOrBuilder(index);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public java.util.List<? extends io.greptime.v1.RowData.ListValueOrBuilder>
|
||||
getListValuesOrBuilderList() {
|
||||
if (listValuesBuilder_ != null) {
|
||||
return listValuesBuilder_.getMessageOrBuilderList();
|
||||
} else {
|
||||
return java.util.Collections.unmodifiableList(listValues_);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.ListValue.Builder addListValuesBuilder() {
|
||||
return getListValuesFieldBuilder().addBuilder(
|
||||
io.greptime.v1.RowData.ListValue.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.ListValue.Builder addListValuesBuilder(
|
||||
int index) {
|
||||
return getListValuesFieldBuilder().addBuilder(
|
||||
index, io.greptime.v1.RowData.ListValue.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.ListValue list_values = 40;</code>
|
||||
*/
|
||||
public java.util.List<io.greptime.v1.RowData.ListValue.Builder>
|
||||
getListValuesBuilderList() {
|
||||
return getListValuesFieldBuilder().getBuilderList();
|
||||
}
|
||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder>
|
||||
getListValuesFieldBuilder() {
|
||||
if (listValuesBuilder_ == null) {
|
||||
listValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder>(
|
||||
listValues_,
|
||||
((bitField0_ & 0x08000000) != 0),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
listValues_ = null;
|
||||
}
|
||||
return listValuesBuilder_;
|
||||
}
|
||||
|
||||
private java.util.List<io.greptime.v1.RowData.StructValue> structValues_ =
|
||||
java.util.Collections.emptyList();
|
||||
private void ensureStructValuesIsMutable() {
|
||||
if (!((bitField0_ & 0x10000000) != 0)) {
|
||||
structValues_ = new java.util.ArrayList<io.greptime.v1.RowData.StructValue>(structValues_);
|
||||
bitField0_ |= 0x10000000;
|
||||
}
|
||||
}
|
||||
|
||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder> structValuesBuilder_;
|
||||
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public java.util.List<io.greptime.v1.RowData.StructValue> getStructValuesList() {
|
||||
if (structValuesBuilder_ == null) {
|
||||
return java.util.Collections.unmodifiableList(structValues_);
|
||||
} else {
|
||||
return structValuesBuilder_.getMessageList();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public int getStructValuesCount() {
|
||||
if (structValuesBuilder_ == null) {
|
||||
return structValues_.size();
|
||||
} else {
|
||||
return structValuesBuilder_.getCount();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.StructValue getStructValues(int index) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
return structValues_.get(index);
|
||||
} else {
|
||||
return structValuesBuilder_.getMessage(index);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder setStructValues(
|
||||
int index, io.greptime.v1.RowData.StructValue value) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureStructValuesIsMutable();
|
||||
structValues_.set(index, value);
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.setMessage(index, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder setStructValues(
|
||||
int index, io.greptime.v1.RowData.StructValue.Builder builderForValue) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
ensureStructValuesIsMutable();
|
||||
structValues_.set(index, builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.setMessage(index, builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder addStructValues(io.greptime.v1.RowData.StructValue value) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureStructValuesIsMutable();
|
||||
structValues_.add(value);
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.addMessage(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder addStructValues(
|
||||
int index, io.greptime.v1.RowData.StructValue value) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureStructValuesIsMutable();
|
||||
structValues_.add(index, value);
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.addMessage(index, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder addStructValues(
|
||||
io.greptime.v1.RowData.StructValue.Builder builderForValue) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
ensureStructValuesIsMutable();
|
||||
structValues_.add(builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.addMessage(builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder addStructValues(
|
||||
int index, io.greptime.v1.RowData.StructValue.Builder builderForValue) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
ensureStructValuesIsMutable();
|
||||
structValues_.add(index, builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.addMessage(index, builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder addAllStructValues(
|
||||
java.lang.Iterable<? extends io.greptime.v1.RowData.StructValue> values) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
ensureStructValuesIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, structValues_);
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.addAllMessages(values);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder clearStructValues() {
|
||||
if (structValuesBuilder_ == null) {
|
||||
structValues_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x10000000);
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.clear();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public Builder removeStructValues(int index) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
ensureStructValuesIsMutable();
|
||||
structValues_.remove(index);
|
||||
onChanged();
|
||||
} else {
|
||||
structValuesBuilder_.remove(index);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.StructValue.Builder getStructValuesBuilder(
|
||||
int index) {
|
||||
return getStructValuesFieldBuilder().getBuilder(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.StructValueOrBuilder getStructValuesOrBuilder(
|
||||
int index) {
|
||||
if (structValuesBuilder_ == null) {
|
||||
return structValues_.get(index); } else {
|
||||
return structValuesBuilder_.getMessageOrBuilder(index);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public java.util.List<? extends io.greptime.v1.RowData.StructValueOrBuilder>
|
||||
getStructValuesOrBuilderList() {
|
||||
if (structValuesBuilder_ != null) {
|
||||
return structValuesBuilder_.getMessageOrBuilderList();
|
||||
} else {
|
||||
return java.util.Collections.unmodifiableList(structValues_);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.StructValue.Builder addStructValuesBuilder() {
|
||||
return getStructValuesFieldBuilder().addBuilder(
|
||||
io.greptime.v1.RowData.StructValue.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public io.greptime.v1.RowData.StructValue.Builder addStructValuesBuilder(
|
||||
int index) {
|
||||
return getStructValuesFieldBuilder().addBuilder(
|
||||
index, io.greptime.v1.RowData.StructValue.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <code>repeated .greptime.v1.StructValue struct_values = 41;</code>
|
||||
*/
|
||||
public java.util.List<io.greptime.v1.RowData.StructValue.Builder>
|
||||
getStructValuesBuilderList() {
|
||||
return getStructValuesFieldBuilder().getBuilderList();
|
||||
}
|
||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder>
|
||||
getStructValuesFieldBuilder() {
|
||||
if (structValuesBuilder_ == null) {
|
||||
structValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder>(
|
||||
structValues_,
|
||||
((bitField0_ & 0x10000000) != 0),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
structValues_ = null;
|
||||
}
|
||||
return structValuesBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -7843,42 +8587,46 @@ public final class Columns {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\030greptime/v1/column.proto\022\013greptime.v1\032" +
|
||||
"\030greptime/v1/common.proto\"\303\010\n\006Column\022\023\n\013" +
|
||||
"column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016" +
|
||||
"2\031.greptime.v1.SemanticType\022*\n\006values\030\003 " +
|
||||
"\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_" +
|
||||
"mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime." +
|
||||
"v1.ColumnDataType\022@\n\022datatype_extension\030" +
|
||||
"\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens" +
|
||||
"ion\022+\n\007options\030\007 \001(\0132\032.greptime.v1.Colum" +
|
||||
"nOptions\032\224\006\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022" +
|
||||
"\n\ni16_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022" +
|
||||
"\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n" +
|
||||
"\nu16_values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n" +
|
||||
"\nu64_values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n" +
|
||||
"\nf64_values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025" +
|
||||
"\n\rbinary_values\030\014 \003(\014\022\025\n\rstring_values\030\r" +
|
||||
" \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_va" +
|
||||
"lues\030\017 \003(\003\022\037\n\027timestamp_second_values\030\020 " +
|
||||
"\003(\003\022$\n\034timestamp_millisecond_values\030\021 \003(" +
|
||||
"\003\022$\n\034timestamp_microsecond_values\030\022 \003(\003\022" +
|
||||
"#\n\033timestamp_nanosecond_values\030\023 \003(\003\022\032\n\022" +
|
||||
"time_second_values\030\024 \003(\003\022\037\n\027time_millise" +
|
||||
"cond_values\030\025 \003(\003\022\037\n\027time_microsecond_va" +
|
||||
"lues\030\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003" +
|
||||
"(\003\022\"\n\032interval_year_month_values\030\030 \003(\005\022 " +
|
||||
"\n\030interval_day_time_values\030\031 \003(\003\022I\n\036inte" +
|
||||
"rval_month_day_nano_values\030\032 \003(\0132!.grept" +
|
||||
"ime.v1.IntervalMonthDayNano\0222\n\021decimal12" +
|
||||
"8_values\030\037 \003(\0132\027.greptime.v1.Decimal128B" +
|
||||
"P\n\016io.greptime.v1B\007ColumnsZ5github.com/G" +
|
||||
"reptimeTeam/greptime-proto/go/greptime/v" +
|
||||
"1b\006proto3"
|
||||
"\030greptime/v1/common.proto\032\025greptime/v1/r" +
|
||||
"ow.proto\"\241\t\n\006Column\022\023\n\013column_name\030\001 \001(\t" +
|
||||
"\0220\n\rsemantic_type\030\002 \001(\0162\031.greptime.v1.Se" +
|
||||
"manticType\022*\n\006values\030\003 \001(\0132\032.greptime.v1" +
|
||||
".Column.Values\022\021\n\tnull_mask\030\004 \001(\014\022-\n\010dat" +
|
||||
"atype\030\005 \001(\0162\033.greptime.v1.ColumnDataType" +
|
||||
"\022@\n\022datatype_extension\030\006 \001(\0132$.greptime." +
|
||||
"v1.ColumnDataTypeExtension\022+\n\007options\030\007 " +
|
||||
"\001(\0132\032.greptime.v1.ColumnOptions\032\362\006\n\006Valu" +
|
||||
"es\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(" +
|
||||
"\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64_values\030\004 \003(" +
|
||||
"\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_values\030\006 \003(\r" +
|
||||
"\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_values\030\010 \003(\004" +
|
||||
"\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_values\030\n \003(\001" +
|
||||
"\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbinary_values\030\014" +
|
||||
" \003(\014\022\025\n\rstring_values\030\r \003(\t\022\023\n\013date_valu" +
|
||||
"es\030\016 \003(\005\022\027\n\017datetime_values\030\017 \003(\003\022\037\n\027tim" +
|
||||
"estamp_second_values\030\020 \003(\003\022$\n\034timestamp_" +
|
||||
"millisecond_values\030\021 \003(\003\022$\n\034timestamp_mi" +
|
||||
"crosecond_values\030\022 \003(\003\022#\n\033timestamp_nano" +
|
||||
"second_values\030\023 \003(\003\022\032\n\022time_second_value" +
|
||||
"s\030\024 \003(\003\022\037\n\027time_millisecond_values\030\025 \003(\003" +
|
||||
"\022\037\n\027time_microsecond_values\030\026 \003(\003\022\036\n\026tim" +
|
||||
"e_nanosecond_values\030\027 \003(\003\022\"\n\032interval_ye" +
|
||||
"ar_month_values\030\030 \003(\005\022 \n\030interval_day_ti" +
|
||||
"me_values\030\031 \003(\003\022I\n\036interval_month_day_na" +
|
||||
"no_values\030\032 \003(\0132!.greptime.v1.IntervalMo" +
|
||||
"nthDayNano\0222\n\021decimal128_values\030\037 \003(\0132\027." +
|
||||
"greptime.v1.Decimal128\022+\n\013list_values\030( " +
|
||||
"\003(\0132\026.greptime.v1.ListValue\022/\n\rstruct_va" +
|
||||
"lues\030) \003(\0132\030.greptime.v1.StructValueBP\n\016" +
|
||||
"io.greptime.v1B\007ColumnsZ5github.com/Grep" +
|
||||
"timeTeam/greptime-proto/go/greptime/v1b\006" +
|
||||
"proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
io.greptime.v1.Common.getDescriptor(),
|
||||
io.greptime.v1.RowData.getDescriptor(),
|
||||
});
|
||||
internal_static_greptime_v1_Column_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
@@ -7891,8 +8639,9 @@ public final class Columns {
|
||||
internal_static_greptime_v1_Column_Values_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_Column_Values_descriptor,
|
||||
new java.lang.String[] { "I8Values", "I16Values", "I32Values", "I64Values", "U8Values", "U16Values", "U32Values", "U64Values", "F32Values", "F64Values", "BoolValues", "BinaryValues", "StringValues", "DateValues", "DatetimeValues", "TimestampSecondValues", "TimestampMillisecondValues", "TimestampMicrosecondValues", "TimestampNanosecondValues", "TimeSecondValues", "TimeMillisecondValues", "TimeMicrosecondValues", "TimeNanosecondValues", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "Decimal128Values", });
|
||||
new java.lang.String[] { "I8Values", "I16Values", "I32Values", "I64Values", "U8Values", "U16Values", "U32Values", "U64Values", "F32Values", "F64Values", "BoolValues", "BinaryValues", "StringValues", "DateValues", "DatetimeValues", "TimestampSecondValues", "TimestampMillisecondValues", "TimestampMicrosecondValues", "TimestampNanosecondValues", "TimeSecondValues", "TimeMillisecondValues", "TimeMicrosecondValues", "TimeNanosecondValues", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "Decimal128Values", "ListValues", "StructValues", });
|
||||
io.greptime.v1.Common.getDescriptor();
|
||||
io.greptime.v1.RowData.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user