Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: proto generate (#13721)

h3n4lfeae9c1c0599
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index 3185d3cbac..f12b30a9e2 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -8,6 +8,11 @@ export const protobufPackage = "google.protobuf";
export enum Edition {
/** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
EDITION_UNKNOWN = "EDITION_UNKNOWN",
+ /**
+ * EDITION_LEGACY - A placeholder edition for specifying default behaviors *before* a feature
+ * was first introduced. This is effectively an "infinite past".
+ */
+ EDITION_LEGACY = "EDITION_LEGACY",
/**
* EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
* distinct editions. These can't be used to specify the edition of proto
@@ -22,6 +27,7 @@ export enum Edition {
* comparison.
*/
EDITION_2023 = "EDITION_2023",
+ EDITION_2024 = "EDITION_2024",
/**
* EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
* used or relyed on outside of tests.
@@ -31,6 +37,12 @@ export enum Edition {
EDITION_99997_TEST_ONLY = "EDITION_99997_TEST_ONLY",
EDITION_99998_TEST_ONLY = "EDITION_99998_TEST_ONLY",
EDITION_99999_TEST_ONLY = "EDITION_99999_TEST_ONLY",
+ /**
+ * EDITION_MAX - Placeholder for specifying unbounded edition support. This should only
+ * ever be used by plugins that can expect to never require any changes to
+ * support a new edition.
+ */
+ EDITION_MAX = "EDITION_MAX",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -39,6 +51,9 @@ export function editionFromJSON(object: any): Edition {
case 0:
case "EDITION_UNKNOWN":
return Edition.EDITION_UNKNOWN;
+ case 900:
+ case "EDITION_LEGACY":
+ return Edition.EDITION_LEGACY;
case 998:
case "EDITION_PROTO2":
return Edition.EDITION_PROTO2;
@@ -48,6 +63,9 @@ export function editionFromJSON(object: any): Edition {
case 1000:
case "EDITION_2023":
return Edition.EDITION_2023;
+ case 1001:
+ case "EDITION_2024":
+ return Edition.EDITION_2024;
case 1:
case "EDITION_1_TEST_ONLY":
return Edition.EDITION_1_TEST_ONLY;
@@ -63,6 +81,9 @@ export function editionFromJSON(object: any): Edition {
case 99999:
case "EDITION_99999_TEST_ONLY":
return Edition.EDITION_99999_TEST_ONLY;
+ case 2147483647:
+ case "EDITION_MAX":
+ return Edition.EDITION_MAX;
case -1:
case "UNRECOGNIZED":
default:
@@ -74,12 +95,16 @@ export function editionToJSON(object: Edition): string {
switch (object) {
case Edition.EDITION_UNKNOWN:
return "EDITION_UNKNOWN";
+ case Edition.EDITION_LEGACY:
+ return "EDITION_LEGACY";
case Edition.EDITION_PROTO2:
return "EDITION_PROTO2";
case Edition.EDITION_PROTO3:
return "EDITION_PROTO3";
case Edition.EDITION_2023:
return "EDITION_2023";
+ case Edition.EDITION_2024:
+ return "EDITION_2024";
case Edition.EDITION_1_TEST_ONLY:
return "EDITION_1_TEST_ONLY";
case Edition.EDITION_2_TEST_ONLY:
@@ -90,6 +115,8 @@ export function editionToJSON(object: Edition): string {
return "EDITION_99998_TEST_ONLY";
case Edition.EDITION_99999_TEST_ONLY:
return "EDITION_99999_TEST_ONLY";
+ case Edition.EDITION_MAX:
+ return "EDITION_MAX";
case Edition.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -100,12 +127,16 @@ export function editionToNumber(object: Edition): number {
switch (object) {
case Edition.EDITION_UNKNOWN:
return 0;
+ case Edition.EDITION_LEGACY:
+ return 900;
case Edition.EDITION_PROTO2:
return 998;
case Edition.EDITION_PROTO3:
return 999;
case Edition.EDITION_2023:
return 1000;
+ case Edition.EDITION_2024:
+ return 1001;
case Edition.EDITION_1_TEST_ONLY:
return 1;
case Edition.EDITION_2_TEST_ONLY:
@@ -116,6 +147,8 @@ export function editionToNumber(object: Edition): number {
return 99998;
case Edition.EDITION_99999_TEST_ONLY:
return 99999;
+ case Edition.EDITION_MAX:
+ return 2147483647;
case Edition.UNRECOGNIZED:
default:
return -1;
@@ -357,12 +390,12 @@ export interface FieldDescriptorProto {
* If true, this is a proto3 "optional". When a proto3 field is optional, it
* tracks presence regardless of field type.
*
- * When proto3_optional is true, this field must be belong to a oneof to
- * signal to old proto3 clients that presence is tracked for this field. This
- * oneof is known as a "synthetic" oneof, and this field must be its sole
- * member (each proto3 optional field gets its own synthetic oneof). Synthetic
- * oneofs exist in the descriptor only, and do not generate any API. Synthetic
- * oneofs must be ordered after all "real" oneofs.
+ * When proto3_optional is true, this field must belong to a oneof to signal
+ * to old proto3 clients that presence is tracked for this field. This oneof
+ * is known as a "synthetic" oneof, and this field must be its sole member
+ * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
+ * exist in the descriptor only, and do not generate any API. Synthetic oneofs
+ * must be ordered after all "real" oneofs.
*
* For message fields, proto3_optional doesn't create any semantic change,
* since non-repeated message fields always track presence. However it still
@@ -739,12 +772,16 @@ export interface FileOptions {
*/
javaGenerateEqualsAndHash: boolean;
/**
- * If set true, then the Java2 code generator will generate code that
- * throws an exception whenever an attempt is made to assign a non-UTF-8
- * byte sequence to a string field.
- * Message reflection will do the same.
- * However, an extension field still accepts non-UTF-8 byte sequences.
- * This option has no effect on when used with the lite runtime.
+ * A proto2 file can set this to true to opt in to UTF-8 checking for Java,
+ * which will throw an exception if invalid UTF-8 is parsed from the wire or
+ * assigned to a string field.
+ *
+ * TODO: clarify exactly what kinds of field types this option
+ * applies to, and update these docs accordingly.
+ *
+ * Proto3 files already perform these checks. Setting the option explicitly to
+ * false has no effect: it cannot be used to opt proto3 files out of UTF-8
+ * checks.
*/
javaStringCheckUtf8: boolean;
optimizeFor: FileOptions_OptimizeMode;
@@ -771,7 +808,6 @@ export interface FileOptions {
ccGenericServices: boolean;
javaGenericServices: boolean;
pyGenericServices: boolean;
- phpGenericServices: boolean;
/**
* Is this file deprecated?
* Depending on the target platform, this can emit Deprecated annotations
@@ -925,10 +961,6 @@ export interface MessageOptions {
*/
deprecated: boolean;
/**
- * NOTE: Do not set the option in .proto files. Always use the maps syntax
- * instead. The option should only be implicitly set by the proto compiler
- * parser.
- *
* Whether the message is an automatically generated map entry type for the
* maps field.
*
@@ -946,6 +978,10 @@ export interface MessageOptions {
* use a native map in the target language to hold the keys and values.
* The reflection APIs in such implementations still need to work as
* if the field is a repeated message field.
+ *
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
+ * instead. The option should only be implicitly set by the proto compiler
+ * parser.
*/
mapEntry: boolean;
/**
@@ -1023,19 +1059,11 @@ export interface FieldOptions {
* call from multiple threads concurrently, while non-const methods continue
* to require exclusive access.
*
- * Note that implementations may choose not to check required fields within
- * a lazy sub-message. That is, calling IsInitialized() on the outer message
- * may return true even if the inner message has missing required fields.
- * This is necessary because otherwise the inner message would have to be
- * parsed in order to perform the check, defeating the purpose of lazy
- * parsing. An implementation which chooses not to check required fields
- * must be consistent about it. That is, for any particular sub-message, the
- * implementation must either *always* check its required fields, or *never*
- * check its required fields, regardless of whether or not the message has
- * been parsed.
- *
- * As of May 2022, lazy verifies the contents of the byte stream during
- * parsing. An invalid byte stream will cause the overall parsing to fail.
+ * Note that lazy message fields are still eagerly verified to check
+ * ill-formed wireformat or missing required fields. Calling IsInitialized()
+ * on the outer message would fail if the inner message has missing required
+ * fields. Failed verification would result in parsing failure (except when
+ * uninitialized messages are acceptable).
*/
lazy: boolean;
/**
@@ -1062,8 +1090,9 @@ export interface FieldOptions {
targets: FieldOptions_OptionTargetType[];
editionDefaults: FieldOptions_EditionDefault[];
/** Any features defined in the specific edition. */
- features:
- | FeatureSet
+ features: FeatureSet | undefined;
+ featureSupport:
+ | FieldOptions_FeatureSupport
| undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
@@ -1366,6 +1395,32 @@ export interface FieldOptions_EditionDefault {
value: string;
}
+/** Information about the support window of a feature. */
+export interface FieldOptions_FeatureSupport {
+ /**
+ * The edition that this feature was first available in. In editions
+ * earlier than this one, the default assigned to EDITION_LEGACY will be
+ * used, and proto files will not be able to override it.
+ */
+ editionIntroduced: Edition;
+ /**
+ * The edition this feature becomes deprecated in. Using this after this
+ * edition may trigger warnings.
+ */
+ editionDeprecated: Edition;
+ /**
+ * The deprecation warning text if this feature is used after the edition it
+ * was marked deprecated in.
+ */
+ deprecationWarning: string;
+ /**
+ * The edition this feature is no longer available in. In editions after
+ * this one, the last default assigned will be used, and proto files will
+ * not be able to override it.
+ */
+ editionRemoved: Edition;
+}
+
export interface OneofOptions {
/** Any features defined in the specific edition. */
features:
@@ -1425,6 +1480,10 @@ export interface EnumValueOptions {
* credentials.
*/
debugRedact: boolean;
+ /** Information about the support window of a feature value. */
+ featureSupport:
+ | FieldOptions_FeatureSupport
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1742,8 +1801,8 @@ export function featureSet_RepeatedFieldEncodingToNumber(object: FeatureSet_Repe
export enum FeatureSet_Utf8Validation {
UTF8_VALIDATION_UNKNOWN = "UTF8_VALIDATION_UNKNOWN",
- NONE = "NONE",
VERIFY = "VERIFY",
+ NONE = "NONE",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -1752,12 +1811,12 @@ export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8V
case 0:
case "UTF8_VALIDATION_UNKNOWN":
return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
- case 1:
- case "NONE":
- return FeatureSet_Utf8Validation.NONE;
case 2:
case "VERIFY":
return FeatureSet_Utf8Validation.VERIFY;
+ case 3:
+ case "NONE":
+ return FeatureSet_Utf8Validation.NONE;
case -1:
case "UNRECOGNIZED":
default:
@@ -1769,10 +1828,10 @@ export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validatio
switch (object) {
case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
return "UTF8_VALIDATION_UNKNOWN";
- case FeatureSet_Utf8Validation.NONE:
- return "NONE";
case FeatureSet_Utf8Validation.VERIFY:
return "VERIFY";
+ case FeatureSet_Utf8Validation.NONE:
+ return "NONE";
case FeatureSet_Utf8Validation.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -1783,10 +1842,10 @@ export function featureSet_Utf8ValidationToNumber(object: FeatureSet_Utf8Validat
switch (object) {
case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
return 0;
- case FeatureSet_Utf8Validation.NONE:
- return 1;
case FeatureSet_Utf8Validation.VERIFY:
return 2;
+ case FeatureSet_Utf8Validation.NONE:
+ return 3;
case FeatureSet_Utf8Validation.UNRECOGNIZED:
default:
return -1;
@@ -1927,7 +1986,12 @@ export interface FeatureSetDefaults {
*/
export interface FeatureSetDefaults_FeatureSetEditionDefault {
edition: Edition;
- features: FeatureSet | undefined;
+ /** Defaults of features that can be overridden in this edition. */
+ overridableFeatures:
+ | FeatureSet
+ | undefined;
+ /** Defaults of features that can't be overridden in this edition. */
+ fixedFeatures: FeatureSet | undefined;
}
/**
@@ -1989,7 +2053,7 @@ export interface SourceCodeInfo_Location {
* location.
*
* Each element is a field number or an index. They form a path from
- * the root FileDescriptorProto to the place where the definition occurs.
+ * the root FileDescriptorProto to the place where the definition appears.
* For example, this path:
* [ 4, 3, 2, 7, 1 ]
* refers to:
@@ -3987,7 +4051,6 @@ function createBaseFileOptions(): FileOptions {
ccGenericServices: false,
javaGenericServices: false,
pyGenericServices: false,
- phpGenericServices: false,
deprecated: false,
ccEnableArenas: false,
objcClassPrefix: "",
@@ -4034,9 +4097,6 @@ export const FileOptions = {
if (message.pyGenericServices === true) {
writer.uint32(144).bool(message.pyGenericServices);
}
- if (message.phpGenericServices === true) {
- writer.uint32(336).bool(message.phpGenericServices);
- }
if (message.deprecated === true) {
writer.uint32(184).bool(message.deprecated);
}
@@ -4150,13 +4210,6 @@ export const FileOptions = {
message.pyGenericServices = reader.bool();
continue;
- case 42:
- if (tag !== 336) {
- break;
- }
-
- message.phpGenericServices = reader.bool();
- continue;
case 23:
if (tag !== 184) {
break;
@@ -4259,7 +4312,6 @@ export const FileOptions = {
ccGenericServices: isSet(object.ccGenericServices) ? globalThis.Boolean(object.ccGenericServices) : false,
javaGenericServices: isSet(object.javaGenericServices) ? globalThis.Boolean(object.javaGenericServices) : false,
pyGenericServices: isSet(object.pyGenericServices) ? globalThis.Boolean(object.pyGenericServices) : false,
- phpGenericServices: isSet(object.phpGenericServices) ? globalThis.Boolean(object.phpGenericServices) : false,
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
ccEnableArenas: isSet(object.ccEnableArenas) ? globalThis.Boolean(object.ccEnableArenas) : false,
objcClassPrefix: isSet(object.objcClassPrefix) ? globalThis.String(object.objcClassPrefix) : "",
@@ -4308,9 +4360,6 @@ export const FileOptions = {
if (message.pyGenericServices === true) {
obj.pyGenericServices = message.pyGenericServices;
}
- if (message.phpGenericServices === true) {
- obj.phpGenericServices = message.phpGenericServices;
- }
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
@@ -4362,7 +4411,6 @@ export const FileOptions = {
message.ccGenericServices = object.ccGenericServices ?? false;
message.javaGenericServices = object.javaGenericServices ?? false;
message.pyGenericServices = object.pyGenericServices ?? false;
- message.phpGenericServices = object.phpGenericServices ?? false;
message.deprecated = object.deprecated ?? false;
message.ccEnableArenas = object.ccEnableArenas ?? false;
message.objcClassPrefix = object.objcClassPrefix ?? "";
@@ -4561,6 +4609,7 @@ function createBaseFieldOptions(): FieldOptions {
targets: [],
editionDefaults: [],
features: undefined,
+ featureSupport: undefined,
uninterpretedOption: [],
};
}
@@ -4605,6 +4654,9 @@ export const FieldOptions = {
if (message.features !== undefined) {
FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();
}
+ if (message.featureSupport !== undefined) {
+ FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(178).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4712,6 +4764,13 @@ export const FieldOptions = {
message.features = FeatureSet.decode(reader, reader.uint32());
continue;
+ case 22:
+ if (tag !== 178) {
+ break;
+ }
+
+ message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -4748,6 +4807,9 @@ export const FieldOptions = {
? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e))
: [],
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ featureSupport: isSet(object.featureSupport)
+ ? FieldOptions_FeatureSupport.fromJSON(object.featureSupport)
+ : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4792,6 +4854,9 @@ export const FieldOptions = {
if (message.features !== undefined) {
obj.features = FeatureSet.toJSON(message.features);
}
+ if (message.featureSupport !== undefined) {
+ obj.featureSupport = FieldOptions_FeatureSupport.toJSON(message.featureSupport);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4817,6 +4882,9 @@ export const FieldOptions = {
message.features = (object.features !== undefined && object.features !== null)
? FeatureSet.fromPartial(object.features)
: undefined;
+ message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)
+ ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -4896,6 +4964,119 @@ export const FieldOptions_EditionDefault = {
},
};
+function createBaseFieldOptions_FeatureSupport(): FieldOptions_FeatureSupport {
+ return {
+ editionIntroduced: Edition.EDITION_UNKNOWN,
+ editionDeprecated: Edition.EDITION_UNKNOWN,
+ deprecationWarning: "",
+ editionRemoved: Edition.EDITION_UNKNOWN,
+ };
+}
+
+export const FieldOptions_FeatureSupport = {
+ encode(message: FieldOptions_FeatureSupport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.editionIntroduced !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(8).int32(editionToNumber(message.editionIntroduced));
+ }
+ if (message.editionDeprecated !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(16).int32(editionToNumber(message.editionDeprecated));
+ }
+ if (message.deprecationWarning !== "") {
+ writer.uint32(26).string(message.deprecationWarning);
+ }
+ if (message.editionRemoved !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(32).int32(editionToNumber(message.editionRemoved));
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_FeatureSupport {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFieldOptions_FeatureSupport();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.editionIntroduced = editionFromJSON(reader.int32());
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.editionDeprecated = editionFromJSON(reader.int32());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.deprecationWarning = reader.string();
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.editionRemoved = editionFromJSON(reader.int32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FieldOptions_FeatureSupport {
+ return {
+ editionIntroduced: isSet(object.editionIntroduced)
+ ? editionFromJSON(object.editionIntroduced)
+ : Edition.EDITION_UNKNOWN,
+ editionDeprecated: isSet(object.editionDeprecated)
+ ? editionFromJSON(object.editionDeprecated)
+ : Edition.EDITION_UNKNOWN,
+ deprecationWarning: isSet(object.deprecationWarning) ? globalThis.String(object.deprecationWarning) : "",
+ editionRemoved: isSet(object.editionRemoved) ? editionFromJSON(object.editionRemoved) : Edition.EDITION_UNKNOWN,
+ };
+ },
+
+ toJSON(message: FieldOptions_FeatureSupport): unknown {
+ const obj: any = {};
+ if (message.editionIntroduced !== Edition.EDITION_UNKNOWN) {
+ obj.editionIntroduced = editionToJSON(message.editionIntroduced);
+ }
+ if (message.editionDeprecated !== Edition.EDITION_UNKNOWN) {
+ obj.editionDeprecated = editionToJSON(message.editionDeprecated);
+ }
+ if (message.deprecationWarning !== "") {
+ obj.deprecationWarning = message.deprecationWarning;
+ }
+ if (message.editionRemoved !== Edition.EDITION_UNKNOWN) {
+ obj.editionRemoved = editionToJSON(message.editionRemoved);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {
+ return FieldOptions_FeatureSupport.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {
+ const message = createBaseFieldOptions_FeatureSupport();
+ message.editionIntroduced = object.editionIntroduced ?? Edition.EDITION_UNKNOWN;
+ message.editionDeprecated = object.editionDeprecated ?? Edition.EDITION_UNKNOWN;
+ message.deprecationWarning = object.deprecationWarning ?? "";
+ message.editionRemoved = object.editionRemoved ?? Edition.EDITION_UNKNOWN;
+ return message;
+ },
+};
+
function createBaseOneofOptions(): OneofOptions {
return { features: undefined, uninterpretedOption: [] };
}
@@ -5106,7 +5287,13 @@ export const EnumOptions = {
};
function createBaseEnumValueOptions(): EnumValueOptions {
- return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };
+ return {
+ deprecated: false,
+ features: undefined,
+ debugRedact: false,
+ featureSupport: undefined,
+ uninterpretedOption: [],
+ };
}
export const EnumValueOptions = {
@@ -5120,6 +5307,9 @@ export const EnumValueOptions = {
if (message.debugRedact === true) {
writer.uint32(24).bool(message.debugRedact);
}
+ if (message.featureSupport !== undefined) {
+ FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(34).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -5154,6 +5344,13 @@ export const EnumValueOptions = {
message.debugRedact = reader.bool();
continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -5175,6 +5372,9 @@ export const EnumValueOptions = {
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
+ featureSupport: isSet(object.featureSupport)
+ ? FieldOptions_FeatureSupport.fromJSON(object.featureSupport)
+ : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -5192,6 +5392,9 @@ export const EnumValueOptions = {
if (message.debugRedact === true) {
obj.debugRedact = message.debugRedact;
}
+ if (message.featureSupport !== undefined) {
+ obj.featureSupport = FieldOptions_FeatureSupport.toJSON(message.featureSupport);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -5208,6 +5411,9 @@ export const EnumValueOptions = {
? FeatureSet.fromPartial(object.features)
: undefined;
message.debugRedact = object.debugRedact ?? false;
+ message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)
+ ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -5904,7 +6110,7 @@ export const FeatureSetDefaults = {
};
function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {
- return { edition: Edition.EDITION_UNKNOWN, features: undefined };
+ return { edition: Edition.EDITION_UNKNOWN, overridableFeatures: undefined, fixedFeatures: undefined };
}
export const FeatureSetDefaults_FeatureSetEditionDefault = {
@@ -5912,8 +6118,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {
if (message.edition !== Edition.EDITION_UNKNOWN) {
writer.uint32(24).int32(editionToNumber(message.edition));
}
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
+ if (message.overridableFeatures !== undefined) {
+ FeatureSet.encode(message.overridableFeatures, writer.uint32(34).fork()).ldelim();
+ }
+ if (message.fixedFeatures !== undefined) {
+ FeatureSet.encode(message.fixedFeatures, writer.uint32(42).fork()).ldelim();
}
return writer;
},
@@ -5932,12 +6141,19 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {
message.edition = editionFromJSON(reader.int32());
continue;
- case 2:
- if (tag !== 18) {
+ case 4:
+ if (tag !== 34) {
break;
}
- message.features = FeatureSet.decode(reader, reader.uint32());
+ message.overridableFeatures = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.fixedFeatures = FeatureSet.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
@@ -5951,7 +6167,10 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {
fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {
return {
edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ overridableFeatures: isSet(object.overridableFeatures)
+ ? FeatureSet.fromJSON(object.overridableFeatures)
+ : undefined,
+ fixedFeatures: isSet(object.fixedFeatures) ? FeatureSet.fromJSON(object.fixedFeatures) : undefined,
};
},
@@ -5960,8 +6179,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {
if (message.edition !== Edition.EDITION_UNKNOWN) {
obj.edition = editionToJSON(message.edition);
}
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
+ if (message.overridableFeatures !== undefined) {
+ obj.overridableFeatures = FeatureSet.toJSON(message.overridableFeatures);
+ }
+ if (message.fixedFeatures !== undefined) {
+ obj.fixedFeatures = FeatureSet.toJSON(message.fixedFeatures);
}
return obj;
},
@@ -5974,8 +6196,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {
): FeatureSetDefaults_FeatureSetEditionDefault {
const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
message.edition = object.edition ?? Edition.EDITION_UNKNOWN;
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
+ message.overridableFeatures = (object.overridableFeatures !== undefined && object.overridableFeatures !== null)
+ ? FeatureSet.fromPartial(object.overridableFeatures)
+ : undefined;
+ message.fixedFeatures = (object.fixedFeatures !== undefined && object.fixedFeatures !== null)
+ ? FeatureSet.fromPartial(object.fixedFeatures)
: undefined;
return message;
},
diff --git a/frontend/src/types/proto/store/data_source.ts b/frontend/src/types/proto/store/data_source.ts
index 8f34b6660a..b629d3df48 100644
--- a/frontend/src/types/proto/store/data_source.ts
+++ b/frontend/src/types/proto/store/data_source.ts
@@ -256,6 +256,8 @@ export interface DataSourceOptions {
redisType: DataSourceOptions_RedisType;
/** Use SSL to connect to the data source. By default, we use system default SSL configuration. */
useSsl: boolean;
+ /** Cluster is the cluster name for the data source. Used by CockroachDB. */
+ cluster: string;
}
export enum DataSourceOptions_AuthenticationType {
@@ -716,6 +718,7 @@ function createBaseDataSourceOptions(): DataSourceOptions {
masterObfuscatedPassword: "",
redisType: DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED,
useSsl: false,
+ cluster: "",
};
}
@@ -790,6 +793,9 @@ export const DataSourceOptions = {
if (message.useSsl === true) {
writer.uint32(192).bool(message.useSsl);
}
+ if (message.cluster !== "") {
+ writer.uint32(202).string(message.cluster);
+ }
return writer;
},
@@ -961,6 +967,13 @@ export const DataSourceOptions = {
message.useSsl = reader.bool();
continue;
+ case 25:
+ if (tag !== 202) {
+ break;
+ }
+
+ message.cluster = reader.string();
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -1011,6 +1024,7 @@ export const DataSourceOptions = {
? dataSourceOptions_RedisTypeFromJSON(object.redisType)
: DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED,
useSsl: isSet(object.useSsl) ? globalThis.Boolean(object.useSsl) : false,
+ cluster: isSet(object.cluster) ? globalThis.String(object.cluster) : "",
};
},
@@ -1085,6 +1099,9 @@ export const DataSourceOptions = {
if (message.useSsl === true) {
obj.useSsl = message.useSsl;
}
+ if (message.cluster !== "") {
+ obj.cluster = message.cluster;
+ }
return obj;
},
@@ -1122,6 +1139,7 @@ export const DataSourceOptions = {
message.masterObfuscatedPassword = object.masterObfuscatedPassword ?? "";
message.redisType = object.redisType ?? DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED;
message.useSsl = object.useSsl ?? false;
+ message.cluster = object.cluster ?? "";
return message;
},
};
diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.ts
index 163df1cdbb..c7b5bf4c3a 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -540,6 +540,8 @@ export interface DataSource {
masterUsername: string;
masterPassword: string;
redisType: DataSource_RedisType;
+ /** Cluster is the cluster name for the data source. Used by CockroachDB. */
+ cluster: string;
}
export enum DataSource_AuthenticationType {
@@ -2384,6 +2386,7 @@ function createBaseDataSource(): DataSource {
masterUsername: "",
masterPassword: "",
redisType: DataSource_RedisType.REDIS_TYPE_UNSPECIFIED,
+ cluster: "",
};
}
@@ -2488,6 +2491,9 @@ export const DataSource = {
if (message.redisType !== DataSource_RedisType.REDIS_TYPE_UNSPECIFIED) {
writer.uint32(272).int32(dataSource_RedisTypeToNumber(message.redisType));
}
+ if (message.cluster !== "") {
+ writer.uint32(282).string(message.cluster);
+ }
return writer;
},
@@ -2729,6 +2735,13 @@ export const DataSource = {
message.redisType = dataSource_RedisTypeFromJSON(reader.int32());
continue;
+ case 35:
+ if (tag !== 282) {
+ break;
+ }
+
+ message.cluster = reader.string();
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -2785,6 +2798,7 @@ export const DataSource = {
redisType: isSet(object.redisType)
? dataSource_RedisTypeFromJSON(object.redisType)
: DataSource_RedisType.REDIS_TYPE_UNSPECIFIED,
+ cluster: isSet(object.cluster) ? globalThis.String(object.cluster) : "",
};
},
@@ -2889,6 +2903,9 @@ export const DataSource = {
if (message.redisType !== DataSource_RedisType.REDIS_TYPE_UNSPECIFIED) {
obj.redisType = dataSource_RedisTypeToJSON(message.redisType);
}
+ if (message.cluster !== "") {
+ obj.cluster = message.cluster;
+ }
return obj;
},
@@ -2934,6 +2951,7 @@ export const DataSource = {
message.masterUsername = object.masterUsername ?? "";
message.masterPassword = object.masterPassword ?? "";
message.redisType = object.redisType ?? DataSource_RedisType.REDIS_TYPE_UNSPECIFIED;
+ message.cluster = object.cluster ?? "";
return message;
},
};