feat: add fulltext options for column (#179)
* feat: add fulltext options for column Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * feat: use string instead Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * chore: polish Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * chore: copy every where Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * doc: polish Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * extract as message Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> --------- Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
@@ -146,6 +146,33 @@ public final class Columns {
|
||||
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
boolean hasOptions();
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnOptions getOptions();
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code greptime.v1.Column}
|
||||
@@ -245,6 +272,19 @@ public final class Columns {
|
||||
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
io.greptime.v1.Common.ColumnOptions.Builder subBuilder = null;
|
||||
if (options_ != null) {
|
||||
subBuilder = options_.toBuilder();
|
||||
}
|
||||
options_ = input.readMessage(io.greptime.v1.Common.ColumnOptions.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(options_);
|
||||
options_ = subBuilder.buildPartial();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -6468,6 +6508,44 @@ public final class Columns {
|
||||
return getDatatypeExtension();
|
||||
}
|
||||
|
||||
public static final int OPTIONS_FIELD_NUMBER = 7;
|
||||
private io.greptime.v1.Common.ColumnOptions options_;
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasOptions() {
|
||||
return options_ != null;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnOptions getOptions() {
|
||||
return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() {
|
||||
return getOptions();
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -6500,6 +6578,9 @@ public final class Columns {
|
||||
if (datatypeExtension_ != null) {
|
||||
output.writeMessage(6, getDatatypeExtension());
|
||||
}
|
||||
if (options_ != null) {
|
||||
output.writeMessage(7, getOptions());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -6532,6 +6613,10 @@ public final class Columns {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(6, getDatatypeExtension());
|
||||
}
|
||||
if (options_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(7, getOptions());
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -6563,6 +6648,11 @@ public final class Columns {
|
||||
if (!getDatatypeExtension()
|
||||
.equals(other.getDatatypeExtension())) return false;
|
||||
}
|
||||
if (hasOptions() != other.hasOptions()) return false;
|
||||
if (hasOptions()) {
|
||||
if (!getOptions()
|
||||
.equals(other.getOptions())) return false;
|
||||
}
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -6590,6 +6680,10 @@ public final class Columns {
|
||||
hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDatatypeExtension().hashCode();
|
||||
}
|
||||
if (hasOptions()) {
|
||||
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getOptions().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -6743,6 +6837,12 @@ public final class Columns {
|
||||
datatypeExtension_ = null;
|
||||
datatypeExtensionBuilder_ = null;
|
||||
}
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = null;
|
||||
} else {
|
||||
options_ = null;
|
||||
optionsBuilder_ = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -6783,6 +6883,11 @@ public final class Columns {
|
||||
} else {
|
||||
result.datatypeExtension_ = datatypeExtensionBuilder_.build();
|
||||
}
|
||||
if (optionsBuilder_ == null) {
|
||||
result.options_ = options_;
|
||||
} else {
|
||||
result.options_ = optionsBuilder_.build();
|
||||
}
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -6850,6 +6955,9 @@ public final class Columns {
|
||||
if (other.hasDatatypeExtension()) {
|
||||
mergeDatatypeExtension(other.getDatatypeExtension());
|
||||
}
|
||||
if (other.hasOptions()) {
|
||||
mergeOptions(other.getOptions());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -7507,6 +7615,161 @@ public final class Columns {
|
||||
}
|
||||
return datatypeExtensionBuilder_;
|
||||
}
|
||||
|
||||
private io.greptime.v1.Common.ColumnOptions options_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> optionsBuilder_;
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
public boolean hasOptions() {
|
||||
return optionsBuilder_ != null || options_ != null;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptions getOptions() {
|
||||
if (optionsBuilder_ == null) {
|
||||
return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
} else {
|
||||
return optionsBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
public Builder setOptions(io.greptime.v1.Common.ColumnOptions value) {
|
||||
if (optionsBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
options_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.setMessage(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
public Builder setOptions(
|
||||
io.greptime.v1.Common.ColumnOptions.Builder builderForValue) {
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
public Builder mergeOptions(io.greptime.v1.Common.ColumnOptions value) {
|
||||
if (optionsBuilder_ == null) {
|
||||
if (options_ != null) {
|
||||
options_ =
|
||||
io.greptime.v1.Common.ColumnOptions.newBuilder(options_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
options_ = value;
|
||||
}
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.mergeFrom(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
public Builder clearOptions() {
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
options_ = null;
|
||||
optionsBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptions.Builder getOptionsBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getOptionsFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() {
|
||||
if (optionsBuilder_ != null) {
|
||||
return optionsBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return options_ == null ?
|
||||
io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 7;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>
|
||||
getOptionsFieldBuilder() {
|
||||
if (optionsBuilder_ == null) {
|
||||
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>(
|
||||
getOptions(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
options_ = null;
|
||||
}
|
||||
return optionsBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -7580,36 +7843,37 @@ public final class Columns {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\030greptime/v1/column.proto\022\013greptime.v1\032" +
|
||||
"\030greptime/v1/common.proto\"\226\010\n\006Column\022\023\n\013" +
|
||||
"\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\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\rbin" +
|
||||
"ary_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_values\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\034" +
|
||||
"timestamp_microsecond_values\030\022 \003(\003\022#\n\033ti" +
|
||||
"mestamp_nanosecond_values\030\023 \003(\003\022\032\n\022time_" +
|
||||
"second_values\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\026time_nanosecond_values\030\027 \003(\003\022\"\n" +
|
||||
"\032interval_year_month_values\030\030 \003(\005\022 \n\030int" +
|
||||
"erval_day_time_values\030\031 \003(\003\022I\n\036interval_" +
|
||||
"month_day_nano_values\030\032 \003(\0132!.greptime.v" +
|
||||
"1.IntervalMonthDayNano\0222\n\021decimal128_val" +
|
||||
"ues\030\037 \003(\0132\027.greptime.v1.Decimal128BP\n\016io" +
|
||||
".greptime.v1B\007ColumnsZ5github.com/Grepti" +
|
||||
"meTeam/greptime-proto/go/greptime/v1b\006pr" +
|
||||
"oto3"
|
||||
"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"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -7621,7 +7885,7 @@ public final class Columns {
|
||||
internal_static_greptime_v1_Column_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_Column_descriptor,
|
||||
new java.lang.String[] { "ColumnName", "SemanticType", "Values", "NullMask", "Datatype", "DatatypeExtension", });
|
||||
new java.lang.String[] { "ColumnName", "SemanticType", "Values", "NullMask", "Datatype", "DatatypeExtension", "Options", });
|
||||
internal_static_greptime_v1_Column_Values_descriptor =
|
||||
internal_static_greptime_v1_Column_descriptor.getNestedTypes().get(0);
|
||||
internal_static_greptime_v1_Column_Values_fieldAccessorTable = new
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -23337,6 +23337,33 @@ java.lang.String defaultValue);
|
||||
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
boolean hasOptions();
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnOptions getOptions();
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code greptime.v1.ColumnDef}
|
||||
@@ -23435,6 +23462,19 @@ java.lang.String defaultValue);
|
||||
|
||||
break;
|
||||
}
|
||||
case 66: {
|
||||
io.greptime.v1.Common.ColumnOptions.Builder subBuilder = null;
|
||||
if (options_ != null) {
|
||||
subBuilder = options_.toBuilder();
|
||||
}
|
||||
options_ = input.readMessage(io.greptime.v1.Common.ColumnOptions.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(options_);
|
||||
options_ = subBuilder.buildPartial();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -23643,6 +23683,44 @@ java.lang.String defaultValue);
|
||||
return getDatatypeExtension();
|
||||
}
|
||||
|
||||
public static final int OPTIONS_FIELD_NUMBER = 8;
|
||||
private io.greptime.v1.Common.ColumnOptions options_;
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasOptions() {
|
||||
return options_ != null;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnOptions getOptions() {
|
||||
return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() {
|
||||
return getOptions();
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -23678,6 +23756,9 @@ java.lang.String defaultValue);
|
||||
if (datatypeExtension_ != null) {
|
||||
output.writeMessage(7, getDatatypeExtension());
|
||||
}
|
||||
if (options_ != null) {
|
||||
output.writeMessage(8, getOptions());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -23713,6 +23794,10 @@ java.lang.String defaultValue);
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(7, getDatatypeExtension());
|
||||
}
|
||||
if (options_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(8, getOptions());
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -23743,6 +23828,11 @@ java.lang.String defaultValue);
|
||||
if (!getDatatypeExtension()
|
||||
.equals(other.getDatatypeExtension())) return false;
|
||||
}
|
||||
if (hasOptions() != other.hasOptions()) return false;
|
||||
if (hasOptions()) {
|
||||
if (!getOptions()
|
||||
.equals(other.getOptions())) return false;
|
||||
}
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -23771,6 +23861,10 @@ java.lang.String defaultValue);
|
||||
hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDatatypeExtension().hashCode();
|
||||
}
|
||||
if (hasOptions()) {
|
||||
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getOptions().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -23922,6 +24016,12 @@ java.lang.String defaultValue);
|
||||
datatypeExtension_ = null;
|
||||
datatypeExtensionBuilder_ = null;
|
||||
}
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = null;
|
||||
} else {
|
||||
options_ = null;
|
||||
optionsBuilder_ = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -23959,6 +24059,11 @@ java.lang.String defaultValue);
|
||||
} else {
|
||||
result.datatypeExtension_ = datatypeExtensionBuilder_.build();
|
||||
}
|
||||
if (optionsBuilder_ == null) {
|
||||
result.options_ = options_;
|
||||
} else {
|
||||
result.options_ = optionsBuilder_.build();
|
||||
}
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -24030,6 +24135,9 @@ java.lang.String defaultValue);
|
||||
if (other.hasDatatypeExtension()) {
|
||||
mergeDatatypeExtension(other.getDatatypeExtension());
|
||||
}
|
||||
if (other.hasOptions()) {
|
||||
mergeOptions(other.getOptions());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -24538,6 +24646,161 @@ java.lang.String defaultValue);
|
||||
}
|
||||
return datatypeExtensionBuilder_;
|
||||
}
|
||||
|
||||
private io.greptime.v1.Common.ColumnOptions options_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> optionsBuilder_;
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
public boolean hasOptions() {
|
||||
return optionsBuilder_ != null || options_ != null;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptions getOptions() {
|
||||
if (optionsBuilder_ == null) {
|
||||
return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
} else {
|
||||
return optionsBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
public Builder setOptions(io.greptime.v1.Common.ColumnOptions value) {
|
||||
if (optionsBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
options_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.setMessage(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
public Builder setOptions(
|
||||
io.greptime.v1.Common.ColumnOptions.Builder builderForValue) {
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
public Builder mergeOptions(io.greptime.v1.Common.ColumnOptions value) {
|
||||
if (optionsBuilder_ == null) {
|
||||
if (options_ != null) {
|
||||
options_ =
|
||||
io.greptime.v1.Common.ColumnOptions.newBuilder(options_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
options_ = value;
|
||||
}
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.mergeFrom(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
public Builder clearOptions() {
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
options_ = null;
|
||||
optionsBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptions.Builder getOptionsBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getOptionsFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() {
|
||||
if (optionsBuilder_ != null) {
|
||||
return optionsBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return options_ == null ?
|
||||
io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 8;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>
|
||||
getOptionsFieldBuilder() {
|
||||
if (optionsBuilder_ == null) {
|
||||
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>(
|
||||
getOptions(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
options_ = null;
|
||||
}
|
||||
return optionsBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -25591,19 +25854,20 @@ java.lang.String defaultValue);
|
||||
"type_extension\030\003 \001(\0132$.greptime.v1.Colum" +
|
||||
"nDataTypeExtension\"\032\n\nDropColumn\022\014\n\004name" +
|
||||
"\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022" +
|
||||
"\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022" +
|
||||
"\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022" +
|
||||
".\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnD" +
|
||||
"ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_" +
|
||||
"constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162" +
|
||||
"\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 " +
|
||||
"\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti" +
|
||||
"me.v1.ColumnDataTypeExtension\"\230\001\n\021AddCol" +
|
||||
"umnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gre" +
|
||||
"ptime.v1.AddColumnLocation.LocationType\022" +
|
||||
"\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTy" +
|
||||
"pe\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime." +
|
||||
"v1B\003DdlZ5github.com/GreptimeTeam/greptim" +
|
||||
"e-proto/go/greptime/v1b\006proto3"
|
||||
"me.v1.ColumnDataTypeExtension\022+\n\007options" +
|
||||
"\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021A" +
|
||||
"ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162" +
|
||||
"+.greptime.v1.AddColumnLocation.Location" +
|
||||
"Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat" +
|
||||
"ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grep" +
|
||||
"time.v1B\003DdlZ5github.com/GreptimeTeam/gr" +
|
||||
"eptime-proto/go/greptime/v1b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -25753,7 +26017,7 @@ java.lang.String defaultValue);
|
||||
internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_ColumnDef_descriptor,
|
||||
new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", });
|
||||
new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", "Options", });
|
||||
internal_static_greptime_v1_AddColumnLocation_descriptor =
|
||||
getDescriptor().getMessageTypes().get(21);
|
||||
internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new
|
||||
|
||||
@@ -1245,6 +1245,33 @@ public final class RowData {
|
||||
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
boolean hasOptions();
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnOptions getOptions();
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code greptime.v1.ColumnSchema}
|
||||
@@ -1325,6 +1352,19 @@ public final class RowData {
|
||||
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
io.greptime.v1.Common.ColumnOptions.Builder subBuilder = null;
|
||||
if (options_ != null) {
|
||||
subBuilder = options_.toBuilder();
|
||||
}
|
||||
options_ = input.readMessage(io.greptime.v1.Common.ColumnOptions.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(options_);
|
||||
options_ = subBuilder.buildPartial();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -1473,6 +1513,44 @@ public final class RowData {
|
||||
return getDatatypeExtension();
|
||||
}
|
||||
|
||||
public static final int OPTIONS_FIELD_NUMBER = 5;
|
||||
private io.greptime.v1.Common.ColumnOptions options_;
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasOptions() {
|
||||
return options_ != null;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnOptions getOptions() {
|
||||
return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() {
|
||||
return getOptions();
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -1499,6 +1577,9 @@ public final class RowData {
|
||||
if (datatypeExtension_ != null) {
|
||||
output.writeMessage(4, getDatatypeExtension());
|
||||
}
|
||||
if (options_ != null) {
|
||||
output.writeMessage(5, getOptions());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -1523,6 +1604,10 @@ public final class RowData {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(4, getDatatypeExtension());
|
||||
}
|
||||
if (options_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(5, getOptions());
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -1547,6 +1632,11 @@ public final class RowData {
|
||||
if (!getDatatypeExtension()
|
||||
.equals(other.getDatatypeExtension())) return false;
|
||||
}
|
||||
if (hasOptions() != other.hasOptions()) return false;
|
||||
if (hasOptions()) {
|
||||
if (!getOptions()
|
||||
.equals(other.getOptions())) return false;
|
||||
}
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -1568,6 +1658,10 @@ public final class RowData {
|
||||
hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDatatypeExtension().hashCode();
|
||||
}
|
||||
if (hasOptions()) {
|
||||
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getOptions().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -1713,6 +1807,12 @@ public final class RowData {
|
||||
datatypeExtension_ = null;
|
||||
datatypeExtensionBuilder_ = null;
|
||||
}
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = null;
|
||||
} else {
|
||||
options_ = null;
|
||||
optionsBuilder_ = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -1747,6 +1847,11 @@ public final class RowData {
|
||||
} else {
|
||||
result.datatypeExtension_ = datatypeExtensionBuilder_.build();
|
||||
}
|
||||
if (optionsBuilder_ == null) {
|
||||
result.options_ = options_;
|
||||
} else {
|
||||
result.options_ = optionsBuilder_.build();
|
||||
}
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -1808,6 +1913,9 @@ public final class RowData {
|
||||
if (other.hasDatatypeExtension()) {
|
||||
mergeDatatypeExtension(other.getDatatypeExtension());
|
||||
}
|
||||
if (other.hasOptions()) {
|
||||
mergeOptions(other.getOptions());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -2175,6 +2283,161 @@ public final class RowData {
|
||||
}
|
||||
return datatypeExtensionBuilder_;
|
||||
}
|
||||
|
||||
private io.greptime.v1.Common.ColumnOptions options_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> optionsBuilder_;
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
* @return Whether the options field is set.
|
||||
*/
|
||||
public boolean hasOptions() {
|
||||
return optionsBuilder_ != null || options_ != null;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
* @return The options.
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptions getOptions() {
|
||||
if (optionsBuilder_ == null) {
|
||||
return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
} else {
|
||||
return optionsBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
public Builder setOptions(io.greptime.v1.Common.ColumnOptions value) {
|
||||
if (optionsBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
options_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.setMessage(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
public Builder setOptions(
|
||||
io.greptime.v1.Common.ColumnOptions.Builder builderForValue) {
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
public Builder mergeOptions(io.greptime.v1.Common.ColumnOptions value) {
|
||||
if (optionsBuilder_ == null) {
|
||||
if (options_ != null) {
|
||||
options_ =
|
||||
io.greptime.v1.Common.ColumnOptions.newBuilder(options_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
options_ = value;
|
||||
}
|
||||
onChanged();
|
||||
} else {
|
||||
optionsBuilder_.mergeFrom(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
public Builder clearOptions() {
|
||||
if (optionsBuilder_ == null) {
|
||||
options_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
options_ = null;
|
||||
optionsBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptions.Builder getOptionsBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getOptionsFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() {
|
||||
if (optionsBuilder_ != null) {
|
||||
return optionsBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return options_ == null ?
|
||||
io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Additional column options.
|
||||
* </pre>
|
||||
*
|
||||
* <code>.greptime.v1.ColumnOptions options = 5;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>
|
||||
getOptionsFieldBuilder() {
|
||||
if (optionsBuilder_ == null) {
|
||||
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>(
|
||||
getOptions(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
options_ = null;
|
||||
}
|
||||
return optionsBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -6719,36 +6982,37 @@ public final class RowData {
|
||||
"\n\025greptime/v1/row.proto\022\013greptime.v1\032\030gr" +
|
||||
"eptime/v1/common.proto\"Q\n\004Rows\022)\n\006schema" +
|
||||
"\030\001 \003(\0132\031.greptime.v1.ColumnSchema\022\036\n\004row" +
|
||||
"s\030\002 \003(\0132\020.greptime.v1.Row\"\306\001\n\014ColumnSche" +
|
||||
"s\030\002 \003(\0132\020.greptime.v1.Row\"\363\001\n\014ColumnSche" +
|
||||
"ma\022\023\n\013column_name\030\001 \001(\t\022-\n\010datatype\030\002 \001(" +
|
||||
"\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant" +
|
||||
"ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" +
|
||||
"\022@\n\022datatype_extension\030\004 \001(\0132$.greptime." +
|
||||
"v1.ColumnDataTypeExtension\")\n\003Row\022\"\n\006val" +
|
||||
"ues\030\001 \003(\0132\022.greptime.v1.Value\"\274\006\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\ti64_value\030\004 \001(\003" +
|
||||
"H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value\030\006 \001(" +
|
||||
"\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023\n\tu64_value\030\010 " +
|
||||
"\001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000\022\023\n\tf64_value\030" +
|
||||
"\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(\010H\000\022\026\n\014binary_" +
|
||||
"value\030\014 \001(\014H\000\022\026\n\014string_value\030\r \001(\tH\000\022\024\n" +
|
||||
"\ndate_value\030\016 \001(\005H\000\022\030\n\016datetime_value\030\017 " +
|
||||
"\001(\003H\000\022 \n\026timestamp_second_value\030\020 \001(\003H\000\022" +
|
||||
"%\n\033timestamp_millisecond_value\030\021 \001(\003H\000\022%" +
|
||||
"\n\033timestamp_microsecond_value\030\022 \001(\003H\000\022$\n" +
|
||||
"\032timestamp_nanosecond_value\030\023 \001(\003H\000\022\033\n\021t" +
|
||||
"ime_second_value\030\024 \001(\003H\000\022 \n\026time_millise" +
|
||||
"cond_value\030\025 \001(\003H\000\022 \n\026time_microsecond_v" +
|
||||
"alue\030\026 \001(\003H\000\022\037\n\025time_nanosecond_value\030\027 " +
|
||||
"\001(\003H\000\022#\n\031interval_year_month_value\030\030 \001(\005" +
|
||||
"H\000\022!\n\027interval_day_time_value\030\031 \001(\003H\000\022J\n" +
|
||||
"\035interval_month_day_nano_value\030\032 \001(\0132!.g" +
|
||||
"reptime.v1.IntervalMonthDayNanoH\000\0223\n\020dec" +
|
||||
"imal128_value\030\037 \001(\0132\027.greptime.v1.Decima" +
|
||||
"l128H\000B\014\n\nvalue_dataBP\n\016io.greptime.v1B\007" +
|
||||
"RowDataZ5github.com/GreptimeTeam/greptim" +
|
||||
"e-proto/go/greptime/v1b\006proto3"
|
||||
"v1.ColumnDataTypeExtension\022+\n\007options\030\005 " +
|
||||
"\001(\0132\032.greptime.v1.ColumnOptions\")\n\003Row\022\"" +
|
||||
"\n\006values\030\001 \003(\0132\022.greptime.v1.Value\"\274\006\n\005V" +
|
||||
"alue\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\ti64_value\030" +
|
||||
"\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value" +
|
||||
"\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023\n\tu64_val" +
|
||||
"ue\030\010 \001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000\022\023\n\tf64_v" +
|
||||
"alue\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(\010H\000\022\026\n\014bi" +
|
||||
"nary_value\030\014 \001(\014H\000\022\026\n\014string_value\030\r \001(\t" +
|
||||
"H\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016datetime_val" +
|
||||
"ue\030\017 \001(\003H\000\022 \n\026timestamp_second_value\030\020 \001" +
|
||||
"(\003H\000\022%\n\033timestamp_millisecond_value\030\021 \001(" +
|
||||
"\003H\000\022%\n\033timestamp_microsecond_value\030\022 \001(\003" +
|
||||
"H\000\022$\n\032timestamp_nanosecond_value\030\023 \001(\003H\000" +
|
||||
"\022\033\n\021time_second_value\030\024 \001(\003H\000\022 \n\026time_mi" +
|
||||
"llisecond_value\030\025 \001(\003H\000\022 \n\026time_microsec" +
|
||||
"ond_value\030\026 \001(\003H\000\022\037\n\025time_nanosecond_val" +
|
||||
"ue\030\027 \001(\003H\000\022#\n\031interval_year_month_value\030" +
|
||||
"\030 \001(\005H\000\022!\n\027interval_day_time_value\030\031 \001(\003" +
|
||||
"H\000\022J\n\035interval_month_day_nano_value\030\032 \001(" +
|
||||
"\0132!.greptime.v1.IntervalMonthDayNanoH\000\0223" +
|
||||
"\n\020decimal128_value\030\037 \001(\0132\027.greptime.v1.D" +
|
||||
"ecimal128H\000B\014\n\nvalue_dataBP\n\016io.greptime" +
|
||||
".v1B\007RowDataZ5github.com/GreptimeTeam/gr" +
|
||||
"eptime-proto/go/greptime/v1b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -6766,7 +7030,7 @@ public final class RowData {
|
||||
internal_static_greptime_v1_ColumnSchema_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_ColumnSchema_descriptor,
|
||||
new java.lang.String[] { "ColumnName", "Datatype", "SemanticType", "DatatypeExtension", });
|
||||
new java.lang.String[] { "ColumnName", "Datatype", "SemanticType", "DatatypeExtension", "Options", });
|
||||
internal_static_greptime_v1_Row_descriptor =
|
||||
getDescriptor().getMessageTypes().get(2);
|
||||
internal_static_greptime_v1_Row_fieldAccessorTable = new
|
||||
|
||||
Reference in New Issue
Block a user