feat: add duration column. (#105)

This commit is contained in:
Wei
2023-09-18 19:08:44 +08:00
committed by GitHub
parent 637c54338f
commit 9d3f28d07d
15 changed files with 2292 additions and 59 deletions
+782 -7
View File
@@ -699,6 +699,74 @@ public final class Columns {
*/
io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValuesOrBuilder(
int index);
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @return A list containing the durationSecondValues.
*/
java.util.List<java.lang.Long> getDurationSecondValuesList();
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @return The count of durationSecondValues.
*/
int getDurationSecondValuesCount();
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @param index The index of the element to return.
* @return The durationSecondValues at the given index.
*/
long getDurationSecondValues(int index);
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @return A list containing the durationMillisecondValues.
*/
java.util.List<java.lang.Long> getDurationMillisecondValuesList();
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @return The count of durationMillisecondValues.
*/
int getDurationMillisecondValuesCount();
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @param index The index of the element to return.
* @return The durationMillisecondValues at the given index.
*/
long getDurationMillisecondValues(int index);
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @return A list containing the durationMicrosecondValues.
*/
java.util.List<java.lang.Long> getDurationMicrosecondValuesList();
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @return The count of durationMicrosecondValues.
*/
int getDurationMicrosecondValuesCount();
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @param index The index of the element to return.
* @return The durationMicrosecondValues at the given index.
*/
long getDurationMicrosecondValues(int index);
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @return A list containing the durationNanosecondValues.
*/
java.util.List<java.lang.Long> getDurationNanosecondValuesList();
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @return The count of durationNanosecondValues.
*/
int getDurationNanosecondValuesCount();
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @param index The index of the element to return.
* @return The durationNanosecondValues at the given index.
*/
long getDurationNanosecondValues(int index);
}
/**
* Protobuf type {@code greptime.v1.Column.Values}
@@ -739,6 +807,10 @@ public final class Columns {
intervalYearMonthValues_ = emptyIntList();
intervalDayTimeValues_ = emptyLongList();
intervalMonthDayNanoValues_ = java.util.Collections.emptyList();
durationSecondValues_ = emptyLongList();
durationMillisecondValues_ = emptyLongList();
durationMicrosecondValues_ = emptyLongList();
durationNanosecondValues_ = emptyLongList();
}
@java.lang.Override
@@ -1281,6 +1353,90 @@ public final class Columns {
input.readMessage(io.greptime.v1.Common.IntervalMonthDayNano.parser(), extensionRegistry));
break;
}
case 216: {
if (!((mutable_bitField0_ & 0x04000000) != 0)) {
durationSecondValues_ = newLongList();
mutable_bitField0_ |= 0x04000000;
}
durationSecondValues_.addLong(input.readInt64());
break;
}
case 218: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x04000000) != 0) && input.getBytesUntilLimit() > 0) {
durationSecondValues_ = newLongList();
mutable_bitField0_ |= 0x04000000;
}
while (input.getBytesUntilLimit() > 0) {
durationSecondValues_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 224: {
if (!((mutable_bitField0_ & 0x08000000) != 0)) {
durationMillisecondValues_ = newLongList();
mutable_bitField0_ |= 0x08000000;
}
durationMillisecondValues_.addLong(input.readInt64());
break;
}
case 226: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x08000000) != 0) && input.getBytesUntilLimit() > 0) {
durationMillisecondValues_ = newLongList();
mutable_bitField0_ |= 0x08000000;
}
while (input.getBytesUntilLimit() > 0) {
durationMillisecondValues_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 232: {
if (!((mutable_bitField0_ & 0x10000000) != 0)) {
durationMicrosecondValues_ = newLongList();
mutable_bitField0_ |= 0x10000000;
}
durationMicrosecondValues_.addLong(input.readInt64());
break;
}
case 234: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x10000000) != 0) && input.getBytesUntilLimit() > 0) {
durationMicrosecondValues_ = newLongList();
mutable_bitField0_ |= 0x10000000;
}
while (input.getBytesUntilLimit() > 0) {
durationMicrosecondValues_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 240: {
if (!((mutable_bitField0_ & 0x20000000) != 0)) {
durationNanosecondValues_ = newLongList();
mutable_bitField0_ |= 0x20000000;
}
durationNanosecondValues_.addLong(input.readInt64());
break;
}
case 242: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x20000000) != 0) && input.getBytesUntilLimit() > 0) {
durationNanosecondValues_ = newLongList();
mutable_bitField0_ |= 0x20000000;
}
while (input.getBytesUntilLimit() > 0) {
durationNanosecondValues_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -1376,6 +1532,18 @@ public final class Columns {
if (((mutable_bitField0_ & 0x02000000) != 0)) {
intervalMonthDayNanoValues_ = java.util.Collections.unmodifiableList(intervalMonthDayNanoValues_);
}
if (((mutable_bitField0_ & 0x04000000) != 0)) {
durationSecondValues_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x08000000) != 0)) {
durationMillisecondValues_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x10000000) != 0)) {
durationMicrosecondValues_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x20000000) != 0)) {
durationNanosecondValues_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -2139,6 +2307,118 @@ public final class Columns {
return intervalMonthDayNanoValues_.get(index);
}
public static final int DURATION_SECOND_VALUES_FIELD_NUMBER = 27;
private com.google.protobuf.Internal.LongList durationSecondValues_;
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @return A list containing the durationSecondValues.
*/
@java.lang.Override
public java.util.List<java.lang.Long>
getDurationSecondValuesList() {
return durationSecondValues_;
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @return The count of durationSecondValues.
*/
public int getDurationSecondValuesCount() {
return durationSecondValues_.size();
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @param index The index of the element to return.
* @return The durationSecondValues at the given index.
*/
public long getDurationSecondValues(int index) {
return durationSecondValues_.getLong(index);
}
private int durationSecondValuesMemoizedSerializedSize = -1;
public static final int DURATION_MILLISECOND_VALUES_FIELD_NUMBER = 28;
private com.google.protobuf.Internal.LongList durationMillisecondValues_;
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @return A list containing the durationMillisecondValues.
*/
@java.lang.Override
public java.util.List<java.lang.Long>
getDurationMillisecondValuesList() {
return durationMillisecondValues_;
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @return The count of durationMillisecondValues.
*/
public int getDurationMillisecondValuesCount() {
return durationMillisecondValues_.size();
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @param index The index of the element to return.
* @return The durationMillisecondValues at the given index.
*/
public long getDurationMillisecondValues(int index) {
return durationMillisecondValues_.getLong(index);
}
private int durationMillisecondValuesMemoizedSerializedSize = -1;
public static final int DURATION_MICROSECOND_VALUES_FIELD_NUMBER = 29;
private com.google.protobuf.Internal.LongList durationMicrosecondValues_;
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @return A list containing the durationMicrosecondValues.
*/
@java.lang.Override
public java.util.List<java.lang.Long>
getDurationMicrosecondValuesList() {
return durationMicrosecondValues_;
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @return The count of durationMicrosecondValues.
*/
public int getDurationMicrosecondValuesCount() {
return durationMicrosecondValues_.size();
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @param index The index of the element to return.
* @return The durationMicrosecondValues at the given index.
*/
public long getDurationMicrosecondValues(int index) {
return durationMicrosecondValues_.getLong(index);
}
private int durationMicrosecondValuesMemoizedSerializedSize = -1;
public static final int DURATION_NANOSECOND_VALUES_FIELD_NUMBER = 30;
private com.google.protobuf.Internal.LongList durationNanosecondValues_;
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @return A list containing the durationNanosecondValues.
*/
@java.lang.Override
public java.util.List<java.lang.Long>
getDurationNanosecondValuesList() {
return durationNanosecondValues_;
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @return The count of durationNanosecondValues.
*/
public int getDurationNanosecondValuesCount() {
return durationNanosecondValues_.size();
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @param index The index of the element to return.
* @return The durationNanosecondValues at the given index.
*/
public long getDurationNanosecondValues(int index) {
return durationNanosecondValues_.getLong(index);
}
private int durationNanosecondValuesMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -2324,6 +2604,34 @@ public final class Columns {
for (int i = 0; i < intervalMonthDayNanoValues_.size(); i++) {
output.writeMessage(26, intervalMonthDayNanoValues_.get(i));
}
if (getDurationSecondValuesList().size() > 0) {
output.writeUInt32NoTag(218);
output.writeUInt32NoTag(durationSecondValuesMemoizedSerializedSize);
}
for (int i = 0; i < durationSecondValues_.size(); i++) {
output.writeInt64NoTag(durationSecondValues_.getLong(i));
}
if (getDurationMillisecondValuesList().size() > 0) {
output.writeUInt32NoTag(226);
output.writeUInt32NoTag(durationMillisecondValuesMemoizedSerializedSize);
}
for (int i = 0; i < durationMillisecondValues_.size(); i++) {
output.writeInt64NoTag(durationMillisecondValues_.getLong(i));
}
if (getDurationMicrosecondValuesList().size() > 0) {
output.writeUInt32NoTag(234);
output.writeUInt32NoTag(durationMicrosecondValuesMemoizedSerializedSize);
}
for (int i = 0; i < durationMicrosecondValues_.size(); i++) {
output.writeInt64NoTag(durationMicrosecondValues_.getLong(i));
}
if (getDurationNanosecondValuesList().size() > 0) {
output.writeUInt32NoTag(242);
output.writeUInt32NoTag(durationNanosecondValuesMemoizedSerializedSize);
}
for (int i = 0; i < durationNanosecondValues_.size(); i++) {
output.writeInt64NoTag(durationNanosecondValues_.getLong(i));
}
unknownFields.writeTo(output);
}
@@ -2667,6 +2975,62 @@ public final class Columns {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, intervalMonthDayNanoValues_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < durationSecondValues_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(durationSecondValues_.getLong(i));
}
size += dataSize;
if (!getDurationSecondValuesList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
durationSecondValuesMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < durationMillisecondValues_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(durationMillisecondValues_.getLong(i));
}
size += dataSize;
if (!getDurationMillisecondValuesList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
durationMillisecondValuesMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < durationMicrosecondValues_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(durationMicrosecondValues_.getLong(i));
}
size += dataSize;
if (!getDurationMicrosecondValuesList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
durationMicrosecondValuesMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < durationNanosecondValues_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(durationNanosecondValues_.getLong(i));
}
size += dataSize;
if (!getDurationNanosecondValuesList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
durationNanosecondValuesMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -2734,6 +3098,14 @@ public final class Columns {
.equals(other.getIntervalDayTimeValuesList())) return false;
if (!getIntervalMonthDayNanoValuesList()
.equals(other.getIntervalMonthDayNanoValuesList())) return false;
if (!getDurationSecondValuesList()
.equals(other.getDurationSecondValuesList())) return false;
if (!getDurationMillisecondValuesList()
.equals(other.getDurationMillisecondValuesList())) return false;
if (!getDurationMicrosecondValuesList()
.equals(other.getDurationMicrosecondValuesList())) return false;
if (!getDurationNanosecondValuesList()
.equals(other.getDurationNanosecondValuesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2849,6 +3221,22 @@ public final class Columns {
hash = (37 * hash) + INTERVAL_MONTH_DAY_NANO_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getIntervalMonthDayNanoValuesList().hashCode();
}
if (getDurationSecondValuesCount() > 0) {
hash = (37 * hash) + DURATION_SECOND_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getDurationSecondValuesList().hashCode();
}
if (getDurationMillisecondValuesCount() > 0) {
hash = (37 * hash) + DURATION_MILLISECOND_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getDurationMillisecondValuesList().hashCode();
}
if (getDurationMicrosecondValuesCount() > 0) {
hash = (37 * hash) + DURATION_MICROSECOND_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getDurationMicrosecondValuesList().hashCode();
}
if (getDurationNanosecondValuesCount() > 0) {
hash = (37 * hash) + DURATION_NANOSECOND_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getDurationNanosecondValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -3039,6 +3427,14 @@ public final class Columns {
} else {
intervalMonthDayNanoValuesBuilder_.clear();
}
durationSecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x04000000);
durationMillisecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x08000000);
durationMicrosecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x10000000);
durationNanosecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x20000000);
return this;
}
@@ -3200,6 +3596,26 @@ public final class Columns {
} else {
result.intervalMonthDayNanoValues_ = intervalMonthDayNanoValuesBuilder_.build();
}
if (((bitField0_ & 0x04000000) != 0)) {
durationSecondValues_.makeImmutable();
bitField0_ = (bitField0_ & ~0x04000000);
}
result.durationSecondValues_ = durationSecondValues_;
if (((bitField0_ & 0x08000000) != 0)) {
durationMillisecondValues_.makeImmutable();
bitField0_ = (bitField0_ & ~0x08000000);
}
result.durationMillisecondValues_ = durationMillisecondValues_;
if (((bitField0_ & 0x10000000) != 0)) {
durationMicrosecondValues_.makeImmutable();
bitField0_ = (bitField0_ & ~0x10000000);
}
result.durationMicrosecondValues_ = durationMicrosecondValues_;
if (((bitField0_ & 0x20000000) != 0)) {
durationNanosecondValues_.makeImmutable();
bitField0_ = (bitField0_ & ~0x20000000);
}
result.durationNanosecondValues_ = durationNanosecondValues_;
onBuilt();
return result;
}
@@ -3524,6 +3940,46 @@ public final class Columns {
}
}
}
if (!other.durationSecondValues_.isEmpty()) {
if (durationSecondValues_.isEmpty()) {
durationSecondValues_ = other.durationSecondValues_;
bitField0_ = (bitField0_ & ~0x04000000);
} else {
ensureDurationSecondValuesIsMutable();
durationSecondValues_.addAll(other.durationSecondValues_);
}
onChanged();
}
if (!other.durationMillisecondValues_.isEmpty()) {
if (durationMillisecondValues_.isEmpty()) {
durationMillisecondValues_ = other.durationMillisecondValues_;
bitField0_ = (bitField0_ & ~0x08000000);
} else {
ensureDurationMillisecondValuesIsMutable();
durationMillisecondValues_.addAll(other.durationMillisecondValues_);
}
onChanged();
}
if (!other.durationMicrosecondValues_.isEmpty()) {
if (durationMicrosecondValues_.isEmpty()) {
durationMicrosecondValues_ = other.durationMicrosecondValues_;
bitField0_ = (bitField0_ & ~0x10000000);
} else {
ensureDurationMicrosecondValuesIsMutable();
durationMicrosecondValues_.addAll(other.durationMicrosecondValues_);
}
onChanged();
}
if (!other.durationNanosecondValues_.isEmpty()) {
if (durationNanosecondValues_.isEmpty()) {
durationNanosecondValues_ = other.durationNanosecondValues_;
bitField0_ = (bitField0_ & ~0x20000000);
} else {
ensureDurationNanosecondValuesIsMutable();
durationNanosecondValues_.addAll(other.durationNanosecondValues_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -5805,6 +6261,322 @@ public final class Columns {
}
return intervalMonthDayNanoValuesBuilder_;
}
private com.google.protobuf.Internal.LongList durationSecondValues_ = emptyLongList();
private void ensureDurationSecondValuesIsMutable() {
if (!((bitField0_ & 0x04000000) != 0)) {
durationSecondValues_ = mutableCopy(durationSecondValues_);
bitField0_ |= 0x04000000;
}
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @return A list containing the durationSecondValues.
*/
public java.util.List<java.lang.Long>
getDurationSecondValuesList() {
return ((bitField0_ & 0x04000000) != 0) ?
java.util.Collections.unmodifiableList(durationSecondValues_) : durationSecondValues_;
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @return The count of durationSecondValues.
*/
public int getDurationSecondValuesCount() {
return durationSecondValues_.size();
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @param index The index of the element to return.
* @return The durationSecondValues at the given index.
*/
public long getDurationSecondValues(int index) {
return durationSecondValues_.getLong(index);
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @param index The index to set the value at.
* @param value The durationSecondValues to set.
* @return This builder for chaining.
*/
public Builder setDurationSecondValues(
int index, long value) {
ensureDurationSecondValuesIsMutable();
durationSecondValues_.setLong(index, value);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @param value The durationSecondValues to add.
* @return This builder for chaining.
*/
public Builder addDurationSecondValues(long value) {
ensureDurationSecondValuesIsMutable();
durationSecondValues_.addLong(value);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @param values The durationSecondValues to add.
* @return This builder for chaining.
*/
public Builder addAllDurationSecondValues(
java.lang.Iterable<? extends java.lang.Long> values) {
ensureDurationSecondValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, durationSecondValues_);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_second_values = 27;</code>
* @return This builder for chaining.
*/
public Builder clearDurationSecondValues() {
durationSecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x04000000);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList durationMillisecondValues_ = emptyLongList();
private void ensureDurationMillisecondValuesIsMutable() {
if (!((bitField0_ & 0x08000000) != 0)) {
durationMillisecondValues_ = mutableCopy(durationMillisecondValues_);
bitField0_ |= 0x08000000;
}
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @return A list containing the durationMillisecondValues.
*/
public java.util.List<java.lang.Long>
getDurationMillisecondValuesList() {
return ((bitField0_ & 0x08000000) != 0) ?
java.util.Collections.unmodifiableList(durationMillisecondValues_) : durationMillisecondValues_;
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @return The count of durationMillisecondValues.
*/
public int getDurationMillisecondValuesCount() {
return durationMillisecondValues_.size();
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @param index The index of the element to return.
* @return The durationMillisecondValues at the given index.
*/
public long getDurationMillisecondValues(int index) {
return durationMillisecondValues_.getLong(index);
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @param index The index to set the value at.
* @param value The durationMillisecondValues to set.
* @return This builder for chaining.
*/
public Builder setDurationMillisecondValues(
int index, long value) {
ensureDurationMillisecondValuesIsMutable();
durationMillisecondValues_.setLong(index, value);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @param value The durationMillisecondValues to add.
* @return This builder for chaining.
*/
public Builder addDurationMillisecondValues(long value) {
ensureDurationMillisecondValuesIsMutable();
durationMillisecondValues_.addLong(value);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @param values The durationMillisecondValues to add.
* @return This builder for chaining.
*/
public Builder addAllDurationMillisecondValues(
java.lang.Iterable<? extends java.lang.Long> values) {
ensureDurationMillisecondValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, durationMillisecondValues_);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_millisecond_values = 28;</code>
* @return This builder for chaining.
*/
public Builder clearDurationMillisecondValues() {
durationMillisecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x08000000);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList durationMicrosecondValues_ = emptyLongList();
private void ensureDurationMicrosecondValuesIsMutable() {
if (!((bitField0_ & 0x10000000) != 0)) {
durationMicrosecondValues_ = mutableCopy(durationMicrosecondValues_);
bitField0_ |= 0x10000000;
}
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @return A list containing the durationMicrosecondValues.
*/
public java.util.List<java.lang.Long>
getDurationMicrosecondValuesList() {
return ((bitField0_ & 0x10000000) != 0) ?
java.util.Collections.unmodifiableList(durationMicrosecondValues_) : durationMicrosecondValues_;
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @return The count of durationMicrosecondValues.
*/
public int getDurationMicrosecondValuesCount() {
return durationMicrosecondValues_.size();
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @param index The index of the element to return.
* @return The durationMicrosecondValues at the given index.
*/
public long getDurationMicrosecondValues(int index) {
return durationMicrosecondValues_.getLong(index);
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @param index The index to set the value at.
* @param value The durationMicrosecondValues to set.
* @return This builder for chaining.
*/
public Builder setDurationMicrosecondValues(
int index, long value) {
ensureDurationMicrosecondValuesIsMutable();
durationMicrosecondValues_.setLong(index, value);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @param value The durationMicrosecondValues to add.
* @return This builder for chaining.
*/
public Builder addDurationMicrosecondValues(long value) {
ensureDurationMicrosecondValuesIsMutable();
durationMicrosecondValues_.addLong(value);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @param values The durationMicrosecondValues to add.
* @return This builder for chaining.
*/
public Builder addAllDurationMicrosecondValues(
java.lang.Iterable<? extends java.lang.Long> values) {
ensureDurationMicrosecondValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, durationMicrosecondValues_);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_microsecond_values = 29;</code>
* @return This builder for chaining.
*/
public Builder clearDurationMicrosecondValues() {
durationMicrosecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x10000000);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList durationNanosecondValues_ = emptyLongList();
private void ensureDurationNanosecondValuesIsMutable() {
if (!((bitField0_ & 0x20000000) != 0)) {
durationNanosecondValues_ = mutableCopy(durationNanosecondValues_);
bitField0_ |= 0x20000000;
}
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @return A list containing the durationNanosecondValues.
*/
public java.util.List<java.lang.Long>
getDurationNanosecondValuesList() {
return ((bitField0_ & 0x20000000) != 0) ?
java.util.Collections.unmodifiableList(durationNanosecondValues_) : durationNanosecondValues_;
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @return The count of durationNanosecondValues.
*/
public int getDurationNanosecondValuesCount() {
return durationNanosecondValues_.size();
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @param index The index of the element to return.
* @return The durationNanosecondValues at the given index.
*/
public long getDurationNanosecondValues(int index) {
return durationNanosecondValues_.getLong(index);
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @param index The index to set the value at.
* @param value The durationNanosecondValues to set.
* @return This builder for chaining.
*/
public Builder setDurationNanosecondValues(
int index, long value) {
ensureDurationNanosecondValuesIsMutable();
durationNanosecondValues_.setLong(index, value);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @param value The durationNanosecondValues to add.
* @return This builder for chaining.
*/
public Builder addDurationNanosecondValues(long value) {
ensureDurationNanosecondValuesIsMutable();
durationNanosecondValues_.addLong(value);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @param values The durationNanosecondValues to add.
* @return This builder for chaining.
*/
public Builder addAllDurationNanosecondValues(
java.lang.Iterable<? extends java.lang.Long> values) {
ensureDurationNanosecondValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, durationNanosecondValues_);
onChanged();
return this;
}
/**
* <code>repeated int64 duration_nanosecond_values = 30;</code>
* @return This builder for chaining.
*/
public Builder clearDurationNanosecondValues() {
durationNanosecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x20000000);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -6945,12 +7717,12 @@ public final class Columns {
static {
java.lang.String[] descriptorData = {
"\n\030greptime/v1/column.proto\022\013greptime.v1\032" +
"\030greptime/v1/common.proto\"\240\007\n\006Column\022\023\n\013" +
"\030greptime/v1/common.proto\"\256\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\032\340\005\n\006Values\022\021\n\ti8_value" +
"v1.ColumnDataType\032\356\006\n\006Values\022\021\n\ti8_value" +
"s\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(\005\022\022\n\ni32_value" +
"s\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" +
@@ -6968,10 +7740,13 @@ public final class Columns {
"alues\030\027 \003(\003\022\"\n\032interval_year_month_value" +
"s\030\030 \003(\005\022 \n\030interval_day_time_values\030\031 \003(" +
"\003\022I\n\036interval_month_day_nano_values\030\032 \003(" +
"\0132!.greptime.v1.IntervalMonthDayNanoBP\n\016" +
"io.greptime.v1B\007ColumnsZ5github.com/Grep" +
"timeTeam/greptime-proto/go/greptime/v1b\006" +
"proto3"
"\0132!.greptime.v1.IntervalMonthDayNano\022\036\n\026" +
"duration_second_values\030\033 \003(\003\022#\n\033duration" +
"_millisecond_values\030\034 \003(\003\022#\n\033duration_mi" +
"crosecond_values\030\035 \003(\003\022\"\n\032duration_nanos" +
"econd_values\030\036 \003(\003BP\n\016io.greptime.v1B\007Co" +
"lumnsZ5github.com/GreptimeTeam/greptime-" +
"proto/go/greptime/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -6989,7 +7764,7 @@ 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", });
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", "DurationSecondValues", "DurationMillisecondValues", "DurationMicrosecondValues", "DurationNanosecondValues", });
io.greptime.v1.Common.getDescriptor();
}
+43 -4
View File
@@ -240,6 +240,22 @@ public final class Common {
* <code>INTERVAL_MONTH_DAY_NANO = 25;</code>
*/
INTERVAL_MONTH_DAY_NANO(25),
/**
* <code>DURATION_SECOND = 26;</code>
*/
DURATION_SECOND(26),
/**
* <code>DURATION_MILLISECOND = 27;</code>
*/
DURATION_MILLISECOND(27),
/**
* <code>DURATION_MICROSECOND = 28;</code>
*/
DURATION_MICROSECOND(28),
/**
* <code>DURATION_NANOSECOND = 29;</code>
*/
DURATION_NANOSECOND(29),
UNRECOGNIZED(-1),
;
@@ -347,6 +363,22 @@ public final class Common {
* <code>INTERVAL_MONTH_DAY_NANO = 25;</code>
*/
public static final int INTERVAL_MONTH_DAY_NANO_VALUE = 25;
/**
* <code>DURATION_SECOND = 26;</code>
*/
public static final int DURATION_SECOND_VALUE = 26;
/**
* <code>DURATION_MILLISECOND = 27;</code>
*/
public static final int DURATION_MILLISECOND_VALUE = 27;
/**
* <code>DURATION_MICROSECOND = 28;</code>
*/
public static final int DURATION_MICROSECOND_VALUE = 28;
/**
* <code>DURATION_NANOSECOND = 29;</code>
*/
public static final int DURATION_NANOSECOND_VALUE = 29;
public final int getNumber() {
@@ -399,6 +431,10 @@ public final class Common {
case 23: return INTERVAL_YEAR_MONTH;
case 24: return INTERVAL_DAY_TIME;
case 25: return INTERVAL_MONTH_DAY_NANO;
case 26: return DURATION_SECOND;
case 27: return DURATION_MILLISECOND;
case 28: return DURATION_MICROSECOND;
case 29: return DURATION_NANOSECOND;
default: return null;
}
}
@@ -7217,7 +7253,7 @@ public final class Common {
"ows\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 " +
"\001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003*1" +
"\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTI" +
"MESTAMP\020\002*\306\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020" +
"MESTAMP\020\002*\250\004\n\016ColumnDataType\022\013\n\007BOOLEAN\020" +
"\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT" +
"64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022" +
"\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n" +
@@ -7228,9 +7264,12 @@ public final class Common {
"ND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICRO" +
"SECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVA" +
"L_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n" +
"\027INTERVAL_MONTH_DAY_NANO\020\031BO\n\016io.greptim" +
"e.v1B\006CommonZ5github.com/GreptimeTeam/gr" +
"eptime-proto/go/greptime/v1b\006proto3"
"\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DURATION_S" +
"ECOND\020\032\022\030\n\024DURATION_MILLISECOND\020\033\022\030\n\024DUR" +
"ATION_MICROSECOND\020\034\022\027\n\023DURATION_NANOSECO" +
"ND\020\035BO\n\016io.greptime.v1B\006CommonZ5github.c" +
"om/GreptimeTeam/greptime-proto/go/grepti" +
"me/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
+429 -5
View File
@@ -3060,6 +3060,50 @@ public final class RowData {
*/
io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValuesOrBuilder();
/**
* <code>int64 duration_second_value = 27;</code>
* @return Whether the durationSecondValue field is set.
*/
boolean hasDurationSecondValue();
/**
* <code>int64 duration_second_value = 27;</code>
* @return The durationSecondValue.
*/
long getDurationSecondValue();
/**
* <code>int64 duration_millisecond_value = 28;</code>
* @return Whether the durationMillisecondValue field is set.
*/
boolean hasDurationMillisecondValue();
/**
* <code>int64 duration_millisecond_value = 28;</code>
* @return The durationMillisecondValue.
*/
long getDurationMillisecondValue();
/**
* <code>int64 duration_microsecond_value = 29;</code>
* @return Whether the durationMicrosecondValue field is set.
*/
boolean hasDurationMicrosecondValue();
/**
* <code>int64 duration_microsecond_value = 29;</code>
* @return The durationMicrosecondValue.
*/
long getDurationMicrosecondValue();
/**
* <code>int64 duration_nanosecond_value = 30;</code>
* @return Whether the durationNanosecondValue field is set.
*/
boolean hasDurationNanosecondValue();
/**
* <code>int64 duration_nanosecond_value = 30;</code>
* @return The durationNanosecondValue.
*/
long getDurationNanosecondValue();
public io.greptime.v1.RowData.Value.ValueDataCase getValueDataCase();
}
/**
@@ -3247,6 +3291,26 @@ public final class RowData {
valueDataCase_ = 26;
break;
}
case 216: {
valueData_ = input.readInt64();
valueDataCase_ = 27;
break;
}
case 224: {
valueData_ = input.readInt64();
valueDataCase_ = 28;
break;
}
case 232: {
valueData_ = input.readInt64();
valueDataCase_ = 29;
break;
}
case 240: {
valueData_ = input.readInt64();
valueDataCase_ = 30;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -3312,6 +3376,10 @@ public final class RowData {
INTERVAL_YEAR_MONTH_VALUES(24),
INTERVAL_DAY_TIME_VALUES(25),
INTERVAL_MONTH_DAY_NANO_VALUES(26),
DURATION_SECOND_VALUE(27),
DURATION_MILLISECOND_VALUE(28),
DURATION_MICROSECOND_VALUE(29),
DURATION_NANOSECOND_VALUE(30),
VALUEDATA_NOT_SET(0);
private final int value;
private ValueDataCase(int value) {
@@ -3355,6 +3423,10 @@ public final class RowData {
case 24: return INTERVAL_YEAR_MONTH_VALUES;
case 25: return INTERVAL_DAY_TIME_VALUES;
case 26: return INTERVAL_MONTH_DAY_NANO_VALUES;
case 27: return DURATION_SECOND_VALUE;
case 28: return DURATION_MILLISECOND_VALUE;
case 29: return DURATION_MICROSECOND_VALUE;
case 30: return DURATION_NANOSECOND_VALUE;
case 0: return VALUEDATA_NOT_SET;
default: return null;
}
@@ -3957,6 +4029,90 @@ public final class RowData {
return io.greptime.v1.Common.IntervalMonthDayNano.getDefaultInstance();
}
public static final int DURATION_SECOND_VALUE_FIELD_NUMBER = 27;
/**
* <code>int64 duration_second_value = 27;</code>
* @return Whether the durationSecondValue field is set.
*/
@java.lang.Override
public boolean hasDurationSecondValue() {
return valueDataCase_ == 27;
}
/**
* <code>int64 duration_second_value = 27;</code>
* @return The durationSecondValue.
*/
@java.lang.Override
public long getDurationSecondValue() {
if (valueDataCase_ == 27) {
return (java.lang.Long) valueData_;
}
return 0L;
}
public static final int DURATION_MILLISECOND_VALUE_FIELD_NUMBER = 28;
/**
* <code>int64 duration_millisecond_value = 28;</code>
* @return Whether the durationMillisecondValue field is set.
*/
@java.lang.Override
public boolean hasDurationMillisecondValue() {
return valueDataCase_ == 28;
}
/**
* <code>int64 duration_millisecond_value = 28;</code>
* @return The durationMillisecondValue.
*/
@java.lang.Override
public long getDurationMillisecondValue() {
if (valueDataCase_ == 28) {
return (java.lang.Long) valueData_;
}
return 0L;
}
public static final int DURATION_MICROSECOND_VALUE_FIELD_NUMBER = 29;
/**
* <code>int64 duration_microsecond_value = 29;</code>
* @return Whether the durationMicrosecondValue field is set.
*/
@java.lang.Override
public boolean hasDurationMicrosecondValue() {
return valueDataCase_ == 29;
}
/**
* <code>int64 duration_microsecond_value = 29;</code>
* @return The durationMicrosecondValue.
*/
@java.lang.Override
public long getDurationMicrosecondValue() {
if (valueDataCase_ == 29) {
return (java.lang.Long) valueData_;
}
return 0L;
}
public static final int DURATION_NANOSECOND_VALUE_FIELD_NUMBER = 30;
/**
* <code>int64 duration_nanosecond_value = 30;</code>
* @return Whether the durationNanosecondValue field is set.
*/
@java.lang.Override
public boolean hasDurationNanosecondValue() {
return valueDataCase_ == 30;
}
/**
* <code>int64 duration_nanosecond_value = 30;</code>
* @return The durationNanosecondValue.
*/
@java.lang.Override
public long getDurationNanosecondValue() {
if (valueDataCase_ == 30) {
return (java.lang.Long) valueData_;
}
return 0L;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -4073,6 +4229,22 @@ public final class RowData {
if (valueDataCase_ == 26) {
output.writeMessage(26, (io.greptime.v1.Common.IntervalMonthDayNano) valueData_);
}
if (valueDataCase_ == 27) {
output.writeInt64(
27, (long)((java.lang.Long) valueData_));
}
if (valueDataCase_ == 28) {
output.writeInt64(
28, (long)((java.lang.Long) valueData_));
}
if (valueDataCase_ == 29) {
output.writeInt64(
29, (long)((java.lang.Long) valueData_));
}
if (valueDataCase_ == 30) {
output.writeInt64(
30, (long)((java.lang.Long) valueData_));
}
unknownFields.writeTo(output);
}
@@ -4209,6 +4381,26 @@ public final class RowData {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, (io.greptime.v1.Common.IntervalMonthDayNano) valueData_);
}
if (valueDataCase_ == 27) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
27, (long)((java.lang.Long) valueData_));
}
if (valueDataCase_ == 28) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
28, (long)((java.lang.Long) valueData_));
}
if (valueDataCase_ == 29) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
29, (long)((java.lang.Long) valueData_));
}
if (valueDataCase_ == 30) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
30, (long)((java.lang.Long) valueData_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -4332,6 +4524,22 @@ public final class RowData {
if (!getIntervalMonthDayNanoValues()
.equals(other.getIntervalMonthDayNanoValues())) return false;
break;
case 27:
if (getDurationSecondValue()
!= other.getDurationSecondValue()) return false;
break;
case 28:
if (getDurationMillisecondValue()
!= other.getDurationMillisecondValue()) return false;
break;
case 29:
if (getDurationMicrosecondValue()
!= other.getDurationMicrosecondValue()) return false;
break;
case 30:
if (getDurationNanosecondValue()
!= other.getDurationNanosecondValue()) return false;
break;
case 0:
default:
}
@@ -4466,6 +4674,26 @@ public final class RowData {
hash = (37 * hash) + INTERVAL_MONTH_DAY_NANO_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getIntervalMonthDayNanoValues().hashCode();
break;
case 27:
hash = (37 * hash) + DURATION_SECOND_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDurationSecondValue());
break;
case 28:
hash = (37 * hash) + DURATION_MILLISECOND_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDurationMillisecondValue());
break;
case 29:
hash = (37 * hash) + DURATION_MICROSECOND_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDurationMicrosecondValue());
break;
case 30:
hash = (37 * hash) + DURATION_NANOSECOND_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDurationNanosecondValue());
break;
case 0:
default:
}
@@ -4712,6 +4940,18 @@ public final class RowData {
result.valueData_ = intervalMonthDayNanoValuesBuilder_.build();
}
}
if (valueDataCase_ == 27) {
result.valueData_ = valueData_;
}
if (valueDataCase_ == 28) {
result.valueData_ = valueData_;
}
if (valueDataCase_ == 29) {
result.valueData_ = valueData_;
}
if (valueDataCase_ == 30) {
result.valueData_ = valueData_;
}
result.valueDataCase_ = valueDataCase_;
onBuilt();
return result;
@@ -4868,6 +5108,22 @@ public final class RowData {
mergeIntervalMonthDayNanoValues(other.getIntervalMonthDayNanoValues());
break;
}
case DURATION_SECOND_VALUE: {
setDurationSecondValue(other.getDurationSecondValue());
break;
}
case DURATION_MILLISECOND_VALUE: {
setDurationMillisecondValue(other.getDurationMillisecondValue());
break;
}
case DURATION_MICROSECOND_VALUE: {
setDurationMicrosecondValue(other.getDurationMicrosecondValue());
break;
}
case DURATION_NANOSECOND_VALUE: {
setDurationNanosecondValue(other.getDurationNanosecondValue());
break;
}
case VALUEDATA_NOT_SET: {
break;
}
@@ -6141,6 +6397,170 @@ public final class RowData {
onChanged();;
return intervalMonthDayNanoValuesBuilder_;
}
/**
* <code>int64 duration_second_value = 27;</code>
* @return Whether the durationSecondValue field is set.
*/
public boolean hasDurationSecondValue() {
return valueDataCase_ == 27;
}
/**
* <code>int64 duration_second_value = 27;</code>
* @return The durationSecondValue.
*/
public long getDurationSecondValue() {
if (valueDataCase_ == 27) {
return (java.lang.Long) valueData_;
}
return 0L;
}
/**
* <code>int64 duration_second_value = 27;</code>
* @param value The durationSecondValue to set.
* @return This builder for chaining.
*/
public Builder setDurationSecondValue(long value) {
valueDataCase_ = 27;
valueData_ = value;
onChanged();
return this;
}
/**
* <code>int64 duration_second_value = 27;</code>
* @return This builder for chaining.
*/
public Builder clearDurationSecondValue() {
if (valueDataCase_ == 27) {
valueDataCase_ = 0;
valueData_ = null;
onChanged();
}
return this;
}
/**
* <code>int64 duration_millisecond_value = 28;</code>
* @return Whether the durationMillisecondValue field is set.
*/
public boolean hasDurationMillisecondValue() {
return valueDataCase_ == 28;
}
/**
* <code>int64 duration_millisecond_value = 28;</code>
* @return The durationMillisecondValue.
*/
public long getDurationMillisecondValue() {
if (valueDataCase_ == 28) {
return (java.lang.Long) valueData_;
}
return 0L;
}
/**
* <code>int64 duration_millisecond_value = 28;</code>
* @param value The durationMillisecondValue to set.
* @return This builder for chaining.
*/
public Builder setDurationMillisecondValue(long value) {
valueDataCase_ = 28;
valueData_ = value;
onChanged();
return this;
}
/**
* <code>int64 duration_millisecond_value = 28;</code>
* @return This builder for chaining.
*/
public Builder clearDurationMillisecondValue() {
if (valueDataCase_ == 28) {
valueDataCase_ = 0;
valueData_ = null;
onChanged();
}
return this;
}
/**
* <code>int64 duration_microsecond_value = 29;</code>
* @return Whether the durationMicrosecondValue field is set.
*/
public boolean hasDurationMicrosecondValue() {
return valueDataCase_ == 29;
}
/**
* <code>int64 duration_microsecond_value = 29;</code>
* @return The durationMicrosecondValue.
*/
public long getDurationMicrosecondValue() {
if (valueDataCase_ == 29) {
return (java.lang.Long) valueData_;
}
return 0L;
}
/**
* <code>int64 duration_microsecond_value = 29;</code>
* @param value The durationMicrosecondValue to set.
* @return This builder for chaining.
*/
public Builder setDurationMicrosecondValue(long value) {
valueDataCase_ = 29;
valueData_ = value;
onChanged();
return this;
}
/**
* <code>int64 duration_microsecond_value = 29;</code>
* @return This builder for chaining.
*/
public Builder clearDurationMicrosecondValue() {
if (valueDataCase_ == 29) {
valueDataCase_ = 0;
valueData_ = null;
onChanged();
}
return this;
}
/**
* <code>int64 duration_nanosecond_value = 30;</code>
* @return Whether the durationNanosecondValue field is set.
*/
public boolean hasDurationNanosecondValue() {
return valueDataCase_ == 30;
}
/**
* <code>int64 duration_nanosecond_value = 30;</code>
* @return The durationNanosecondValue.
*/
public long getDurationNanosecondValue() {
if (valueDataCase_ == 30) {
return (java.lang.Long) valueData_;
}
return 0L;
}
/**
* <code>int64 duration_nanosecond_value = 30;</code>
* @param value The durationNanosecondValue to set.
* @return This builder for chaining.
*/
public Builder setDurationNanosecondValue(long value) {
valueDataCase_ = 30;
valueData_ = value;
onChanged();
return this;
}
/**
* <code>int64 duration_nanosecond_value = 30;</code>
* @return This builder for chaining.
*/
public Builder clearDurationNanosecondValue() {
if (valueDataCase_ == 30) {
valueDataCase_ = 0;
valueData_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -6231,7 +6651,7 @@ public final class RowData {
"\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant" +
"ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" +
"\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va" +
"lue\"\212\006\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16" +
"lue\"\234\007\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16" +
"_value\030\002 \001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti" +
"64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t" +
"u16_value\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023" +
@@ -6250,9 +6670,13 @@ public final class RowData {
"th_values\030\030 \001(\005H\000\022\"\n\030interval_day_time_v" +
"alues\030\031 \001(\003H\000\022K\n\036interval_month_day_nano" +
"_values\030\032 \001(\0132!.greptime.v1.IntervalMont" +
"hDayNanoH\000B\014\n\nvalue_dataBP\n\016io.greptime." +
"v1B\007RowDataZ5github.com/GreptimeTeam/gre" +
"ptime-proto/go/greptime/v1b\006proto3"
"hDayNanoH\000\022\037\n\025duration_second_value\030\033 \001(" +
"\003H\000\022$\n\032duration_millisecond_value\030\034 \001(\003H" +
"\000\022$\n\032duration_microsecond_value\030\035 \001(\003H\000\022" +
"#\n\031duration_nanosecond_value\030\036 \001(\003H\000B\014\n\n" +
"value_dataBP\n\016io.greptime.v1B\007RowDataZ5g" +
"ithub.com/GreptimeTeam/greptime-proto/go" +
"/greptime/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -6282,7 +6706,7 @@ public final class RowData {
internal_static_greptime_v1_Value_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_Value_descriptor,
new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TimestampSecondValue", "TimestampMillisecondValue", "TimestampMicrosecondValue", "TimestampNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "ValueData", });
new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TimestampSecondValue", "TimestampMillisecondValue", "TimestampMicrosecondValue", "TimestampNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValue", "DurationMillisecondValue", "DurationMicrosecondValue", "DurationNanosecondValue", "ValueData", });
io.greptime.v1.Common.getDescriptor();
}