feat: distributed alter table in region server (#97)
* feat: alter region request
This commit is contained in:
@@ -6515,836 +6515,6 @@ public final class Common {
|
||||
|
||||
}
|
||||
|
||||
public interface ColumnDefOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:greptime.v1.ColumnDef)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The name.
|
||||
*/
|
||||
java.lang.String getName();
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The bytes for name.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getNameBytes();
|
||||
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @return The enum numeric value on the wire for datatype.
|
||||
*/
|
||||
int getDatatypeValue();
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @return The datatype.
|
||||
*/
|
||||
io.greptime.v1.Common.ColumnDataType getDatatype();
|
||||
|
||||
/**
|
||||
* <code>bool is_nullable = 3;</code>
|
||||
* @return The isNullable.
|
||||
*/
|
||||
boolean getIsNullable();
|
||||
|
||||
/**
|
||||
* <code>bytes default_constraint = 4;</code>
|
||||
* @return The defaultConstraint.
|
||||
*/
|
||||
com.google.protobuf.ByteString getDefaultConstraint();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code greptime.v1.ColumnDef}
|
||||
*/
|
||||
public static final class ColumnDef extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:greptime.v1.ColumnDef)
|
||||
ColumnDefOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use ColumnDef.newBuilder() to construct.
|
||||
private ColumnDef(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private ColumnDef() {
|
||||
name_ = "";
|
||||
datatype_ = 0;
|
||||
defaultConstraint_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new ColumnDef();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private ColumnDef(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
name_ = s;
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
datatype_ = rawValue;
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
|
||||
isNullable_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
|
||||
defaultConstraint_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||
e).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
io.greptime.v1.Common.ColumnDef.class, io.greptime.v1.Common.ColumnDef.Builder.class);
|
||||
}
|
||||
|
||||
public static final int NAME_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object name_;
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The name.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getName() {
|
||||
java.lang.Object ref = name_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
name_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The bytes for name.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getNameBytes() {
|
||||
java.lang.Object ref = name_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
name_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int DATATYPE_FIELD_NUMBER = 2;
|
||||
private int datatype_;
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @return The enum numeric value on the wire for datatype.
|
||||
*/
|
||||
@java.lang.Override public int getDatatypeValue() {
|
||||
return datatype_;
|
||||
}
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @return The datatype.
|
||||
*/
|
||||
@java.lang.Override public io.greptime.v1.Common.ColumnDataType getDatatype() {
|
||||
@SuppressWarnings("deprecation")
|
||||
io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_);
|
||||
return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int IS_NULLABLE_FIELD_NUMBER = 3;
|
||||
private boolean isNullable_;
|
||||
/**
|
||||
* <code>bool is_nullable = 3;</code>
|
||||
* @return The isNullable.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsNullable() {
|
||||
return isNullable_;
|
||||
}
|
||||
|
||||
public static final int DEFAULT_CONSTRAINT_FIELD_NUMBER = 4;
|
||||
private com.google.protobuf.ByteString defaultConstraint_;
|
||||
/**
|
||||
* <code>bytes default_constraint = 4;</code>
|
||||
* @return The defaultConstraint.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString getDefaultConstraint() {
|
||||
return defaultConstraint_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
|
||||
}
|
||||
if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) {
|
||||
output.writeEnum(2, datatype_);
|
||||
}
|
||||
if (isNullable_ != false) {
|
||||
output.writeBool(3, isNullable_);
|
||||
}
|
||||
if (!defaultConstraint_.isEmpty()) {
|
||||
output.writeBytes(4, defaultConstraint_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
|
||||
}
|
||||
if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(2, datatype_);
|
||||
}
|
||||
if (isNullable_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(3, isNullable_);
|
||||
}
|
||||
if (!defaultConstraint_.isEmpty()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBytesSize(4, defaultConstraint_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof io.greptime.v1.Common.ColumnDef)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
io.greptime.v1.Common.ColumnDef other = (io.greptime.v1.Common.ColumnDef) obj;
|
||||
|
||||
if (!getName()
|
||||
.equals(other.getName())) return false;
|
||||
if (datatype_ != other.datatype_) return false;
|
||||
if (getIsNullable()
|
||||
!= other.getIsNullable()) return false;
|
||||
if (!getDefaultConstraint()
|
||||
.equals(other.getDefaultConstraint())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + NAME_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getName().hashCode();
|
||||
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + datatype_;
|
||||
hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getIsNullable());
|
||||
hash = (37 * hash) + DEFAULT_CONSTRAINT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDefaultConstraint().hashCode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static io.greptime.v1.Common.ColumnDef parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(io.greptime.v1.Common.ColumnDef prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code greptime.v1.ColumnDef}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:greptime.v1.ColumnDef)
|
||||
io.greptime.v1.Common.ColumnDefOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
io.greptime.v1.Common.ColumnDef.class, io.greptime.v1.Common.ColumnDef.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using io.greptime.v1.Common.ColumnDef.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
name_ = "";
|
||||
|
||||
datatype_ = 0;
|
||||
|
||||
isNullable_ = false;
|
||||
|
||||
defaultConstraint_ = com.google.protobuf.ByteString.EMPTY;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnDef getDefaultInstanceForType() {
|
||||
return io.greptime.v1.Common.ColumnDef.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnDef build() {
|
||||
io.greptime.v1.Common.ColumnDef result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnDef buildPartial() {
|
||||
io.greptime.v1.Common.ColumnDef result = new io.greptime.v1.Common.ColumnDef(this);
|
||||
result.name_ = name_;
|
||||
result.datatype_ = datatype_;
|
||||
result.isNullable_ = isNullable_;
|
||||
result.defaultConstraint_ = defaultConstraint_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof io.greptime.v1.Common.ColumnDef) {
|
||||
return mergeFrom((io.greptime.v1.Common.ColumnDef)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(io.greptime.v1.Common.ColumnDef other) {
|
||||
if (other == io.greptime.v1.Common.ColumnDef.getDefaultInstance()) return this;
|
||||
if (!other.getName().isEmpty()) {
|
||||
name_ = other.name_;
|
||||
onChanged();
|
||||
}
|
||||
if (other.datatype_ != 0) {
|
||||
setDatatypeValue(other.getDatatypeValue());
|
||||
}
|
||||
if (other.getIsNullable() != false) {
|
||||
setIsNullable(other.getIsNullable());
|
||||
}
|
||||
if (other.getDefaultConstraint() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setDefaultConstraint(other.getDefaultConstraint());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
io.greptime.v1.Common.ColumnDef parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (io.greptime.v1.Common.ColumnDef) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object name_ = "";
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The name.
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
java.lang.Object ref = name_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
name_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The bytes for name.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getNameBytes() {
|
||||
java.lang.Object ref = name_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
name_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @param value The name to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setName(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
name_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearName() {
|
||||
|
||||
name_ = getDefaultInstance().getName();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @param value The bytes for name to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setNameBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
name_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int datatype_ = 0;
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @return The enum numeric value on the wire for datatype.
|
||||
*/
|
||||
@java.lang.Override public int getDatatypeValue() {
|
||||
return datatype_;
|
||||
}
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @param value The enum numeric value on the wire for datatype to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDatatypeValue(int value) {
|
||||
|
||||
datatype_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @return The datatype.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnDataType getDatatype() {
|
||||
@SuppressWarnings("deprecation")
|
||||
io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_);
|
||||
return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @param value The datatype to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDatatype(io.greptime.v1.Common.ColumnDataType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
datatype_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearDatatype() {
|
||||
|
||||
datatype_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean isNullable_ ;
|
||||
/**
|
||||
* <code>bool is_nullable = 3;</code>
|
||||
* @return The isNullable.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsNullable() {
|
||||
return isNullable_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_nullable = 3;</code>
|
||||
* @param value The isNullable to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIsNullable(boolean value) {
|
||||
|
||||
isNullable_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_nullable = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsNullable() {
|
||||
|
||||
isNullable_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.ByteString defaultConstraint_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes default_constraint = 4;</code>
|
||||
* @return The defaultConstraint.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString getDefaultConstraint() {
|
||||
return defaultConstraint_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes default_constraint = 4;</code>
|
||||
* @param value The defaultConstraint to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDefaultConstraint(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
defaultConstraint_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bytes default_constraint = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearDefaultConstraint() {
|
||||
|
||||
defaultConstraint_ = getDefaultInstance().getDefaultConstraint();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:greptime.v1.ColumnDef)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.ColumnDef)
|
||||
private static final io.greptime.v1.Common.ColumnDef DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new io.greptime.v1.Common.ColumnDef();
|
||||
}
|
||||
|
||||
public static io.greptime.v1.Common.ColumnDef getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<ColumnDef>
|
||||
PARSER = new com.google.protobuf.AbstractParser<ColumnDef>() {
|
||||
@java.lang.Override
|
||||
public ColumnDef parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ColumnDef(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<ColumnDef> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ColumnDef> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.Common.ColumnDef getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface IntervalMonthDayNanoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:greptime.v1.IntervalMonthDayNano)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
@@ -8016,11 +7186,6 @@ public final class Common {
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_greptime_v1_FlightMetadata_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_greptime_v1_ColumnDef_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_greptime_v1_ColumnDef_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_greptime_v1_IntervalMonthDayNano_descriptor;
|
||||
private static final
|
||||
@@ -8049,26 +7214,23 @@ public final class Common {
|
||||
"\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows" +
|
||||
"\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raff" +
|
||||
"ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" +
|
||||
"ows\"y\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022-\n\010dataty" +
|
||||
"pe\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022\023\n" +
|
||||
"\013is_nullable\030\003 \001(\010\022\032\n\022default_constraint" +
|
||||
"\030\004 \001(\014\"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" +
|
||||
"\tTIMESTAMP\020\002*\306\003\n\016ColumnDataType\022\013\n\007BOOLE" +
|
||||
"AN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005" +
|
||||
"INT64\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\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DA" +
|
||||
"TETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMEST" +
|
||||
"AMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECO" +
|
||||
"ND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_S" +
|
||||
"ECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MI" +
|
||||
"CROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTE" +
|
||||
"RVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030" +
|
||||
"\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031BO\n\016io.grep" +
|
||||
"time.v1B\006CommonZ5github.com/GreptimeTeam" +
|
||||
"/greptime-proto/go/greptime/v1b\006proto3"
|
||||
"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" +
|
||||
"\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" +
|
||||
"\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATET" +
|
||||
"IME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP" +
|
||||
"_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020" +
|
||||
"\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECO" +
|
||||
"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"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -8122,14 +7284,8 @@ public final class Common {
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_FlightMetadata_descriptor,
|
||||
new java.lang.String[] { "AffectedRows", });
|
||||
internal_static_greptime_v1_ColumnDef_descriptor =
|
||||
getDescriptor().getMessageTypes().get(8);
|
||||
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", });
|
||||
internal_static_greptime_v1_IntervalMonthDayNano_descriptor =
|
||||
getDescriptor().getMessageTypes().get(9);
|
||||
getDescriptor().getMessageTypes().get(8);
|
||||
internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_IntervalMonthDayNano_descriptor,
|
||||
|
||||
+1860
-1282
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user