Skip to content

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

feat(databricks): add UI (#12384)

Azusain424ad5c358d8
diff --git a/backend/api/v1/common.go b/backend/api/v1/common.go
index 5352bba33f..15b7998336 100644
--- a/backend/api/v1/common.go
+++ b/backend/api/v1/common.go
@@ -405,6 +405,8 @@ func convertEngine(engine v1pb.Engine) storepb.Engine {
return storepb.Engine_BIGQUERY
case v1pb.Engine_DYNAMODB:
return storepb.Engine_DYNAMODB
+ case v1pb.Engine_DATABRICKS:
+ return storepb.Engine_DATABRICKS
}
return storepb.Engine_ENGINE_UNSPECIFIED
}
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.go
index 936985251b..5c929427bd 100644
--- a/backend/api/v1/instance_service.go
+++ b/backend/api/v1/instance_service.go
@@ -1342,6 +1342,8 @@ func (s *InstanceService) convertToDataSourceMessage(dataSource *v1pb.DataSource
ReplicaSet: dataSource.ReplicaSet,
DirectConnection: dataSource.DirectConnection,
Region: dataSource.Region,
+ AccountID: dataSource.AccountId,
+ WarehouseID: dataSource.WarehouseId,
}, nil
}
diff --git a/backend/component/dbfactory/dbfactory.go b/backend/component/dbfactory/dbfactory.go
index 3660e6e2cd..ec1b51c518 100644
--- a/backend/component/dbfactory/dbfactory.go
+++ b/backend/component/dbfactory/dbfactory.go
@@ -227,6 +227,8 @@ func (d *DBFactory) GetDataSourceDriver(ctx context.Context, instance *store.Ins
ReplicaSet: dataSource.ReplicaSet,
DirectConnection: dataSource.DirectConnection,
Region: dataSource.Region,
+ AccountID: dataSource.AccountID,
+ WarehouseID: dataSource.WarehouseID,
},
)
if err != nil {
diff --git a/backend/plugin/db/databricks/databricks.go b/backend/plugin/db/databricks/databricks.go
index ac63daa4f9..739ade5340 100644
--- a/backend/plugin/db/databricks/databricks.go
+++ b/backend/plugin/db/databricks/databricks.go
@@ -55,6 +55,9 @@ func (d *Driver) Open(_ context.Context, _ storepb.Engine, config db.ConnectionC
}
d.Client = client
+ if config.WarehouseID == "" {
+ return nil, errors.New("Warehouse ID must be set")
+ }
d.WarehouseID = config.WarehouseID
d.curCatalog = config.Database
return d, nil
diff --git a/backend/server/ultimate.go b/backend/server/ultimate.go
index 80ff29ebea..1676a2477f 100644
--- a/backend/server/ultimate.go
+++ b/backend/server/ultimate.go
@@ -6,6 +6,7 @@ import (
// Drivers.
_ "github.com/bytebase/bytebase/backend/plugin/db/bigquery"
_ "github.com/bytebase/bytebase/backend/plugin/db/clickhouse"
+ _ "github.com/bytebase/bytebase/backend/plugin/db/databricks"
_ "github.com/bytebase/bytebase/backend/plugin/db/dm"
_ "github.com/bytebase/bytebase/backend/plugin/db/dynamodb"
_ "github.com/bytebase/bytebase/backend/plugin/db/elasticsearch"
diff --git a/backend/store/data_source.go b/backend/store/data_source.go
index 6d85c75563..affeb4f6b5 100644
--- a/backend/store/data_source.go
+++ b/backend/store/data_source.go
@@ -50,6 +50,8 @@ type DataSourceMessage struct {
ReplicaSet string
DirectConnection bool
Region string
+ AccountID string
+ WarehouseID string
}
// Copy returns a copy of the data source message.
@@ -193,6 +195,8 @@ func (*Store) listDataSourceV2(ctx context.Context, tx *Tx, instanceID string) (
dataSourceMessage.ReplicaSet = dataSourceOptions.ReplicaSet
dataSourceMessage.DirectConnection = dataSourceOptions.DirectConnection
dataSourceMessage.Region = dataSourceOptions.Region
+ dataSourceMessage.AccountID = dataSourceOptions.AccountId
+ dataSourceMessage.WarehouseID = dataSourceOptions.WarehouseId
dataSourceMessages = append(dataSourceMessages, &dataSourceMessage)
}
if err := rows.Err(); err != nil {
@@ -413,6 +417,8 @@ func (*Store) addDataSourceToInstanceImplV2(ctx context.Context, tx *Tx, instanc
ReplicaSet: dataSource.ReplicaSet,
DirectConnection: dataSource.DirectConnection,
Region: dataSource.Region,
+ WarehouseId: dataSource.WarehouseID,
+ AccountId: dataSource.AccountID,
}
protoBytes, err := protojson.Marshal(&dataSourceOptions)
if err != nil {
diff --git a/frontend/src/assets/db-databricks.svg b/frontend/src/assets/db-databricks.svg
new file mode 100644
index 0000000000..553c3e4124
--- /dev/null
+++ b/frontend/src/assets/db-databricks.svg
@@ -0,0 +1,19 @@
+<svg version="1.1" id="Layer_1" xmlns:x="ns_extend;" xmlns:i="ns_ai;" xmlns:graph="ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40.1 42" style="enable-background:new 0 0 40.1 42;" xml:space="preserve">
+ <style type="text/css">
+ .st0{fill:#FF3621;}
+ </style>
+ <metadata>
+ <sfw xmlns="ns_sfw;">
+ <slices>
+ </slices>
+ <sliceSourceBounds bottomLeftOrigin="true" height="42" width="40.1" x="-69.1" y="-10.5">
+ </sliceSourceBounds>
+ </sfw>
+ </metadata>
+ <g>
+ <path class="st0" d="M40.1,31.1v-7.4l-0.8-0.5L20.1,33.7l-18.2-10l0-4.3l18.2,9.9l20.1-10.9v-7.3l-0.8-0.5L20.1,21.2L2.6,11.6
+ L20.1,2l14.1,7.7l1.1-0.6V8.3L20.1,0L0,10.9V12L20.1,23l18.2-10v4.4l-18.2,10L0.8,16.8L0,17.3v7.4l20.1,10.9l18.2-9.9v4.3l-18.2,10
+ L0.8,29.5L0,30v1.1L20.1,42L40.1,31.1z">
+ </path>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
index c689818036..ccdf8fa5b2 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
@@ -4,7 +4,8 @@
v-if="
basicInfo.engine !== Engine.SPANNER &&
basicInfo.engine !== Engine.BIGQUERY &&
- basicInfo.engine !== Engine.DYNAMODB
+ basicInfo.engine !== Engine.DYNAMODB &&
+ basicInfo.engine !== Engine.DATABRICKS
"
>
<div
@@ -561,6 +562,54 @@ MIIEvQ...
</div>
</template>
+ <template v-if="basicInfo.engine === Engine.DATABRICKS">
+ <div>
+ <div class="textlabel black mt-4">Warehouse ID</div>
+ <NInput
+ v-model:value="dataSource.warehouseId"
+ class="mt-2"
+ :disabled="!allowEdit"
+ />
+ </div>
+ <div class="mt-2 sm:col-span-3 sm:col-start-1">
+ <NRadioGroup v-model:value="databricksAuth">
+ <NRadio :value="'PASSWORD'"> Password </NRadio>
+ <NRadio :value="'ACCESS_TOKEN'"> Access Token </NRadio>
+ </NRadioGroup>
+ </div>
+
+ <div v-if="databricksAuth === 'PASSWORD'">
+ <div class="textlabel black mt-4">Username</div>
+ <NInput
+ v-model:value="dataSource.username"
+ class="mt-2 w-full"
+ :disabled="!allowEdit"
+ />
+ <div class="textlabel black mt-4">Password</div>
+ <NInput
+ v-model:value="dataSource.password"
+ class="mt-2 w-full"
+ :disabled="!allowEdit"
+ />
+ <div class="textlabel black mt-4">Account ID</div>
+ <NInput
+ v-model:value="dataSource.accountId"
+ class="mt-2 w-full"
+ :disabled="!allowEdit"
+ placeholder="optional"
+ />
+ </div>
+ <div v-else>
+ <div class="textlabel black mt-4">Token</div>
+ <NInput
+ v-model:value="dataSource.authenticationPrivateKey"
+ class="mt-2 w-full"
+ :disabled="!allowEdit"
+ placeholder="personal access token"
+ />
+ </div>
+ </template>
+
<template v-if="showAuthenticationDatabase">
<div class="mt-4 sm:col-span-3 sm:col-start-1">
<div class="flex flex-row items-center space-x-2">
@@ -726,7 +775,7 @@ MIIEvQ...
<script setup lang="ts">
import { NButton, NRadioGroup, NRadio, NCheckbox, NInput } from "naive-ui";
-import { watch, reactive, computed } from "vue";
+import { watch, reactive, computed, ref } from "vue";
import { useI18n } from "vue-i18n";
import type { DataSourceOptions } from "@/types/dataSource";
import { Engine } from "@/types/proto/v1/common";
@@ -795,6 +844,8 @@ watch(
{ immediate: true, deep: true }
);
+const databricksAuth = ref("PASSWORD");
+
const hiveAuthentication = computed(() => {
return props.dataSource.saslConfig?.krbConfig ? "KERBEROS" : "PASSWORD";
});
diff --git a/frontend/src/components/InstanceForm/Form.vue b/frontend/src/components/InstanceForm/Form.vue
index d63755134d..e5fe6e7da5 100644
--- a/frontend/src/components/InstanceForm/Form.vue
+++ b/frontend/src/components/InstanceForm/Form.vue
@@ -167,6 +167,7 @@
v-if="
basicInfo.engine !== Engine.SPANNER &&
basicInfo.engine !== Engine.BIGQUERY &&
+ basicInfo.engine !== Engine.DATABRICKS &&
adminDataSource.authenticationType !==
DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM
"
diff --git a/frontend/src/components/InstanceForm/constants.ts b/frontend/src/components/InstanceForm/constants.ts
index 7a52a182a7..18cd9ae225 100644
--- a/frontend/src/components/InstanceForm/constants.ts
+++ b/frontend/src/components/InstanceForm/constants.ts
@@ -37,6 +37,8 @@ export const defaultPortForEngine = (engine: Engine) => {
return "9200";
} else if (engine == Engine.DYNAMODB) {
return "";
+ } else if (engine == Engine.DATABRICKS) {
+ return "";
}
return "3306";
};
@@ -81,6 +83,8 @@ export const EngineIconPath: Record<string, string> = {
).href,
[Engine.BIGQUERY]: new URL("@/assets/bigquery.svg", import.meta.url).href,
[Engine.DYNAMODB]: new URL("@/assets/db-dynamodb.svg", import.meta.url).href,
+ [Engine.DATABRICKS]: new URL("@/assets/db-databricks.svg", import.meta.url)
+ .href,
};
export const MongoDBConnectionStringSchemaList = [
diff --git a/frontend/src/types/instance.ts b/frontend/src/types/instance.ts
index 489c99ad5d..fb230d8d17 100644
--- a/frontend/src/types/instance.ts
+++ b/frontend/src/types/instance.ts
@@ -22,6 +22,7 @@ export const EngineTypeList = [
"RISINGWAVE",
"BIGQUERY",
"DYNAMODB",
+ "DATABRICKS",
] as const;
export type EngineType = (typeof EngineTypeList)[number];
@@ -62,6 +63,8 @@ export function convertEngineType(type: EngineType): Engine {
return Engine.BIGQUERY;
case "DYNAMODB":
return Engine.DYNAMODB;
+ case "DATABRICKS":
+ return Engine.DATABRICKS;
}
return Engine.ENGINE_UNSPECIFIED;
}
@@ -106,6 +109,8 @@ export function defaultCharset(type: EngineType): string {
return "";
case "DYNAMODB":
return "";
+ case "DATABRICKS":
+ return "";
}
return "";
}
@@ -146,6 +151,8 @@ export function engineName(type: EngineType): string {
return "BigQuery";
case "DYNAMODB":
return "DynamoDB";
+ case "DATABRICKS":
+ return "Databricks";
}
return "";
}
@@ -184,6 +191,8 @@ export function defaultCollation(type: EngineType): string {
return "";
case "DYNAMODB":
return "";
+ case "DATABRICKS":
+ return "";
}
}
diff --git a/frontend/src/types/proto/google/protobuf/any.ts b/frontend/src/types/proto/google/protobuf/any.ts
index afc5514bd2..1c425c789d 100644
--- a/frontend/src/types/proto/google/protobuf/any.ts
+++ b/frontend/src/types/proto/google/protobuf/any.ts
@@ -34,7 +34,7 @@ export const protobufPackage = "google.protobuf";
* foo = any.unpack(Foo.getDefaultInstance());
* }
*
- * Example 3: Pack and unpack a message in Python.
+ * Example 3: Pack and unpack a message in Python.
*
* foo = Foo(...)
* any = Any()
@@ -44,7 +44,7 @@ export const protobufPackage = "google.protobuf";
* any.Unpack(foo)
* ...
*
- * Example 4: Pack and unpack a message in Go
+ * Example 4: Pack and unpack a message in Go
*
* foo := &pb.Foo{...}
* any, err := anypb.New(foo)
@@ -64,7 +64,7 @@ export const protobufPackage = "google.protobuf";
* name "y.z".
*
* JSON
- *
+ * ====
* The JSON representation of an `Any` value uses the regular
* representation of the deserialized, embedded message, with an
* additional field `@type` which contains the type URL. Example:
@@ -116,7 +116,8 @@ export interface Any {
*
* Note: this functionality is not currently available in the official
* protobuf release, and it is not used for type URLs beginning with
- * type.googleapis.com.
+ * type.googleapis.com. As of May 2023, there are no widely used type server
+ * implementations and no plans to implement one.
*
* Schemes other than `http`, `https` (or the empty scheme) might be
* used with implementation specific semantics.
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index e228fcead9..f12b30a9e2 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -4,6 +4,157 @@ import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
+/** The full set of known editions. */
+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
+ * files, but feature definitions must supply proto2/proto3 defaults for
+ * backwards compatibility.
+ */
+ EDITION_PROTO2 = "EDITION_PROTO2",
+ EDITION_PROTO3 = "EDITION_PROTO3",
+ /**
+ * EDITION_2023 - Editions that have been released. The specific values are arbitrary and
+ * should not be depended on, but they will always be time-ordered for easy
+ * 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.
+ */
+ EDITION_1_TEST_ONLY = "EDITION_1_TEST_ONLY",
+ EDITION_2_TEST_ONLY = "EDITION_2_TEST_ONLY",
+ 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",
+}
+
+export function editionFromJSON(object: any): Edition {
+ switch (object) {
+ 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;
+ case 999:
+ case "EDITION_PROTO3":
+ return Edition.EDITION_PROTO3;
+ 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;
+ case 2:
+ case "EDITION_2_TEST_ONLY":
+ return Edition.EDITION_2_TEST_ONLY;
+ case 99997:
+ case "EDITION_99997_TEST_ONLY":
+ return Edition.EDITION_99997_TEST_ONLY;
+ case 99998:
+ case "EDITION_99998_TEST_ONLY":
+ return Edition.EDITION_99998_TEST_ONLY;
+ 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:
+ return Edition.UNRECOGNIZED;
+ }
+}
+
+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:
+ return "EDITION_2_TEST_ONLY";
+ case Edition.EDITION_99997_TEST_ONLY:
+ return "EDITION_99997_TEST_ONLY";
+ case Edition.EDITION_99998_TEST_ONLY:
+ 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";
+ }
+}
+
+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:
+ return 2;
+ case Edition.EDITION_99997_TEST_ONLY:
+ return 99997;
+ case Edition.EDITION_99998_TEST_ONLY:
+ return 99998;
+ case Edition.EDITION_99999_TEST_ONLY:
+ return 99999;
+ case Edition.EDITION_MAX:
+ return 2147483647;
+ case Edition.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
/**
* The protocol compiler can output a FileDescriptorSet containing the .proto
* files it parses.
@@ -51,8 +202,8 @@ export interface FileDescriptorProto {
* If `edition` is present, this value must be "editions".
*/
syntax: string;
- /** The edition of the proto file, which is an opaque string. */
- edition: string;
+ /** The edition of the proto file. */
+ edition: Edition;
}
/** Describes a message type. */
@@ -96,6 +247,98 @@ export interface DescriptorProto_ReservedRange {
export interface ExtensionRangeOptions {
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
+ /**
+ * For external users: DO NOT USE. We are in the process of open sourcing
+ * extension declaration and executing internal cleanups before it can be
+ * used externally.
+ */
+ declaration: ExtensionRangeOptions_Declaration[];
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
+ /**
+ * The verification state of the range.
+ * TODO: flip the default to DECLARATION once all empty ranges
+ * are marked as UNVERIFIED.
+ */
+ verification: ExtensionRangeOptions_VerificationState;
+}
+
+/** The verification state of the extension range. */
+export enum ExtensionRangeOptions_VerificationState {
+ /** DECLARATION - All the extensions of the range must be declared. */
+ DECLARATION = "DECLARATION",
+ UNVERIFIED = "UNVERIFIED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function extensionRangeOptions_VerificationStateFromJSON(object: any): ExtensionRangeOptions_VerificationState {
+ switch (object) {
+ case 0:
+ case "DECLARATION":
+ return ExtensionRangeOptions_VerificationState.DECLARATION;
+ case 1:
+ case "UNVERIFIED":
+ return ExtensionRangeOptions_VerificationState.UNVERIFIED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;
+ }
+}
+
+export function extensionRangeOptions_VerificationStateToJSON(object: ExtensionRangeOptions_VerificationState): string {
+ switch (object) {
+ case ExtensionRangeOptions_VerificationState.DECLARATION:
+ return "DECLARATION";
+ case ExtensionRangeOptions_VerificationState.UNVERIFIED:
+ return "UNVERIFIED";
+ case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function extensionRangeOptions_VerificationStateToNumber(
+ object: ExtensionRangeOptions_VerificationState,
+): number {
+ switch (object) {
+ case ExtensionRangeOptions_VerificationState.DECLARATION:
+ return 0;
+ case ExtensionRangeOptions_VerificationState.UNVERIFIED:
+ return 1;
+ case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export interface ExtensionRangeOptions_Declaration {
+ /** The extension number declared within the extension range. */
+ number: number;
+ /**
+ * The fully-qualified name of the extension field. There must be a leading
+ * dot in front of the full name.
+ */
+ fullName: string;
+ /**
+ * The fully-qualified type name of the extension field. Unlike
+ * Metadata.type, Declaration.type must have a leading dot for messages
+ * and enums.
+ */
+ type: string;
+ /**
+ * If true, indicates that the number is reserved in the extension range,
+ * and any extension field with the number will fail to compile. Set this
+ * when a declared extension field is deleted.
+ */
+ reserved: boolean;
+ /**
+ * If true, indicates that the extension must be defined as repeated.
+ * Otherwise the extension must be defined as optional.
+ */
+ repeated: boolean;
}
/** Describes a field within a message. */
@@ -147,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
@@ -193,9 +436,10 @@ export enum FieldDescriptorProto_Type {
TYPE_STRING = "TYPE_STRING",
/**
* TYPE_GROUP - Tag-delimited aggregate.
- * Group type is deprecated and not supported in proto3. However, Proto3
+ * Group type is deprecated and not supported after google.protobuf. However, Proto3
* implementations should still be able to parse the group wire format and
- * treat group fields as unknown fields.
+ * treat group fields as unknown fields. In Editions, the group wire format
+ * can be enabled via the `message_encoding` feature.
*/
TYPE_GROUP = "TYPE_GROUP",
/** TYPE_MESSAGE - Length-delimited aggregate. */
@@ -367,8 +611,13 @@ export function fieldDescriptorProto_TypeToNumber(object: FieldDescriptorProto_T
export enum FieldDescriptorProto_Label {
/** LABEL_OPTIONAL - 0 is reserved for errors */
LABEL_OPTIONAL = "LABEL_OPTIONAL",
- LABEL_REQUIRED = "LABEL_REQUIRED",
LABEL_REPEATED = "LABEL_REPEATED",
+ /**
+ * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
+ * it's explicitly prohibited. In Editions, the `field_presence` feature
+ * can be used to get this behavior.
+ */
+ LABEL_REQUIRED = "LABEL_REQUIRED",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -377,12 +626,12 @@ export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptor
case 1:
case "LABEL_OPTIONAL":
return FieldDescriptorProto_Label.LABEL_OPTIONAL;
- case 2:
- case "LABEL_REQUIRED":
- return FieldDescriptorProto_Label.LABEL_REQUIRED;
case 3:
case "LABEL_REPEATED":
return FieldDescriptorProto_Label.LABEL_REPEATED;
+ case 2:
+ case "LABEL_REQUIRED":
+ return FieldDescriptorProto_Label.LABEL_REQUIRED;
case -1:
case "UNRECOGNIZED":
default:
@@ -394,10 +643,10 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
switch (object) {
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
return "LABEL_OPTIONAL";
- case FieldDescriptorProto_Label.LABEL_REQUIRED:
- return "LABEL_REQUIRED";
case FieldDescriptorProto_Label.LABEL_REPEATED:
return "LABEL_REPEATED";
+ case FieldDescriptorProto_Label.LABEL_REQUIRED:
+ return "LABEL_REQUIRED";
case FieldDescriptorProto_Label.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -408,10 +657,10 @@ export function fieldDescriptorProto_LabelToNumber(object: FieldDescriptorProto_
switch (object) {
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
return 1;
- case FieldDescriptorProto_Label.LABEL_REQUIRED:
- return 2;
case FieldDescriptorProto_Label.LABEL_REPEATED:
return 3;
+ case FieldDescriptorProto_Label.LABEL_REQUIRED:
+ return 2;
case FieldDescriptorProto_Label.UNRECOGNIZED:
default:
return -1;
@@ -523,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;
@@ -555,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
@@ -605,6 +857,10 @@ export interface FileOptions {
* determining the ruby package.
*/
rubyPackage: string;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/**
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
@@ -705,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.
*
@@ -726,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;
/**
@@ -737,12 +993,16 @@ export interface MessageOptions {
* This should only be used as a temporary measure against broken builds due
* to the change in behavior for JSON field name conflicts.
*
- * TODO(b/261750190) This is legacy behavior we plan to remove once downstream
+ * TODO This is legacy behavior we plan to remove once downstream
* teams have had time to migrate.
*
* @deprecated
*/
deprecatedLegacyJsonFieldConflicts: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -751,8 +1011,10 @@ export interface FieldOptions {
/**
* The ctype option instructs the C++ code generator to use a different
* representation of the field than it normally would. See the specific
- * options below. This option is not yet implemented in the open source
- * release -- sorry, we'll try to include it in a future version!
+ * options below. This option is only implemented to support use of
+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
+ * type "bytes" in the open source release -- sorry, we'll try to include
+ * other types in a future version!
*/
ctype: FieldOptions_CType;
/**
@@ -760,7 +1022,9 @@ export interface FieldOptions {
* a more efficient representation on the wire. Rather than repeatedly
* writing the tag and type for each element, the entire array is encoded as
* a single length-delimited blob. In proto3, only explicit setting it to
- * false will avoid using packed encoding.
+ * false will avoid using packed encoding. This option is prohibited in
+ * Editions, but the `repeated_field_encoding` feature can be used to control
+ * the behavior.
*/
packed: boolean;
/**
@@ -795,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;
/**
@@ -831,7 +1087,13 @@ export interface FieldOptions {
*/
debugRedact: boolean;
retention: FieldOptions_OptionRetention;
- target: FieldOptions_OptionTargetType;
+ targets: FieldOptions_OptionTargetType[];
+ editionDefaults: FieldOptions_EditionDefault[];
+ /** Any features defined in the specific edition. */
+ features: FeatureSet | undefined;
+ featureSupport:
+ | FieldOptions_FeatureSupport
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -839,6 +1101,14 @@ export interface FieldOptions {
export enum FieldOptions_CType {
/** STRING - Default mode. */
STRING = "STRING",
+ /**
+ * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
+ * instead of a string. For very large strings, this may reduce memory
+ * fragmentation. It may also allow better performance when parsing from a
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
+ * alias the original buffer.
+ */
CORD = "CORD",
STRING_PIECE = "STRING_PIECE",
UNRECOGNIZED = "UNRECOGNIZED",
@@ -1119,7 +1389,43 @@ export function fieldOptions_OptionTargetTypeToNumber(object: FieldOptions_Optio
}
}
+export interface FieldOptions_EditionDefault {
+ edition: Edition;
+ /** Textproto value. */
+ 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:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1142,12 +1448,16 @@ export interface EnumOptions {
* and strips underscored from the fields before comparison in proto3 only.
* The new behavior takes `json_name` into account and applies to proto2 as
* well.
- * TODO(b/261750190) Remove this legacy behavior once downstream teams have
+ * TODO Remove this legacy behavior once downstream teams have
* had time to migrate.
*
* @deprecated
*/
deprecatedLegacyJsonFieldConflicts: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1160,11 +1470,29 @@ export interface EnumValueOptions {
* this is a formalization for deprecating enum values.
*/
deprecated: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
+ /**
+ * Indicate that fields annotated with this enum value should not be printed
+ * out when using debug formats, e.g. when the field contains sensitive
+ * 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[];
}
export interface ServiceOptions {
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/**
* Is this service deprecated?
* Depending on the target platform, this can emit Deprecated annotations
@@ -1185,6 +1513,10 @@ export interface MethodOptions {
*/
deprecated: boolean;
idempotencyLevel: MethodOptions_IdempotencyLevel;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1284,131 +1616,510 @@ export interface UninterpretedOption_NamePart {
}
/**
- * Encapsulates information about the original source file from which a
- * FileDescriptorProto was generated.
+ * TODO Enums in C++ gencode (and potentially other languages) are
+ * not well scoped. This means that each of the feature enums below can clash
+ * with each other. The short names we've chosen maximize call-site
+ * readability, but leave us very open to this scenario. A future feature will
+ * be designed and implemented to handle this, hopefully before we ever hit a
+ * conflict here.
*/
-export interface SourceCodeInfo {
- /**
- * A Location identifies a piece of source code in a .proto file which
- * corresponds to a particular definition. This information is intended
- * to be useful to IDEs, code indexers, documentation generators, and similar
- * tools.
- *
- * For example, say we have a file like:
- * message Foo {
- * optional string foo = 1;
- * }
- * Let's look at just the field definition:
- * optional string foo = 1;
- * ^ ^^ ^^ ^ ^^^
- * a bc de f ghi
- * We have the following locations:
- * span path represents
- * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
- * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
- * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
- * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
- * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
- *
- * Notes:
- * - A location may refer to a repeated field itself (i.e. not to any
- * particular index within it). This is used whenever a set of elements are
- * logically enclosed in a single code segment. For example, an entire
- * extend block (possibly containing multiple extension definitions) will
- * have an outer location whose path refers to the "extensions" repeated
- * field without an index.
- * - Multiple locations may have the same path. This happens when a single
- * logical declaration is spread out across multiple places. The most
- * obvious example is the "extend" block again -- there may be multiple
- * extend blocks in the same scope, each of which will have the same path.
- * - A location's span is not always a subset of its parent's span. For
- * example, the "extendee" of an extension declaration appears at the
- * beginning of the "extend" block and is shared by all extensions within
- * the block.
- * - Just because a location's span is a subset of some other location's span
- * does not mean that it is a descendant. For example, a "group" defines
- * both a type and a field in a single declaration. Thus, the locations
- * corresponding to the type and field and their components will overlap.
- * - Code which tries to interpret locations should probably be designed to
- * ignore those that it doesn't understand, as more types of locations could
- * be recorded in the future.
- */
- location: SourceCodeInfo_Location[];
+export interface FeatureSet {
+ fieldPresence: FeatureSet_FieldPresence;
+ enumType: FeatureSet_EnumType;
+ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding;
+ utf8Validation: FeatureSet_Utf8Validation;
+ messageEncoding: FeatureSet_MessageEncoding;
+ jsonFormat: FeatureSet_JsonFormat;
}
-export interface SourceCodeInfo_Location {
- /**
- * Identifies which part of the FileDescriptorProto was defined at this
- * 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.
- * For example, this path:
- * [ 4, 3, 2, 7, 1 ]
- * refers to:
- * file.message_type(3) // 4, 3
- * .field(7) // 2, 7
- * .name() // 1
- * This is because FileDescriptorProto.message_type has field number 4:
- * repeated DescriptorProto message_type = 4;
- * and DescriptorProto.field has field number 2:
- * repeated FieldDescriptorProto field = 2;
- * and FieldDescriptorProto.name has field number 1:
- * optional string name = 1;
- *
- * Thus, the above path gives the location of a field name. If we removed
- * the last element:
- * [ 4, 3, 2, 7 ]
- * this path refers to the whole field declaration (from the beginning
- * of the label to the terminating semicolon).
- */
- path: number[];
- /**
- * Always has exactly three or four elements: start line, start column,
- * end line (optional, otherwise assumed same as start line), end column.
- * These are packed into a single field for efficiency. Note that line
- * and column numbers are zero-based -- typically you will want to add
- * 1 to each before displaying to a user.
- */
- span: number[];
- /**
- * If this SourceCodeInfo represents a complete declaration, these are any
- * comments appearing before and after the declaration which appear to be
- * attached to the declaration.
- *
- * A series of line comments appearing on consecutive lines, with no other
- * tokens appearing on those lines, will be treated as a single comment.
- *
- * leading_detached_comments will keep paragraphs of comments that appear
- * before (but not connected to) the current element. Each paragraph,
- * separated by empty lines, will be one comment element in the repeated
- * field.
- *
- * Only the comment content is provided; comment markers (e.g. //) are
- * stripped out. For block comments, leading whitespace and an asterisk
- * will be stripped from the beginning of each line other than the first.
- * Newlines are included in the output.
- *
- * Examples:
- *
- * optional int32 foo = 1; // Comment attached to foo.
- * // Comment attached to bar.
- * optional int32 bar = 2;
- *
- * optional string baz = 3;
- * // Comment attached to baz.
- * // Another line attached to baz.
- *
- * // Comment attached to moo.
- * //
- * // Another line attached to moo.
- * optional double moo = 4;
- *
- * // Detached comment for corge. This is not leading or trailing comments
- * // to moo or corge because there are blank lines separating it from
- * // both.
- *
- * // Detached comment for corge paragraph 2.
+export enum FeatureSet_FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = "FIELD_PRESENCE_UNKNOWN",
+ EXPLICIT = "EXPLICIT",
+ IMPLICIT = "IMPLICIT",
+ LEGACY_REQUIRED = "LEGACY_REQUIRED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_FieldPresenceFromJSON(object: any): FeatureSet_FieldPresence {
+ switch (object) {
+ case 0:
+ case "FIELD_PRESENCE_UNKNOWN":
+ return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
+ case 1:
+ case "EXPLICIT":
+ return FeatureSet_FieldPresence.EXPLICIT;
+ case 2:
+ case "IMPLICIT":
+ return FeatureSet_FieldPresence.IMPLICIT;
+ case 3:
+ case "LEGACY_REQUIRED":
+ return FeatureSet_FieldPresence.LEGACY_REQUIRED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_FieldPresence.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_FieldPresenceToJSON(object: FeatureSet_FieldPresence): string {
+ switch (object) {
+ case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
+ return "FIELD_PRESENCE_UNKNOWN";
+ case FeatureSet_FieldPresence.EXPLICIT:
+ return "EXPLICIT";
+ case FeatureSet_FieldPresence.IMPLICIT:
+ return "IMPLICIT";
+ case FeatureSet_FieldPresence.LEGACY_REQUIRED:
+ return "LEGACY_REQUIRED";
+ case FeatureSet_FieldPresence.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_FieldPresenceToNumber(object: FeatureSet_FieldPresence): number {
+ switch (object) {
+ case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
+ return 0;
+ case FeatureSet_FieldPresence.EXPLICIT:
+ return 1;
+ case FeatureSet_FieldPresence.IMPLICIT:
+ return 2;
+ case FeatureSet_FieldPresence.LEGACY_REQUIRED:
+ return 3;
+ case FeatureSet_FieldPresence.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_EnumType {
+ ENUM_TYPE_UNKNOWN = "ENUM_TYPE_UNKNOWN",
+ OPEN = "OPEN",
+ CLOSED = "CLOSED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_EnumTypeFromJSON(object: any): FeatureSet_EnumType {
+ switch (object) {
+ case 0:
+ case "ENUM_TYPE_UNKNOWN":
+ return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
+ case 1:
+ case "OPEN":
+ return FeatureSet_EnumType.OPEN;
+ case 2:
+ case "CLOSED":
+ return FeatureSet_EnumType.CLOSED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_EnumType.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_EnumTypeToJSON(object: FeatureSet_EnumType): string {
+ switch (object) {
+ case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
+ return "ENUM_TYPE_UNKNOWN";
+ case FeatureSet_EnumType.OPEN:
+ return "OPEN";
+ case FeatureSet_EnumType.CLOSED:
+ return "CLOSED";
+ case FeatureSet_EnumType.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_EnumTypeToNumber(object: FeatureSet_EnumType): number {
+ switch (object) {
+ case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
+ return 0;
+ case FeatureSet_EnumType.OPEN:
+ return 1;
+ case FeatureSet_EnumType.CLOSED:
+ return 2;
+ case FeatureSet_EnumType.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = "REPEATED_FIELD_ENCODING_UNKNOWN",
+ PACKED = "PACKED",
+ EXPANDED = "EXPANDED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_RepeatedFieldEncodingFromJSON(object: any): FeatureSet_RepeatedFieldEncoding {
+ switch (object) {
+ case 0:
+ case "REPEATED_FIELD_ENCODING_UNKNOWN":
+ return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
+ case 1:
+ case "PACKED":
+ return FeatureSet_RepeatedFieldEncoding.PACKED;
+ case 2:
+ case "EXPANDED":
+ return FeatureSet_RepeatedFieldEncoding.EXPANDED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_RepeatedFieldEncodingToJSON(object: FeatureSet_RepeatedFieldEncoding): string {
+ switch (object) {
+ case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
+ return "REPEATED_FIELD_ENCODING_UNKNOWN";
+ case FeatureSet_RepeatedFieldEncoding.PACKED:
+ return "PACKED";
+ case FeatureSet_RepeatedFieldEncoding.EXPANDED:
+ return "EXPANDED";
+ case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_RepeatedFieldEncodingToNumber(object: FeatureSet_RepeatedFieldEncoding): number {
+ switch (object) {
+ case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
+ return 0;
+ case FeatureSet_RepeatedFieldEncoding.PACKED:
+ return 1;
+ case FeatureSet_RepeatedFieldEncoding.EXPANDED:
+ return 2;
+ case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = "UTF8_VALIDATION_UNKNOWN",
+ VERIFY = "VERIFY",
+ NONE = "NONE",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation {
+ switch (object) {
+ case 0:
+ case "UTF8_VALIDATION_UNKNOWN":
+ return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
+ case 2:
+ case "VERIFY":
+ return FeatureSet_Utf8Validation.VERIFY;
+ case 3:
+ case "NONE":
+ return FeatureSet_Utf8Validation.NONE;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_Utf8Validation.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validation): string {
+ switch (object) {
+ case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
+ return "UTF8_VALIDATION_UNKNOWN";
+ case FeatureSet_Utf8Validation.VERIFY:
+ return "VERIFY";
+ case FeatureSet_Utf8Validation.NONE:
+ return "NONE";
+ case FeatureSet_Utf8Validation.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_Utf8ValidationToNumber(object: FeatureSet_Utf8Validation): number {
+ switch (object) {
+ case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
+ return 0;
+ case FeatureSet_Utf8Validation.VERIFY:
+ return 2;
+ case FeatureSet_Utf8Validation.NONE:
+ return 3;
+ case FeatureSet_Utf8Validation.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = "MESSAGE_ENCODING_UNKNOWN",
+ LENGTH_PREFIXED = "LENGTH_PREFIXED",
+ DELIMITED = "DELIMITED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_MessageEncodingFromJSON(object: any): FeatureSet_MessageEncoding {
+ switch (object) {
+ case 0:
+ case "MESSAGE_ENCODING_UNKNOWN":
+ return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
+ case 1:
+ case "LENGTH_PREFIXED":
+ return FeatureSet_MessageEncoding.LENGTH_PREFIXED;
+ case 2:
+ case "DELIMITED":
+ return FeatureSet_MessageEncoding.DELIMITED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_MessageEncoding.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_MessageEncodingToJSON(object: FeatureSet_MessageEncoding): string {
+ switch (object) {
+ case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
+ return "MESSAGE_ENCODING_UNKNOWN";
+ case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
+ return "LENGTH_PREFIXED";
+ case FeatureSet_MessageEncoding.DELIMITED:
+ return "DELIMITED";
+ case FeatureSet_MessageEncoding.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_MessageEncodingToNumber(object: FeatureSet_MessageEncoding): number {
+ switch (object) {
+ case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
+ return 0;
+ case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
+ return 1;
+ case FeatureSet_MessageEncoding.DELIMITED:
+ return 2;
+ case FeatureSet_MessageEncoding.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_JsonFormat {
+ JSON_FORMAT_UNKNOWN = "JSON_FORMAT_UNKNOWN",
+ ALLOW = "ALLOW",
+ LEGACY_BEST_EFFORT = "LEGACY_BEST_EFFORT",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat {
+ switch (object) {
+ case 0:
+ case "JSON_FORMAT_UNKNOWN":
+ return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
+ case 1:
+ case "ALLOW":
+ return FeatureSet_JsonFormat.ALLOW;
+ case 2:
+ case "LEGACY_BEST_EFFORT":
+ return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_JsonFormat.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string {
+ switch (object) {
+ case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
+ return "JSON_FORMAT_UNKNOWN";
+ case FeatureSet_JsonFormat.ALLOW:
+ return "ALLOW";
+ case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
+ return "LEGACY_BEST_EFFORT";
+ case FeatureSet_JsonFormat.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_JsonFormatToNumber(object: FeatureSet_JsonFormat): number {
+ switch (object) {
+ case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
+ return 0;
+ case FeatureSet_JsonFormat.ALLOW:
+ return 1;
+ case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
+ return 2;
+ case FeatureSet_JsonFormat.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+/**
+ * A compiled specification for the defaults of a set of features. These
+ * messages are generated from FeatureSet extensions and can be used to seed
+ * feature resolution. The resolution with this object becomes a simple search
+ * for the closest matching edition, followed by proto merges.
+ */
+export interface FeatureSetDefaults {
+ defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
+ /**
+ * The minimum supported edition (inclusive) when this was constructed.
+ * Editions before this will not have defaults.
+ */
+ minimumEdition: Edition;
+ /**
+ * The maximum known edition (inclusive) when this was constructed. Editions
+ * after this will not have reliable defaults.
+ */
+ maximumEdition: Edition;
+}
+
+/**
+ * A map from every known edition with a unique set of defaults to its
+ * defaults. Not all editions may be contained here. For a given edition,
+ * the defaults at the closest matching edition ordered at or before it should
+ * be used. This field must be in strict ascending order by edition.
+ */
+export interface FeatureSetDefaults_FeatureSetEditionDefault {
+ edition: Edition;
+ /** 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;
+}
+
+/**
+ * Encapsulates information about the original source file from which a
+ * FileDescriptorProto was generated.
+ */
+export interface SourceCodeInfo {
+ /**
+ * A Location identifies a piece of source code in a .proto file which
+ * corresponds to a particular definition. This information is intended
+ * to be useful to IDEs, code indexers, documentation generators, and similar
+ * tools.
+ *
+ * For example, say we have a file like:
+ * message Foo {
+ * optional string foo = 1;
+ * }
+ * Let's look at just the field definition:
+ * optional string foo = 1;
+ * ^ ^^ ^^ ^ ^^^
+ * a bc de f ghi
+ * We have the following locations:
+ * span path represents
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
+ *
+ * Notes:
+ * - A location may refer to a repeated field itself (i.e. not to any
+ * particular index within it). This is used whenever a set of elements are
+ * logically enclosed in a single code segment. For example, an entire
+ * extend block (possibly containing multiple extension definitions) will
+ * have an outer location whose path refers to the "extensions" repeated
+ * field without an index.
+ * - Multiple locations may have the same path. This happens when a single
+ * logical declaration is spread out across multiple places. The most
+ * obvious example is the "extend" block again -- there may be multiple
+ * extend blocks in the same scope, each of which will have the same path.
+ * - A location's span is not always a subset of its parent's span. For
+ * example, the "extendee" of an extension declaration appears at the
+ * beginning of the "extend" block and is shared by all extensions within
+ * the block.
+ * - Just because a location's span is a subset of some other location's span
+ * does not mean that it is a descendant. For example, a "group" defines
+ * both a type and a field in a single declaration. Thus, the locations
+ * corresponding to the type and field and their components will overlap.
+ * - Code which tries to interpret locations should probably be designed to
+ * ignore those that it doesn't understand, as more types of locations could
+ * be recorded in the future.
+ */
+ location: SourceCodeInfo_Location[];
+}
+
+export interface SourceCodeInfo_Location {
+ /**
+ * Identifies which part of the FileDescriptorProto was defined at this
+ * location.
+ *
+ * Each element is a field number or an index. They form a path from
+ * the root FileDescriptorProto to the place where the definition appears.
+ * For example, this path:
+ * [ 4, 3, 2, 7, 1 ]
+ * refers to:
+ * file.message_type(3) // 4, 3
+ * .field(7) // 2, 7
+ * .name() // 1
+ * This is because FileDescriptorProto.message_type has field number 4:
+ * repeated DescriptorProto message_type = 4;
+ * and DescriptorProto.field has field number 2:
+ * repeated FieldDescriptorProto field = 2;
+ * and FieldDescriptorProto.name has field number 1:
+ * optional string name = 1;
+ *
+ * Thus, the above path gives the location of a field name. If we removed
+ * the last element:
+ * [ 4, 3, 2, 7 ]
+ * this path refers to the whole field declaration (from the beginning
+ * of the label to the terminating semicolon).
+ */
+ path: number[];
+ /**
+ * Always has exactly three or four elements: start line, start column,
+ * end line (optional, otherwise assumed same as start line), end column.
+ * These are packed into a single field for efficiency. Note that line
+ * and column numbers are zero-based -- typically you will want to add
+ * 1 to each before displaying to a user.
+ */
+ span: number[];
+ /**
+ * If this SourceCodeInfo represents a complete declaration, these are any
+ * comments appearing before and after the declaration which appear to be
+ * attached to the declaration.
+ *
+ * A series of line comments appearing on consecutive lines, with no other
+ * tokens appearing on those lines, will be treated as a single comment.
+ *
+ * leading_detached_comments will keep paragraphs of comments that appear
+ * before (but not connected to) the current element. Each paragraph,
+ * separated by empty lines, will be one comment element in the repeated
+ * field.
+ *
+ * Only the comment content is provided; comment markers (e.g. //) are
+ * stripped out. For block comments, leading whitespace and an asterisk
+ * will be stripped from the beginning of each line other than the first.
+ * Newlines are included in the output.
+ *
+ * Examples:
+ *
+ * optional int32 foo = 1; // Comment attached to foo.
+ * // Comment attached to bar.
+ * optional int32 bar = 2;
+ *
+ * optional string baz = 3;
+ * // Comment attached to baz.
+ * // Another line attached to baz.
+ *
+ * // Comment attached to moo.
+ * //
+ * // Another line attached to moo.
+ * optional double moo = 4;
+ *
+ * // Detached comment for corge. This is not leading or trailing comments
+ * // to moo or corge because there are blank lines separating it from
+ * // both.
+ *
+ * // Detached comment for corge paragraph 2.
*
* optional string corge = 5;
* /* Block comment attached
@@ -1593,7 +2304,7 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {
options: undefined,
sourceCodeInfo: undefined,
syntax: "",
- edition: "",
+ edition: Edition.EDITION_UNKNOWN,
};
}
@@ -1639,8 +2350,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
writer.uint32(98).string(message.syntax);
}
- if (message.edition !== "") {
- writer.uint32(106).string(message.edition);
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(112).int32(editionToNumber(message.edition));
}
return writer;
},
@@ -1756,12 +2467,12 @@ export const FileDescriptorProto = {
message.syntax = reader.string();
continue;
- case 13:
- if (tag !== 106) {
+ case 14:
+ if (tag !== 112) {
break;
}
- message.edition = reader.string();
+ message.edition = editionFromJSON(reader.int32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
@@ -1800,7 +2511,7 @@ export const FileDescriptorProto = {
options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,
sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,
syntax: isSet(object.syntax) ? globalThis.String(object.syntax) : "",
- edition: isSet(object.edition) ? globalThis.String(object.edition) : "",
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,
};
},
@@ -1842,8 +2553,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
obj.syntax = message.syntax;
}
- if (message.edition !== "") {
- obj.edition = message.edition;
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ obj.edition = editionToJSON(message.edition);
}
return obj;
},
@@ -1869,7 +2580,7 @@ export const FileDescriptorProto = {
? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
: undefined;
message.syntax = object.syntax ?? "";
- message.edition = object.edition ?? "";
+ message.edition = object.edition ?? Edition.EDITION_UNKNOWN;
return message;
},
};
@@ -2262,31 +2973,188 @@ export const DescriptorProto_ReservedRange = {
},
};
-function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
- return { uninterpretedOption: [] };
+function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
+ return {
+ uninterpretedOption: [],
+ declaration: [],
+ features: undefined,
+ verification: ExtensionRangeOptions_VerificationState.DECLARATION,
+ };
+}
+
+export const ExtensionRangeOptions = {
+ encode(message: ExtensionRangeOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.uninterpretedOption) {
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
+ }
+ for (const v of message.declaration) {
+ ExtensionRangeOptions_Declaration.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
+ }
+ if (message.verification !== ExtensionRangeOptions_VerificationState.DECLARATION) {
+ writer.uint32(24).int32(extensionRangeOptions_VerificationStateToNumber(message.verification));
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseExtensionRangeOptions();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 999:
+ if (tag !== 7994) {
+ break;
+ }
+
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
+ continue;
+ case 50:
+ if (tag !== 402) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.verification = extensionRangeOptions_VerificationStateFromJSON(reader.int32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): ExtensionRangeOptions {
+ return {
+ uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
+ ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
+ : [],
+ declaration: globalThis.Array.isArray(object?.declaration)
+ ? object.declaration.map((e: any) => ExtensionRangeOptions_Declaration.fromJSON(e))
+ : [],
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ verification: isSet(object.verification)
+ ? extensionRangeOptions_VerificationStateFromJSON(object.verification)
+ : ExtensionRangeOptions_VerificationState.DECLARATION,
+ };
+ },
+
+ toJSON(message: ExtensionRangeOptions): unknown {
+ const obj: any = {};
+ if (message.uninterpretedOption?.length) {
+ obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
+ }
+ if (message.declaration?.length) {
+ obj.declaration = message.declaration.map((e) => ExtensionRangeOptions_Declaration.toJSON(e));
+ }
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ if (message.verification !== ExtensionRangeOptions_VerificationState.DECLARATION) {
+ obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
+ return ExtensionRangeOptions.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
+ const message = createBaseExtensionRangeOptions();
+ message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
+ message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
+ message.verification = object.verification ?? ExtensionRangeOptions_VerificationState.DECLARATION;
+ return message;
+ },
+};
+
+function createBaseExtensionRangeOptions_Declaration(): ExtensionRangeOptions_Declaration {
+ return { number: 0, fullName: "", type: "", reserved: false, repeated: false };
}
-export const ExtensionRangeOptions = {
- encode(message: ExtensionRangeOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- for (const v of message.uninterpretedOption) {
- UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
+export const ExtensionRangeOptions_Declaration = {
+ encode(message: ExtensionRangeOptions_Declaration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.number !== 0) {
+ writer.uint32(8).int32(message.number);
+ }
+ if (message.fullName !== "") {
+ writer.uint32(18).string(message.fullName);
+ }
+ if (message.type !== "") {
+ writer.uint32(26).string(message.type);
+ }
+ if (message.reserved === true) {
+ writer.uint32(40).bool(message.reserved);
+ }
+ if (message.repeated === true) {
+ writer.uint32(48).bool(message.repeated);
}
return writer;
},
- decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions {
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions_Declaration {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseExtensionRangeOptions();
+ const message = createBaseExtensionRangeOptions_Declaration();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
- case 999:
- if (tag !== 7994) {
+ case 1:
+ if (tag !== 8) {
break;
}
- message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
+ message.number = reader.int32();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.fullName = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.type = reader.string();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.reserved = reader.bool();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.repeated = reader.bool();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
@@ -2297,28 +3165,46 @@ export const ExtensionRangeOptions = {
return message;
},
- fromJSON(object: any): ExtensionRangeOptions {
+ fromJSON(object: any): ExtensionRangeOptions_Declaration {
return {
- uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
- ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
- : [],
+ number: isSet(object.number) ? globalThis.Number(object.number) : 0,
+ fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
+ reserved: isSet(object.reserved) ? globalThis.Boolean(object.reserved) : false,
+ repeated: isSet(object.repeated) ? globalThis.Boolean(object.repeated) : false,
};
},
- toJSON(message: ExtensionRangeOptions): unknown {
+ toJSON(message: ExtensionRangeOptions_Declaration): unknown {
const obj: any = {};
- if (message.uninterpretedOption?.length) {
- obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
+ if (message.number !== 0) {
+ obj.number = Math.round(message.number);
+ }
+ if (message.fullName !== "") {
+ obj.fullName = message.fullName;
+ }
+ if (message.type !== "") {
+ obj.type = message.type;
+ }
+ if (message.reserved === true) {
+ obj.reserved = message.reserved;
+ }
+ if (message.repeated === true) {
+ obj.repeated = message.repeated;
}
return obj;
},
- create(base?: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
- return ExtensionRangeOptions.fromPartial(base ?? {});
+ create(base?: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
+ return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});
},
- fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
- const message = createBaseExtensionRangeOptions();
- message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
+ fromPartial(object: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
+ const message = createBaseExtensionRangeOptions_Declaration();
+ message.number = object.number ?? 0;
+ message.fullName = object.fullName ?? "";
+ message.type = object.type ?? "";
+ message.reserved = object.reserved ?? false;
+ message.repeated = object.repeated ?? false;
return message;
},
};
@@ -3165,7 +4051,6 @@ function createBaseFileOptions(): FileOptions {
ccGenericServices: false,
javaGenericServices: false,
pyGenericServices: false,
- phpGenericServices: false,
deprecated: false,
ccEnableArenas: false,
objcClassPrefix: "",
@@ -3175,6 +4060,7 @@ function createBaseFileOptions(): FileOptions {
phpNamespace: "",
phpMetadataNamespace: "",
rubyPackage: "",
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3211,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);
}
@@ -3241,6 +4124,9 @@ export const FileOptions = {
if (message.rubyPackage !== "") {
writer.uint32(362).string(message.rubyPackage);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3324,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;
@@ -3394,6 +4273,13 @@ export const FileOptions = {
message.rubyPackage = reader.string();
continue;
+ case 50:
+ if (tag !== 402) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3426,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) : "",
@@ -3436,6 +4321,7 @@ export const FileOptions = {
phpNamespace: isSet(object.phpNamespace) ? globalThis.String(object.phpNamespace) : "",
phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? globalThis.String(object.phpMetadataNamespace) : "",
rubyPackage: isSet(object.rubyPackage) ? globalThis.String(object.rubyPackage) : "",
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3474,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;
}
@@ -3504,6 +4387,9 @@ export const FileOptions = {
if (message.rubyPackage !== "") {
obj.rubyPackage = message.rubyPackage;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3525,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 ?? "";
@@ -3535,6 +4420,9 @@ export const FileOptions = {
message.phpNamespace = object.phpNamespace ?? "";
message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
message.rubyPackage = object.rubyPackage ?? "";
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -3547,6 +4435,7 @@ function createBaseMessageOptions(): MessageOptions {
deprecated: false,
mapEntry: false,
deprecatedLegacyJsonFieldConflicts: false,
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3568,6 +4457,9 @@ export const MessageOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3616,6 +4508,13 @@ export const MessageOptions = {
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3645,6 +4544,7 @@ export const MessageOptions = {
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
: false,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3668,6 +4568,9 @@ export const MessageOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3684,6 +4587,9 @@ export const MessageOptions = {
message.deprecated = object.deprecated ?? false;
message.mapEntry = object.mapEntry ?? false;
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -3700,7 +4606,10 @@ function createBaseFieldOptions(): FieldOptions {
weak: false,
debugRedact: false,
retention: FieldOptions_OptionRetention.RETENTION_UNKNOWN,
- target: FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN,
+ targets: [],
+ editionDefaults: [],
+ features: undefined,
+ featureSupport: undefined,
uninterpretedOption: [],
};
}
@@ -3734,8 +4643,19 @@ export const FieldOptions = {
if (message.retention !== FieldOptions_OptionRetention.RETENTION_UNKNOWN) {
writer.uint32(136).int32(fieldOptions_OptionRetentionToNumber(message.retention));
}
- if (message.target !== FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN) {
- writer.uint32(144).int32(fieldOptions_OptionTargetTypeToNumber(message.target));
+ writer.uint32(154).fork();
+ for (const v of message.targets) {
+ writer.int32(fieldOptions_OptionTargetTypeToNumber(v));
+ }
+ writer.ldelim();
+ for (const v of message.editionDefaults) {
+ FieldOptions_EditionDefault.encode(v!, writer.uint32(162).fork()).ldelim();
+ }
+ 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();
@@ -3813,12 +4733,43 @@ export const FieldOptions = {
message.retention = fieldOptions_OptionRetentionFromJSON(reader.int32());
continue;
- case 18:
- if (tag !== 144) {
+ case 19:
+ if (tag === 152) {
+ message.targets.push(fieldOptions_OptionTargetTypeFromJSON(reader.int32()));
+
+ continue;
+ }
+
+ if (tag === 154) {
+ const end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2) {
+ message.targets.push(fieldOptions_OptionTargetTypeFromJSON(reader.int32()));
+ }
+
+ continue;
+ }
+
+ break;
+ case 20:
+ if (tag !== 162) {
+ break;
+ }
+
+ message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));
+ continue;
+ case 21:
+ if (tag !== 170) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ case 22:
+ if (tag !== 178) {
break;
}
- message.target = fieldOptions_OptionTargetTypeFromJSON(reader.int32());
+ message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());
continue;
case 999:
if (tag !== 7994) {
@@ -3849,9 +4800,16 @@ export const FieldOptions = {
retention: isSet(object.retention)
? fieldOptions_OptionRetentionFromJSON(object.retention)
: FieldOptions_OptionRetention.RETENTION_UNKNOWN,
- target: isSet(object.target)
- ? fieldOptions_OptionTargetTypeFromJSON(object.target)
- : FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN,
+ targets: globalThis.Array.isArray(object?.targets)
+ ? object.targets.map((e: any) => fieldOptions_OptionTargetTypeFromJSON(e))
+ : [],
+ editionDefaults: globalThis.Array.isArray(object?.editionDefaults)
+ ? 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))
: [],
@@ -3887,8 +4845,17 @@ export const FieldOptions = {
if (message.retention !== FieldOptions_OptionRetention.RETENTION_UNKNOWN) {
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
}
- if (message.target !== FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN) {
- obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);
+ if (message.targets?.length) {
+ obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));
+ }
+ if (message.editionDefaults?.length) {
+ obj.editionDefaults = message.editionDefaults.map((e) => FieldOptions_EditionDefault.toJSON(e));
+ }
+ 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));
@@ -3910,18 +4877,215 @@ export const FieldOptions = {
message.weak = object.weak ?? false;
message.debugRedact = object.debugRedact ?? false;
message.retention = object.retention ?? FieldOptions_OptionRetention.RETENTION_UNKNOWN;
- message.target = object.target ?? FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN;
+ message.targets = object.targets?.map((e) => e) || [];
+ message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || [];
+ 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;
},
};
+function createBaseFieldOptions_EditionDefault(): FieldOptions_EditionDefault {
+ return { edition: Edition.EDITION_UNKNOWN, value: "" };
+}
+
+export const FieldOptions_EditionDefault = {
+ encode(message: FieldOptions_EditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(24).int32(editionToNumber(message.edition));
+ }
+ if (message.value !== "") {
+ writer.uint32(18).string(message.value);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_EditionDefault {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFieldOptions_EditionDefault();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.edition = editionFromJSON(reader.int32());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.value = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FieldOptions_EditionDefault {
+ return {
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
+ };
+ },
+
+ toJSON(message: FieldOptions_EditionDefault): unknown {
+ const obj: any = {};
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ obj.edition = editionToJSON(message.edition);
+ }
+ if (message.value !== "") {
+ obj.value = message.value;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
+ return FieldOptions_EditionDefault.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
+ const message = createBaseFieldOptions_EditionDefault();
+ message.edition = object.edition ?? Edition.EDITION_UNKNOWN;
+ message.value = object.value ?? "";
+ return message;
+ },
+};
+
+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 { uninterpretedOption: [] };
+ return { features: undefined, uninterpretedOption: [] };
}
export const OneofOptions = {
encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3935,6 +5099,13 @@ export const OneofOptions = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3953,6 +5124,7 @@ export const OneofOptions = {
fromJSON(object: any): OneofOptions {
return {
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3961,6 +5133,9 @@ export const OneofOptions = {
toJSON(message: OneofOptions): unknown {
const obj: any = {};
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3972,13 +5147,22 @@ export const OneofOptions = {
},
fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {
const message = createBaseOneofOptions();
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseEnumOptions(): EnumOptions {
- return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };
+ return {
+ allowAlias: false,
+ deprecated: false,
+ deprecatedLegacyJsonFieldConflicts: false,
+ features: undefined,
+ uninterpretedOption: [],
+ };
}
export const EnumOptions = {
@@ -3992,6 +5176,9 @@ export const EnumOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4019,12 +5206,19 @@ export const EnumOptions = {
message.deprecated = reader.bool();
continue;
- case 6:
- if (tag !== 48) {
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 58) {
break;
}
- message.deprecatedLegacyJsonFieldConflicts = reader.bool();
+ message.features = FeatureSet.decode(reader, reader.uint32());
continue;
case 999:
if (tag !== 7994) {
@@ -4049,6 +5243,7 @@ export const EnumOptions = {
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
: false,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4066,6 +5261,9 @@ export const EnumOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4080,13 +5278,22 @@ export const EnumOptions = {
message.allowAlias = object.allowAlias ?? false;
message.deprecated = object.deprecated ?? false;
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseEnumValueOptions(): EnumValueOptions {
- return { deprecated: false, uninterpretedOption: [] };
+ return {
+ deprecated: false,
+ features: undefined,
+ debugRedact: false,
+ featureSupport: undefined,
+ uninterpretedOption: [],
+ };
}
export const EnumValueOptions = {
@@ -4094,6 +5301,15 @@ export const EnumValueOptions = {
if (message.deprecated === true) {
writer.uint32(8).bool(message.deprecated);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
+ }
+ 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();
}
@@ -4114,6 +5330,27 @@ export const EnumValueOptions = {
message.deprecated = reader.bool();
continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ 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;
@@ -4133,6 +5370,11 @@ export const EnumValueOptions = {
fromJSON(object: any): EnumValueOptions {
return {
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))
: [],
@@ -4144,6 +5386,15 @@ export const EnumValueOptions = {
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ 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));
}
@@ -4156,17 +5407,27 @@ export const EnumValueOptions = {
fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {
const message = createBaseEnumValueOptions();
message.deprecated = object.deprecated ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? 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;
},
};
function createBaseServiceOptions(): ServiceOptions {
- return { deprecated: false, uninterpretedOption: [] };
+ return { features: undefined, deprecated: false, uninterpretedOption: [] };
}
export const ServiceOptions = {
encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();
+ }
if (message.deprecated === true) {
writer.uint32(264).bool(message.deprecated);
}
@@ -4183,6 +5444,13 @@ export const ServiceOptions = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
+ case 34:
+ if (tag !== 274) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 33:
if (tag !== 264) {
break;
@@ -4208,6 +5476,7 @@ export const ServiceOptions = {
fromJSON(object: any): ServiceOptions {
return {
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
@@ -4217,6 +5486,9 @@ export const ServiceOptions = {
toJSON(message: ServiceOptions): unknown {
const obj: any = {};
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
@@ -4231,6 +5503,9 @@ export const ServiceOptions = {
},
fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {
const message = createBaseServiceOptions();
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.deprecated = object.deprecated ?? false;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
@@ -4241,6 +5516,7 @@ function createBaseMethodOptions(): MethodOptions {
return {
deprecated: false,
idempotencyLevel: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -4253,6 +5529,9 @@ export const MethodOptions = {
if (message.idempotencyLevel !== MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN) {
writer.uint32(272).int32(methodOptions_IdempotencyLevelToNumber(message.idempotencyLevel));
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4280,6 +5559,13 @@ export const MethodOptions = {
message.idempotencyLevel = methodOptions_IdempotencyLevelFromJSON(reader.int32());
continue;
+ case 35:
+ if (tag !== 282) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -4302,6 +5588,7 @@ export const MethodOptions = {
idempotencyLevel: isSet(object.idempotencyLevel)
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4316,6 +5603,9 @@ export const MethodOptions = {
if (message.idempotencyLevel !== MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN) {
obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4329,6 +5619,9 @@ export const MethodOptions = {
const message = createBaseMethodOptions();
message.deprecated = object.deprecated ?? false;
message.idempotencyLevel = object.idempotencyLevel ?? MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -4571,6 +5864,348 @@ export const UninterpretedOption_NamePart = {
},
};
+function createBaseFeatureSet(): FeatureSet {
+ return {
+ fieldPresence: FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN,
+ enumType: FeatureSet_EnumType.ENUM_TYPE_UNKNOWN,
+ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN,
+ utf8Validation: FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN,
+ messageEncoding: FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN,
+ jsonFormat: FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN,
+ };
+}
+
+export const FeatureSet = {
+ encode(message: FeatureSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.fieldPresence !== FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN) {
+ writer.uint32(8).int32(featureSet_FieldPresenceToNumber(message.fieldPresence));
+ }
+ if (message.enumType !== FeatureSet_EnumType.ENUM_TYPE_UNKNOWN) {
+ writer.uint32(16).int32(featureSet_EnumTypeToNumber(message.enumType));
+ }
+ if (message.repeatedFieldEncoding !== FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN) {
+ writer.uint32(24).int32(featureSet_RepeatedFieldEncodingToNumber(message.repeatedFieldEncoding));
+ }
+ if (message.utf8Validation !== FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN) {
+ writer.uint32(32).int32(featureSet_Utf8ValidationToNumber(message.utf8Validation));
+ }
+ if (message.messageEncoding !== FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN) {
+ writer.uint32(40).int32(featureSet_MessageEncodingToNumber(message.messageEncoding));
+ }
+ if (message.jsonFormat !== FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN) {
+ writer.uint32(48).int32(featureSet_JsonFormatToNumber(message.jsonFormat));
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSet {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSet();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.fieldPresence = featureSet_FieldPresenceFromJSON(reader.int32());
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.enumType = featureSet_EnumTypeFromJSON(reader.int32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingFromJSON(reader.int32());
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.utf8Validation = featureSet_Utf8ValidationFromJSON(reader.int32());
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.messageEncoding = featureSet_MessageEncodingFromJSON(reader.int32());
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.jsonFormat = featureSet_JsonFormatFromJSON(reader.int32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSet {
+ return {
+ fieldPresence: isSet(object.fieldPresence)
+ ? featureSet_FieldPresenceFromJSON(object.fieldPresence)
+ : FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN,
+ enumType: isSet(object.enumType)
+ ? featureSet_EnumTypeFromJSON(object.enumType)
+ : FeatureSet_EnumType.ENUM_TYPE_UNKNOWN,
+ repeatedFieldEncoding: isSet(object.repeatedFieldEncoding)
+ ? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)
+ : FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN,
+ utf8Validation: isSet(object.utf8Validation)
+ ? featureSet_Utf8ValidationFromJSON(object.utf8Validation)
+ : FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN,
+ messageEncoding: isSet(object.messageEncoding)
+ ? featureSet_MessageEncodingFromJSON(object.messageEncoding)
+ : FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN,
+ jsonFormat: isSet(object.jsonFormat)
+ ? featureSet_JsonFormatFromJSON(object.jsonFormat)
+ : FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN,
+ };
+ },
+
+ toJSON(message: FeatureSet): unknown {
+ const obj: any = {};
+ if (message.fieldPresence !== FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN) {
+ obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence);
+ }
+ if (message.enumType !== FeatureSet_EnumType.ENUM_TYPE_UNKNOWN) {
+ obj.enumType = featureSet_EnumTypeToJSON(message.enumType);
+ }
+ if (message.repeatedFieldEncoding !== FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN) {
+ obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding);
+ }
+ if (message.utf8Validation !== FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN) {
+ obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation);
+ }
+ if (message.messageEncoding !== FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN) {
+ obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding);
+ }
+ if (message.jsonFormat !== FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN) {
+ obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSet>): FeatureSet {
+ return FeatureSet.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FeatureSet>): FeatureSet {
+ const message = createBaseFeatureSet();
+ message.fieldPresence = object.fieldPresence ?? FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
+ message.enumType = object.enumType ?? FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
+ message.repeatedFieldEncoding = object.repeatedFieldEncoding ??
+ FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
+ message.utf8Validation = object.utf8Validation ?? FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
+ message.messageEncoding = object.messageEncoding ?? FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
+ message.jsonFormat = object.jsonFormat ?? FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
+ return message;
+ },
+};
+
+function createBaseFeatureSetDefaults(): FeatureSetDefaults {
+ return { defaults: [], minimumEdition: Edition.EDITION_UNKNOWN, maximumEdition: Edition.EDITION_UNKNOWN };
+}
+
+export const FeatureSetDefaults = {
+ encode(message: FeatureSetDefaults, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.defaults) {
+ FeatureSetDefaults_FeatureSetEditionDefault.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.minimumEdition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(32).int32(editionToNumber(message.minimumEdition));
+ }
+ if (message.maximumEdition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(40).int32(editionToNumber(message.maximumEdition));
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSetDefaults();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.minimumEdition = editionFromJSON(reader.int32());
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.maximumEdition = editionFromJSON(reader.int32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSetDefaults {
+ return {
+ defaults: globalThis.Array.isArray(object?.defaults)
+ ? object.defaults.map((e: any) => FeatureSetDefaults_FeatureSetEditionDefault.fromJSON(e))
+ : [],
+ minimumEdition: isSet(object.minimumEdition) ? editionFromJSON(object.minimumEdition) : Edition.EDITION_UNKNOWN,
+ maximumEdition: isSet(object.maximumEdition) ? editionFromJSON(object.maximumEdition) : Edition.EDITION_UNKNOWN,
+ };
+ },
+
+ toJSON(message: FeatureSetDefaults): unknown {
+ const obj: any = {};
+ if (message.defaults?.length) {
+ obj.defaults = message.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e));
+ }
+ if (message.minimumEdition !== Edition.EDITION_UNKNOWN) {
+ obj.minimumEdition = editionToJSON(message.minimumEdition);
+ }
+ if (message.maximumEdition !== Edition.EDITION_UNKNOWN) {
+ obj.maximumEdition = editionToJSON(message.maximumEdition);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {
+ return FeatureSetDefaults.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {
+ const message = createBaseFeatureSetDefaults();
+ message.defaults = object.defaults?.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];
+ message.minimumEdition = object.minimumEdition ?? Edition.EDITION_UNKNOWN;
+ message.maximumEdition = object.maximumEdition ?? Edition.EDITION_UNKNOWN;
+ return message;
+ },
+};
+
+function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {
+ return { edition: Edition.EDITION_UNKNOWN, overridableFeatures: undefined, fixedFeatures: undefined };
+}
+
+export const FeatureSetDefaults_FeatureSetEditionDefault = {
+ encode(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(24).int32(editionToNumber(message.edition));
+ }
+ 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;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults_FeatureSetEditionDefault {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.edition = editionFromJSON(reader.int32());
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ 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) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {
+ return {
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,
+ overridableFeatures: isSet(object.overridableFeatures)
+ ? FeatureSet.fromJSON(object.overridableFeatures)
+ : undefined,
+ fixedFeatures: isSet(object.fixedFeatures) ? FeatureSet.fromJSON(object.fixedFeatures) : undefined,
+ };
+ },
+
+ toJSON(message: FeatureSetDefaults_FeatureSetEditionDefault): unknown {
+ const obj: any = {};
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ obj.edition = editionToJSON(message.edition);
+ }
+ if (message.overridableFeatures !== undefined) {
+ obj.overridableFeatures = FeatureSet.toJSON(message.overridableFeatures);
+ }
+ if (message.fixedFeatures !== undefined) {
+ obj.fixedFeatures = FeatureSet.toJSON(message.fixedFeatures);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>): FeatureSetDefaults_FeatureSetEditionDefault {
+ return FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(base ?? {});
+ },
+ fromPartial(
+ object: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>,
+ ): FeatureSetDefaults_FeatureSetEditionDefault {
+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
+ message.edition = object.edition ?? Edition.EDITION_UNKNOWN;
+ 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;
+ },
+};
+
function createBaseSourceCodeInfo(): SourceCodeInfo {
return { location: [] };
}
diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.ts
index 31ff603438..da35159e1f 100644
--- a/frontend/src/types/proto/google/protobuf/struct.ts
+++ b/frontend/src/types/proto/google/protobuf/struct.ts
@@ -8,7 +8,7 @@ export const protobufPackage = "google.protobuf";
* `NullValue` is a singleton enumeration to represent the null value for the
* `Value` type union.
*
- * The JSON representation for `NullValue` is JSON `null`.
+ * The JSON representation for `NullValue` is JSON `null`.
*/
export enum NullValue {
/** NULL_VALUE - Null value. */
diff --git a/frontend/src/types/proto/google/protobuf/timestamp.ts b/frontend/src/types/proto/google/protobuf/timestamp.ts
index 51695e08d0..5781891bc0 100644
--- a/frontend/src/types/proto/google/protobuf/timestamp.ts
+++ b/frontend/src/types/proto/google/protobuf/timestamp.ts
@@ -92,7 +92,7 @@ export const protobufPackage = "google.protobuf";
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
- * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
+ * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
* ) to obtain a formatter capable of generating timestamps in this format.
*/
export interface Timestamp {
diff --git a/frontend/src/types/proto/store/data_source.ts b/frontend/src/types/proto/store/data_source.ts
index 1e14e8accf..c78b54384e 100644
--- a/frontend/src/types/proto/store/data_source.ts
+++ b/frontend/src/types/proto/store/data_source.ts
@@ -248,6 +248,8 @@ export interface DataSourceOptions {
region: string;
/** account_id is used by Databricks. */
accountId: string;
+ /** warehouse_id is used by Databricks. */
+ warehouseId: string;
}
export enum DataSourceOptions_AuthenticationType {
@@ -642,6 +644,7 @@ function createBaseDataSourceOptions(): DataSourceOptions {
directConnection: false,
region: "",
accountId: "",
+ warehouseId: "",
};
}
@@ -701,6 +704,9 @@ export const DataSourceOptions = {
if (message.accountId !== "") {
writer.uint32(146).string(message.accountId);
}
+ if (message.warehouseId !== "") {
+ writer.uint32(154).string(message.warehouseId);
+ }
return writer;
},
@@ -837,6 +843,13 @@ export const DataSourceOptions = {
message.accountId = reader.string();
continue;
+ case 19:
+ if (tag !== 154) {
+ break;
+ }
+
+ message.warehouseId = reader.string();
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -878,6 +891,7 @@ export const DataSourceOptions = {
directConnection: isSet(object.directConnection) ? globalThis.Boolean(object.directConnection) : false,
region: isSet(object.region) ? globalThis.String(object.region) : "",
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
+ warehouseId: isSet(object.warehouseId) ? globalThis.String(object.warehouseId) : "",
};
},
@@ -937,6 +951,9 @@ export const DataSourceOptions = {
if (message.accountId !== "") {
obj.accountId = message.accountId;
}
+ if (message.warehouseId !== "") {
+ obj.warehouseId = message.warehouseId;
+ }
return obj;
},
@@ -969,6 +986,7 @@ export const DataSourceOptions = {
message.directConnection = object.directConnection ?? false;
message.region = object.region ?? "";
message.accountId = object.accountId ?? "";
+ message.warehouseId = object.warehouseId ?? "";
return message;
},
};
diff --git a/frontend/src/types/proto/v1/common.ts b/frontend/src/types/proto/v1/common.ts
index f9096a1e29..817e101894 100644
--- a/frontend/src/types/proto/v1/common.ts
+++ b/frontend/src/types/proto/v1/common.ts
@@ -80,6 +80,7 @@ export enum Engine {
ELASTICSEARCH = "ELASTICSEARCH",
BIGQUERY = "BIGQUERY",
DYNAMODB = "DYNAMODB",
+ DATABRICKS = "DATABRICKS",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -157,6 +158,9 @@ export function engineFromJSON(object: any): Engine {
case 23:
case "DYNAMODB":
return Engine.DYNAMODB;
+ case 24:
+ case "DATABRICKS":
+ return Engine.DATABRICKS;
case -1:
case "UNRECOGNIZED":
default:
@@ -214,6 +218,8 @@ export function engineToJSON(object: Engine): string {
return "BIGQUERY";
case Engine.DYNAMODB:
return "DYNAMODB";
+ case Engine.DATABRICKS:
+ return "DATABRICKS";
case Engine.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -270,6 +276,8 @@ export function engineToNumber(object: Engine): number {
return 22;
case Engine.DYNAMODB:
return 23;
+ case Engine.DATABRICKS:
+ return 24;
case Engine.UNRECOGNIZED:
default:
return -1;
diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.ts
index 6407c86873..159a2e3e98 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -552,6 +552,10 @@ export interface DataSource {
directConnection: boolean;
/** region is the location of where the DB is, works for AWS RDS. For example, us-east-1. */
region: string;
+ /** account_id is used by Databricks. */
+ accountId: string;
+ /** warehouse_id is used by Databricks. */
+ warehouseId: string;
}
export enum DataSource_AuthenticationType {
@@ -2468,6 +2472,8 @@ function createBaseDataSource(): DataSource {
replicaSet: "",
directConnection: false,
region: "",
+ accountId: "",
+ warehouseId: "",
};
}
@@ -2554,6 +2560,12 @@ export const DataSource = {
if (message.region !== "") {
writer.uint32(218).string(message.region);
}
+ if (message.accountId !== "") {
+ writer.uint32(226).string(message.accountId);
+ }
+ if (message.warehouseId !== "") {
+ writer.uint32(234).string(message.warehouseId);
+ }
return writer;
},
@@ -2753,6 +2765,20 @@ export const DataSource = {
message.region = reader.string();
continue;
+ case 28:
+ if (tag !== 226) {
+ break;
+ }
+
+ message.accountId = reader.string();
+ continue;
+ case 29:
+ if (tag !== 234) {
+ break;
+ }
+
+ message.warehouseId = reader.string();
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -2801,6 +2827,8 @@ export const DataSource = {
replicaSet: isSet(object.replicaSet) ? globalThis.String(object.replicaSet) : "",
directConnection: isSet(object.directConnection) ? globalThis.Boolean(object.directConnection) : false,
region: isSet(object.region) ? globalThis.String(object.region) : "",
+ accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
+ warehouseId: isSet(object.warehouseId) ? globalThis.String(object.warehouseId) : "",
};
},
@@ -2887,6 +2915,12 @@ export const DataSource = {
if (message.region !== "") {
obj.region = message.region;
}
+ if (message.accountId !== "") {
+ obj.accountId = message.accountId;
+ }
+ if (message.warehouseId !== "") {
+ obj.warehouseId = message.warehouseId;
+ }
return obj;
},
@@ -2926,6 +2960,8 @@ export const DataSource = {
message.replicaSet = object.replicaSet ?? "";
message.directConnection = object.directConnection ?? false;
message.region = object.region ?? "";
+ message.accountId = object.accountId ?? "";
+ message.warehouseId = object.warehouseId ?? "";
return message;
},
};
diff --git a/frontend/src/types/v1/instance.ts b/frontend/src/types/v1/instance.ts
index 19f844e118..a80ba04a70 100644
--- a/frontend/src/types/v1/instance.ts
+++ b/frontend/src/types/v1/instance.ts
@@ -75,6 +75,8 @@ export const defaultCharsetOfEngineV1 = (engine: Engine): string => {
return "";
case Engine.DYNAMODB:
return "";
+ case Engine.DATABRICKS:
+ return "";
}
return "";
};
@@ -115,6 +117,8 @@ export const defaultCollationOfEngineV1 = (engine: Engine): string => {
return "";
case Engine.DYNAMODB:
return "";
+ case Engine.DATABRICKS:
+ return "";
}
return "";
};
diff --git a/frontend/src/utils/v1/instance.ts b/frontend/src/utils/v1/instance.ts
index 6c79e9c1e0..69fe3e62a6 100644
--- a/frontend/src/utils/v1/instance.ts
+++ b/frontend/src/utils/v1/instance.ts
@@ -96,6 +96,7 @@ export const supportedEngineV1List = () => {
Engine.ELASTICSEARCH,
Engine.BIGQUERY,
Engine.DYNAMODB,
+ Engine.DATABRICKS,
];
if (locale.value === "zh-CN") {
engines.push(Engine.DM);
@@ -297,6 +298,8 @@ export const engineNameV1 = (type: Engine): string => {
return "BigQuery";
case Engine.DYNAMODB:
return "DynamoDB";
+ case Engine.DATABRICKS:
+ return "Databricks";
}
return "";
};
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index ad69e803e9..fed6a5a1f9 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -8667,6 +8667,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
description: The database engine of the branch.
format: enum
@@ -9106,6 +9107,12 @@ components:
region:
type: string
description: region is the location of where the DB is, works for AWS RDS. For example, us-east-1.
+ accountId:
+ type: string
+ description: account_id is used by Databricks.
+ warehouseId:
+ type: string
+ description: warehouse_id is used by Databricks.
DataSourceExternalSecret:
type: object
properties:
@@ -9383,6 +9390,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
description: The database engine of the schema.
format: enum
@@ -9449,6 +9457,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
format: enum
oldSchema:
@@ -10007,6 +10016,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
format: enum
engineVersion:
@@ -10072,6 +10082,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
format: enum
engineVersion:
@@ -11455,6 +11466,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
format: enum
currentSchema:
@@ -12058,6 +12070,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
format: enum
comment:
@@ -12526,6 +12539,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
description: The SQL dialect.
format: enum
@@ -12777,6 +12791,7 @@ components:
- ELASTICSEARCH
- BIGQUERY
- DYNAMODB
+ - DATABRICKS
type: string
description: The database engine of the schema string.
format: enum
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 8b4f20ed26..ce71cde37b 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -1737,6 +1737,7 @@ PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-parti
| direct_connection | [bool](#bool) | | direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. |
| region | [string](#string) | | region is the location of where the DB is, works for AWS RDS. For example, us-east-1. |
| account_id | [string](#string) | | account_id is used by Databricks. |
+| warehouse_id | [string](#string) | | warehouse_id is used by Databricks. |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 6623b0b463..0f1cd3430c 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -4917,6 +4917,13 @@ Used for authentication when connecting to the data source. </p></td>
<td><p>account_id is used by Databricks. </p></td>
</tr>
+ <tr>
+ <td>warehouse_id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>warehouse_id is used by Databricks. </p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index df077b9dee..ce5907aca4 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -1053,6 +1053,7 @@ DATABASE_CONNECTION is the anomaly type for database connection, e.g. the databa
| ELASTICSEARCH | 21 | |
| BIGQUERY | 22 | |
| DYNAMODB | 23 | |
+| DATABRICKS | 24 | |
@@ -1636,6 +1637,8 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
| replica_set | [string](#string) | | replica_set is used for MongoDB replica set. |
| direct_connection | [bool](#bool) | | direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. |
| region | [string](#string) | | region is the location of where the DB is, works for AWS RDS. For example, us-east-1. |
+| account_id | [string](#string) | | account_id is used by Databricks. |
+| warehouse_id | [string](#string) | | warehouse_id is used by Databricks. |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 505720f485..c84496ed2a 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -3745,6 +3745,12 @@ e.g. the database schema had been changed without bytebase migration.</p></td>
<td><p></p></td>
</tr>
+ <tr>
+ <td>DATABRICKS</td>
+ <td>24</td>
+ <td><p></p></td>
+ </tr>
+
</tbody>
</table>
@@ -5338,6 +5344,20 @@ Used for authentication when connecting to the data source. </p></td>
<td><p>region is the location of where the DB is, works for AWS RDS. For example, us-east-1. </p></td>
</tr>
+ <tr>
+ <td>account_id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>account_id is used by Databricks. </p></td>
+ </tr>
+
+ <tr>
+ <td>warehouse_id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>warehouse_id is used by Databricks. </p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/generated-go/store/data_source.pb.go b/proto/generated-go/store/data_source.pb.go
index 57b00ca8da..54fae16e9c 100644
--- a/proto/generated-go/store/data_source.pb.go
+++ b/proto/generated-go/store/data_source.pb.go
@@ -398,6 +398,8 @@ type DataSourceOptions struct {
Region string `protobuf:"bytes,17,opt,name=region,proto3" json:"region,omitempty"`
// account_id is used by Databricks.
AccountId string `protobuf:"bytes,18,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
+ // warehouse_id is used by Databricks.
+ WarehouseId string `protobuf:"bytes,19,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
}
func (x *DataSourceOptions) Reset() {
@@ -558,6 +560,13 @@ func (x *DataSourceOptions) GetAccountId() string {
return ""
}
+func (x *DataSourceOptions) GetWarehouseId() string {
+ if x != nil {
+ return x.WarehouseId
+ }
+ return ""
+}
+
type SASLConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -909,7 +918,7 @@ var file_store_data_source_proto_rawDesc = []byte{
0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x41,
0x55, 0x4c, 0x54, 0x5f, 0x41, 0x50, 0x50, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x42, 0x0d,
- 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0x08,
+ 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x08,
0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,
@@ -966,39 +975,41 @@ var file_store_data_source_proto_rawDesc = []byte{
0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63,
- 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x31, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
- 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6d, 0x0a, 0x12, 0x41, 0x75, 0x74,
- 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,
- 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f,
- 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
- 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a,
- 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53, 0x51,
- 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x57, 0x53, 0x5f, 0x52,
- 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x03, 0x22, 0x5a, 0x0a, 0x0a, 0x53, 0x41, 0x53, 0x4c,
- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x0a, 0x6b, 0x72, 0x62, 0x5f, 0x63, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x72, 0x62,
- 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x6b, 0x72,
- 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68, 0x61,
- 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x72, 0x62, 0x65, 0x72, 0x6f,
- 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61,
- 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72,
- 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a,
- 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65,
- 0x61, 0x6c, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x12, 0x19, 0x0a, 0x08, 0x6b,
- 0x64, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b,
- 0x64, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x70, 0x6f,
- 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63, 0x50, 0x6f, 0x72,
- 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x64, 0x63, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
- 0x72, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x14, 0x6b, 0x64, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50,
- 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72,
- 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f,
+ 0x75, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x61,
+ 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x49, 0x64, 0x1a, 0x31, 0x0a, 0x07, 0x41, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6d, 0x0a, 0x12,
+ 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,
+ 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41,
+ 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
+ 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01,
+ 0x12, 0x18, 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44,
+ 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x57,
+ 0x53, 0x5f, 0x52, 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x03, 0x22, 0x5a, 0x0a, 0x0a, 0x53,
+ 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x0a, 0x6b, 0x72, 0x62,
+ 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4b,
+ 0x65, 0x72, 0x62, 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,
+ 0x09, 0x6b, 0x72, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65,
+ 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x72, 0x62,
+ 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72,
+ 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x69,
+ 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x12, 0x19,
+ 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x6b, 0x64, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63,
+ 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63,
+ 0x50, 0x6f, 0x72, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x64, 0x63, 0x5f, 0x74, 0x72, 0x61, 0x6e,
+ 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6b, 0x64, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
+ 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65,
+ 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/generated-go/v1/common.pb.go b/proto/generated-go/v1/common.pb.go
index a204cc2c31..7530747293 100644
--- a/proto/generated-go/v1/common.pb.go
+++ b/proto/generated-go/v1/common.pb.go
@@ -96,6 +96,7 @@ const (
Engine_ELASTICSEARCH Engine = 21
Engine_BIGQUERY Engine = 22
Engine_DYNAMODB Engine = 23
+ Engine_DATABRICKS Engine = 24
)
// Enum value maps for Engine.
@@ -125,6 +126,7 @@ var (
21: "ELASTICSEARCH",
22: "BIGQUERY",
23: "DYNAMODB",
+ 24: "DATABRICKS",
}
Engine_value = map[string]int32{
"ENGINE_UNSPECIFIED": 0,
@@ -151,6 +153,7 @@ var (
"ELASTICSEARCH": 21,
"BIGQUERY": 22,
"DYNAMODB": 23,
+ "DATABRICKS": 24,
}
)
@@ -355,7 +358,7 @@ var file_v1_common_proto_rawDesc = []byte{
0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45,
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a,
0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45,
- 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0xd5, 0x02, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69,
+ 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0xe5, 0x02, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69,
0x6e, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x55, 0x4e, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4c,
0x49, 0x43, 0x4b, 0x48, 0x4f, 0x55, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x59,
@@ -376,7 +379,8 @@ var file_v1_common_proto_rawDesc = []byte{
0x4f, 0x52, 0x49, 0x53, 0x10, 0x13, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x56, 0x45, 0x10, 0x14,
0x12, 0x11, 0x0a, 0x0d, 0x45, 0x4c, 0x41, 0x53, 0x54, 0x49, 0x43, 0x53, 0x45, 0x41, 0x52, 0x43,
0x48, 0x10, 0x15, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x49, 0x47, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10,
- 0x16, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x59, 0x4e, 0x41, 0x4d, 0x4f, 0x44, 0x42, 0x10, 0x17, 0x2a,
+ 0x16, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x59, 0x4e, 0x41, 0x4d, 0x4f, 0x44, 0x42, 0x10, 0x17, 0x12,
+ 0x0e, 0x0a, 0x0a, 0x44, 0x41, 0x54, 0x41, 0x42, 0x52, 0x49, 0x43, 0x4b, 0x53, 0x10, 0x18, 0x2a,
0x5c, 0x0a, 0x07, 0x56, 0x43, 0x53, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x43,
0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10, 0x01,
diff --git a/proto/generated-go/v1/instance_service.pb.go b/proto/generated-go/v1/instance_service.pb.go
index ad7e672d76..5cc568de1a 100644
--- a/proto/generated-go/v1/instance_service.pb.go
+++ b/proto/generated-go/v1/instance_service.pb.go
@@ -1615,6 +1615,10 @@ type DataSource struct {
DirectConnection bool `protobuf:"varint,26,opt,name=direct_connection,json=directConnection,proto3" json:"direct_connection,omitempty"`
// region is the location of where the DB is, works for AWS RDS. For example, us-east-1.
Region string `protobuf:"bytes,27,opt,name=region,proto3" json:"region,omitempty"`
+ // account_id is used by Databricks.
+ AccountId string `protobuf:"bytes,28,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
+ // warehouse_id is used by Databricks.
+ WarehouseId string `protobuf:"bytes,29,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
}
func (x *DataSource) Reset() {
@@ -1838,6 +1842,20 @@ func (x *DataSource) GetRegion() string {
return ""
}
+func (x *DataSource) GetAccountId() string {
+ if x != nil {
+ return x.AccountId
+ }
+ return ""
+}
+
+func (x *DataSource) GetWarehouseId() string {
+ if x != nil {
+ return x.WarehouseId
+ }
+ return ""
+}
+
type InstanceResource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -2421,7 +2439,7 @@ var file_v1_instance_service_proto_rawDesc = []byte{
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45,
0x4e, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x41, 0x50, 0x50,
0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f,
- 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe1, 0x09, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53,
+ 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa3, 0x0a, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
@@ -2489,171 +2507,175 @@ var file_v1_instance_service_proto_rawDesc = []byte{
0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10,
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x1a, 0x31, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72,
- 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6d, 0x0a, 0x12, 0x41,
- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70,
- 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54,
- 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
- 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12,
- 0x18, 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f,
- 0x53, 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x57, 0x53,
- 0x5f, 0x52, 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x03, 0x22, 0xde, 0x01, 0x0a, 0x10, 0x49,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
- 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69,
- 0x6e, 0x65, 0x12, 0x2b, 0x0a, 0x0e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72,
- 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,
- 0x52, 0x0d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
- 0x3a, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18,
- 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0b,
- 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61,
- 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x57, 0x0a, 0x0a, 0x53,
- 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0a, 0x6b, 0x72, 0x62,
- 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x72, 0x62,
- 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x6b, 0x72,
- 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68, 0x61,
- 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x72, 0x62, 0x65, 0x72, 0x6f,
- 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61,
- 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72,
- 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a,
- 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65,
- 0x61, 0x6c, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x12, 0x19, 0x0a, 0x08, 0x6b,
- 0x64, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b,
- 0x64, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x70, 0x6f,
- 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63, 0x50, 0x6f, 0x72,
- 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x64, 0x63, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
- 0x72, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x14, 0x6b, 0x64, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50,
- 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54,
- 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10,
- 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02,
- 0x32, 0x94, 0x0e, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72,
- 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x25, 0xda, 0x41, 0x04,
- 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x7d, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x00,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
+ 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f,
+ 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63,
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x61, 0x72, 0x65, 0x68,
+ 0x6f, 0x75, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77,
+ 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x49, 0x64, 0x1a, 0x31, 0x0a, 0x07, 0x41, 0x64,
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72,
+ 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6d, 0x0a,
+ 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
+ 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43,
+ 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
+ 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10,
+ 0x01, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55,
+ 0x44, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41,
+ 0x57, 0x53, 0x5f, 0x52, 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x03, 0x22, 0xde, 0x01, 0x0a,
+ 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e,
+ 0x67, 0x69, 0x6e, 0x65, 0x12, 0x2b, 0x0a, 0x0e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x76,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41,
+ 0x01, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
+ 0x6e, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x0a,
+ 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x57, 0x0a,
+ 0x0a, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0a, 0x6b,
+ 0x72, 0x62, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65,
+ 0x72, 0x62, 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09,
+ 0x6b, 0x72, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63,
+ 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x72, 0x62, 0x65,
+ 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69,
+ 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d,
+ 0x61, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12,
+ 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x12, 0x19, 0x0a,
+ 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x07, 0x6b, 0x64, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f,
+ 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63, 0x50,
+ 0x6f, 0x72, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x64, 0x63, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73,
+ 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x14, 0x6b, 0x64, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
+ 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x61, 0x74,
+ 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x44,
+ 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49,
+ 0x4e, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59,
+ 0x10, 0x02, 0x32, 0x94, 0x0e, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x25, 0xda,
+ 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda,
+ 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f,
+ 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x0d, 0x2f,
+ 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xa9, 0x01, 0x0a,
+ 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
+ 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0xda, 0x41, 0x00,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x5a, 0x2a, 0x12, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,
- 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x0d, 0x2f, 0x76, 0x31,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x0f, 0x53,
- 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x23,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61,
- 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0xda, 0x41, 0x00, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x42, 0x5a, 0x2a, 0x12, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68,
- 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a,
- 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x77, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62,
+ 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72,
+ 0x63, 0x68, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x77, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61,
+ 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a, 0xda, 0x41, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x22, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22,
+ 0x48, 0xda, 0x41, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x08,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x32, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0e, 0x44, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7b,
+ 0x0a, 0x10, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22,
+ 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f,
+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
+ 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x7b, 0x0a, 0x0c, 0x53,
+ 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63,
+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74,
+ 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x25,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74,
+ 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e,
+ 0x63, 0x12, 0x7e, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61,
+ 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62,
0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x22, 0x2a, 0xda, 0x41, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x22, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12,
- 0x95, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x48, 0xda,
- 0x41, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x08, 0x69, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x32, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74,
- 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
- 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7b, 0x0a, 0x10,
- 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76,
+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,
- 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a, 0x82,
- 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
- 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
- 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x7b, 0x0a, 0x0c, 0x53, 0x79, 0x6e,
- 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68,
- 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68,
- 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x12,
- 0x7e, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
- 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
- 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
- 0x87, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44,
- 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x55, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x12, 0xb1, 0x01, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77,
- 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,
- 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67,
- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,
- 0x6d, 0x70, 0x74, 0x79, 0x22, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x3a, 0x01, 0x2a, 0x5a,
- 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79,
- 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x28, 0x2f,
- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77,
- 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,
- 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x33,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0xb1, 0x01, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c,
+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77,
+ 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+ 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x3a, 0x01,
+ 0x2a, 0x5a, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
+ 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
+ 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22,
+ 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c,
+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e,
+ 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/store/data_source.proto b/proto/store/data_source.proto
index 5fcc8cc8e7..0b2dd08205 100644
--- a/proto/store/data_source.proto
+++ b/proto/store/data_source.proto
@@ -111,6 +111,8 @@ message DataSourceOptions {
string region = 17;
// account_id is used by Databricks.
string account_id = 18;
+ // warehouse_id is used by Databricks.
+ string warehouse_id = 19;
}
message SASLConfig {
diff --git a/proto/v1/common.proto b/proto/v1/common.proto
index 1a0f0d173b..fa2d98b4f0 100644
--- a/proto/v1/common.proto
+++ b/proto/v1/common.proto
@@ -35,6 +35,7 @@ enum Engine {
ELASTICSEARCH = 21;
BIGQUERY = 22;
DYNAMODB = 23;
+ DATABRICKS = 24;
}
enum VCSType {
diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.proto
index 2cb9f0d5d5..b9d3781a19 100644
--- a/proto/v1/database_service.proto
+++ b/proto/v1/database_service.proto
@@ -23,7 +23,7 @@ service DatabaseService {
rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse) {
option (google.api.http) = {
get: "/v1/{parent=instances/*}/databases"
- additional_bindings {get: "/v1/{parent=projects/*}/databases"}
+ additional_bindings: {get: "/v1/{parent=projects/*}/databases"}
};
option (google.api.method_signature) = "";
}
@@ -76,7 +76,7 @@ service DatabaseService {
post: "/v1/{name=instances/*/databases/*}:diffSchema"
body: "*"
- additional_bindings {
+ additional_bindings: {
post: "/v1/{name=instances/*/databases/*/changeHistories/*}:diffSchema"
body: "*"
}
@@ -95,8 +95,8 @@ service DatabaseService {
rpc UpdateSecret(UpdateSecretRequest) returns (Secret) {
option (google.api.http) = {
- patch: "/v1/{secret.name=instances/*/databases/*/secrets/*}";
- body: "secret";
+ patch: "/v1/{secret.name=instances/*/databases/*/secrets/*}"
+ body: "secret"
};
}
diff --git a/proto/v1/instance_service.proto b/proto/v1/instance_service.proto
index a9953de223..b3e38250c8 100644
--- a/proto/v1/instance_service.proto
+++ b/proto/v1/instance_service.proto
@@ -21,7 +21,7 @@ service InstanceService {
rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) {
option (google.api.http) = {
get: "/v1/instances"
- additional_bindings {get: "/v1/{parent=projects/*}/instances"}
+ additional_bindings: {get: "/v1/{parent=projects/*}/instances"}
};
option (google.api.method_signature) = "";
}
@@ -29,7 +29,7 @@ service InstanceService {
rpc SearchInstances(SearchInstancesRequest) returns (SearchInstancesResponse) {
option (google.api.http) = {
get: "/v1/instances:search"
- additional_bindings {get: "/v1/{parent=projects/*}/instances:search"}
+ additional_bindings: {get: "/v1/{parent=projects/*}/instances:search"}
};
option (google.api.method_signature) = "";
}
@@ -102,7 +102,7 @@ service InstanceService {
post: "/v1/{parent=instances/*}:syncSlowQueries"
body: "*"
- additional_bindings {
+ additional_bindings: {
post: "/v1/{parent=projects/*}:syncSlowQueries"
body: "*"
}
@@ -420,6 +420,11 @@ message DataSource {
// region is the location of where the DB is, works for AWS RDS. For example, us-east-1.
string region = 27;
+
+ // account_id is used by Databricks.
+ string account_id = 28;
+ // warehouse_id is used by Databricks.
+ string warehouse_id = 29;
}
enum DataSourceType {
diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.proto
index 5f39c208b3..c5bd6cf94f 100644
--- a/proto/v1/org_policy_service.proto
+++ b/proto/v1/org_policy_service.proto
@@ -17,10 +17,10 @@ service OrgPolicyService {
option (google.api.http) = {
get: "/v1/{name=policies/*}"
- additional_bindings {get: "/v1/{name=projects/*/policies/*}"}
- additional_bindings {get: "/v1/{name=environments/*/policies/*}"}
- additional_bindings {get: "/v1/{name=instances/*/policies/*}"}
- additional_bindings {get: "/v1/{name=instances/*/databases/*/policies/*}"}
+ additional_bindings: {get: "/v1/{name=projects/*/policies/*}"}
+ additional_bindings: {get: "/v1/{name=environments/*/policies/*}"}
+ additional_bindings: {get: "/v1/{name=instances/*/policies/*}"}
+ additional_bindings: {get: "/v1/{name=instances/*/databases/*/policies/*}"}
};
option (google.api.method_signature) = "name";
}
@@ -29,10 +29,10 @@ service OrgPolicyService {
option (google.api.http) = {
get: "/v1/policies"
- additional_bindings {get: "/v1/{parent=projects/*}/policies"}
- additional_bindings {get: "/v1/{parent=environments/*}/policies"}
- additional_bindings {get: "/v1/{parent=instances/*}/policies"}
- additional_bindings {get: "/v1/{parent=instances/*/databases/*}/policies"}
+ additional_bindings: {get: "/v1/{parent=projects/*}/policies"}
+ additional_bindings: {get: "/v1/{parent=environments/*}/policies"}
+ additional_bindings: {get: "/v1/{parent=instances/*}/policies"}
+ additional_bindings: {get: "/v1/{parent=instances/*/databases/*}/policies"}
};
option (google.api.method_signature) = "";
}
@@ -42,19 +42,19 @@ service OrgPolicyService {
post: "/v1/policies"
body: "policy"
- additional_bindings {
+ additional_bindings: {
post: "/v1/{parent=projects/*}/policies"
body: "policy"
}
- additional_bindings {
+ additional_bindings: {
post: "/v1/{parent=environments/*}/policies"
body: "policy"
}
- additional_bindings {
+ additional_bindings: {
post: "/v1/{parent=instances/*}/policies"
body: "policy"
}
- additional_bindings {
+ additional_bindings: {
post: "/v1/{parent=instances/*/databases/*}/policies"
body: "policy"
}
@@ -67,19 +67,19 @@ service OrgPolicyService {
patch: "/v1/{policy.name=policies/*}"
body: "policy"
- additional_bindings {
+ additional_bindings: {
patch: "/v1/{policy.name=projects/*/policies/*}"
body: "policy"
}
- additional_bindings {
+ additional_bindings: {
patch: "/v1/{policy.name=environments/*/policies/*}"
body: "policy"
}
- additional_bindings {
+ additional_bindings: {
patch: "/v1/{policy.name=instances/*/policies/*}"
body: "policy"
}
- additional_bindings {
+ additional_bindings: {
patch: "/v1/{policy.name=instances/*/databases/*/policies/*}"
body: "policy"
}
@@ -91,10 +91,10 @@ service OrgPolicyService {
option (google.api.http) = {
delete: "/v1/{name=policies/*}"
- additional_bindings {delete: "/v1/{name=projects/*/policies/*}"}
- additional_bindings {delete: "/v1/{name=environments/*/policies/*}"}
- additional_bindings {delete: "/v1/{name=instances/*/policies/*}"}
- additional_bindings {delete: "/v1/{name=instances/*/databases/*/policies/*}"}
+ additional_bindings: {delete: "/v1/{name=projects/*/policies/*}"}
+ additional_bindings: {delete: "/v1/{name=environments/*/policies/*}"}
+ additional_bindings: {delete: "/v1/{name=instances/*/policies/*}"}
+ additional_bindings: {delete: "/v1/{name=instances/*/databases/*/policies/*}"}
};
option (google.api.method_signature) = "name";
}
diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.proto
index 95e83084a1..285c31bc33 100644
--- a/proto/v1/rollout_service.proto
+++ b/proto/v1/rollout_service.proto
@@ -27,7 +27,7 @@ service RolloutService {
rpc PreviewRollout(PreviewRolloutRequest) returns (Rollout) {
option (google.api.http) = {
- post: "/v1/{project=projects/*}:previewRollout",
+ post: "/v1/{project=projects/*}:previewRollout"
body: "*"
};
option (google.api.method_signature) = "name";
@@ -45,7 +45,7 @@ service RolloutService {
rpc BatchRunTasks(BatchRunTasksRequest) returns (BatchRunTasksResponse) {
option (google.api.http) = {
- post: "/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun",
+ post: "/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun"
body: "*"
};
option (google.api.method_signature) = "parent";
@@ -53,7 +53,7 @@ service RolloutService {
rpc BatchSkipTasks(BatchSkipTasksRequest) returns (BatchSkipTasksResponse) {
option (google.api.http) = {
- post: "/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip",
+ post: "/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip"
body: "*"
};
option (google.api.method_signature) = "parent";
@@ -61,7 +61,7 @@ service RolloutService {
rpc BatchCancelTaskRuns(BatchCancelTaskRunsRequest) returns (BatchCancelTaskRunsResponse) {
option (google.api.http) = {
- post: "/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel",
+ post: "/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel"
body: "*"
};
option (google.api.method_signature) = "parent";
diff --git a/proto/v1/sql_service.proto b/proto/v1/sql_service.proto
index ba8587a71b..19adb84c92 100644
--- a/proto/v1/sql_service.proto
+++ b/proto/v1/sql_service.proto
@@ -18,7 +18,7 @@ service SQLService {
post: "/v1/{name=instances/*/databases/*}:query"
body: "*"
- additional_bindings {
+ additional_bindings: {
post: "/v1/{name=instances/*}:query"
body: "*"
}
@@ -30,7 +30,7 @@ service SQLService {
post: "/v1/{name=instances/*/databases/*}:execute"
body: "*"
- additional_bindings {
+ additional_bindings: {
post: "/v1/{name=instances/*}:execute"
body: "*"
}
@@ -50,11 +50,11 @@ service SQLService {
post: "/v1/{name=instances/*/databases/*}:export"
body: "*"
- additional_bindings {
+ additional_bindings: {
post: "/v1/{name=instances/*}:export"
body: "*"
}
- additional_bindings {
+ additional_bindings: {
post: "/v1/{name=projects/*/issues/*}:export"
body: "*"
}