Skip to content

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

chore: support AWS RDS connection (#11796)

ecmadao3be45a03dac5
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.go
index 7aced5d7b3..845b33fb58 100644
--- a/backend/api/v1/instance_service.go
+++ b/backend/api/v1/instance_service.go
@@ -1139,6 +1139,8 @@ func convertToV1DataSources(dataSources []*store.DataSourceMessage) ([]*v1pb.Dat
authenticationType = v1pb.DataSource_PASSWORD
case storepb.DataSourceOptions_GOOGLE_CLOUD_SQL_IAM:
authenticationType = v1pb.DataSource_GOOGLE_CLOUD_SQL_IAM
+ case storepb.DataSourceOptions_AWS_RDS_IAM:
+ authenticationType = v1pb.DataSource_AWS_RDS_IAM
}
dataSourceList = append(dataSourceList, &v1pb.DataSource{
@@ -1239,6 +1241,8 @@ func convertToAuthenticationType(authType v1pb.DataSource_AuthenticationType) st
authenticationType = storepb.DataSourceOptions_PASSWORD
case v1pb.DataSource_GOOGLE_CLOUD_SQL_IAM:
authenticationType = storepb.DataSourceOptions_GOOGLE_CLOUD_SQL_IAM
+ case v1pb.DataSource_AWS_RDS_IAM:
+ authenticationType = storepb.DataSourceOptions_AWS_RDS_IAM
}
return authenticationType
}
diff --git a/backend/plugin/db/mysql/mysql.go b/backend/plugin/db/mysql/mysql.go
index 7e3dae4881..c37922ecfe 100644
--- a/backend/plugin/db/mysql/mysql.go
+++ b/backend/plugin/db/mysql/mysql.go
@@ -3,15 +3,21 @@ package mysql
import (
"context"
+ "crypto/tls"
+ "crypto/x509"
"database/sql"
"fmt"
+ "io"
"log/slog"
"net"
+ "net/http"
"regexp"
"strings"
"time"
"cloud.google.com/go/cloudsqlconn"
+ "github.com/aws/aws-sdk-go-v2/config"
+ "github.com/aws/aws-sdk-go-v2/feature/rds/auth"
"github.com/blang/semver/v4"
"github.com/go-sql-driver/mysql"
"github.com/pkg/errors"
@@ -62,18 +68,17 @@ func newDriver(dc db.DriverConfig) db.Driver {
// Open opens a MySQL driver.
func (driver *Driver) Open(ctx context.Context, dbType storepb.Engine, connCfg db.ConnectionConfig) (db.Driver, error) {
var dsn string
- if connCfg.AuthenticationType == storepb.DataSourceOptions_GOOGLE_CLOUD_SQL_IAM {
- connStr, err := getCloudSQLConnection(ctx, connCfg)
- if err != nil {
- return nil, err
- }
- dsn = connStr
- } else {
- connStr, err := driver.getMySQLConnection(connCfg)
- if err != nil {
- return nil, err
- }
- dsn = connStr
+ var err error
+ switch connCfg.AuthenticationType {
+ case storepb.DataSourceOptions_GOOGLE_CLOUD_SQL_IAM:
+ dsn, err = getCloudSQLConnection(ctx, connCfg)
+ case storepb.DataSourceOptions_AWS_RDS_IAM:
+ dsn, err = getRDSConnection(ctx, connCfg)
+ default:
+ dsn, err = driver.getMySQLConnection(connCfg)
+ }
+ if err != nil {
+ return nil, err
}
db, err := sql.Open("mysql", dsn)
@@ -131,6 +136,68 @@ func (driver *Driver) getMySQLConnection(connCfg db.ConnectionConfig) (string, e
return fmt.Sprintf("%s:%s@%s(%s:%s)/%s?%s", connCfg.Username, connCfg.Password, protocol, connCfg.Host, connCfg.Port, connCfg.Database, strings.Join(params, "&")), nil
}
+// AWS RDS connection with IAM require TLS connection.
+//
+// refs:
+// https://github.com/aws/aws-sdk-go/issues/1248
+// https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/mysql-ssl-connections.html
+func registerRDSMysqlCerts(ctx context.Context) error {
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem", nil)
+ if err != nil {
+ return errors.Wrapf(err, "failed to build request for rds cert")
+ }
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ if err != nil {
+ return err
+ }
+
+ pem, err := io.ReadAll(resp.Body)
+ if err != nil {
+ return err
+ }
+
+ if err := resp.Body.Close(); err != nil {
+ return errors.Wrapf(err, "failed to close response")
+ }
+
+ rootCertPool := x509.NewCertPool()
+ if ok := rootCertPool.AppendCertsFromPEM(pem); !ok {
+ return err
+ }
+
+ return mysql.RegisterTLSConfig("rds", &tls.Config{RootCAs: rootCertPool, InsecureSkipVerify: true})
+}
+
+// getRDSConnection returns the connection string with IAM for AWS RDS.
+//
+// refs:
+// https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.Connecting.Go.html
+// https://repost.aws/knowledge-center/rds-mysql-access-denied
+func getRDSConnection(ctx context.Context, connCfg db.ConnectionConfig) (string, error) {
+ dbEndpoint := fmt.Sprintf("%s:%s", connCfg.Host, connCfg.Port)
+ cfg, err := config.LoadDefaultConfig(ctx)
+ if err != nil {
+ return "", errors.Wrap(err, "load aws config failed")
+ }
+
+ authenticationToken, err := auth.BuildAuthToken(
+ ctx, dbEndpoint, "us-east-1", connCfg.Username, cfg.Credentials)
+ if err != nil {
+ return "", errors.Wrap(err, "failed to create authentication token")
+ }
+
+ err = registerRDSMysqlCerts(ctx)
+ if err != nil {
+ return "", errors.Wrap(err, "failed to register rds certs")
+ }
+
+ return fmt.Sprintf("%s:%s@tcp(%s)/%s?tls=rds&allowCleartextPasswords=true",
+ connCfg.Username, authenticationToken, dbEndpoint, connCfg.Database,
+ ), nil
+}
+
func getCloudSQLConnection(ctx context.Context, connCfg db.ConnectionConfig) (string, error) {
d, err := cloudsqlconn.NewDialer(ctx, cloudsqlconn.WithIAMAuthN())
if err != nil {
diff --git a/backend/plugin/db/pg/dump.go b/backend/plugin/db/pg/dump.go
index 6a67a02294..64c6d3bb41 100644
--- a/backend/plugin/db/pg/dump.go
+++ b/backend/plugin/db/pg/dump.go
@@ -25,7 +25,7 @@ func (driver *Driver) Dump(ctx context.Context, out io.Writer, schemaOnly bool)
// We don't support pg_dump for CloudSQL, because pg_dump not support IAM & instance name for authentication.
// To dump schema for CloudSQL, you need to run the cloud-sql-proxy with IAM to get the host and port.
// Learn more: https://linear.app/bytebase/issue/BYT-5401/support-iam-authentication-for-gcp-and-aws
- if driver.config.AuthenticationType == storepb.DataSourceOptions_GOOGLE_CLOUD_SQL_IAM {
+ if driver.config.AuthenticationType != storepb.DataSourceOptions_PASSWORD {
return "", nil
}
// pg_dump -d dbName --schema-only+
diff --git a/backend/plugin/db/pg/pg.go b/backend/plugin/db/pg/pg.go
index 267f100f46..e9e09e8c55 100644
--- a/backend/plugin/db/pg/pg.go
+++ b/backend/plugin/db/pg/pg.go
@@ -15,6 +15,8 @@ import (
// Import pg driver.
// init() in pgx/v5/stdlib will register it's pgx driver.
"cloud.google.com/go/cloudsqlconn"
+ "github.com/aws/aws-sdk-go-v2/config"
+ "github.com/aws/aws-sdk-go-v2/feature/rds/auth"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/stdlib"
"github.com/pkg/errors"
@@ -66,18 +68,18 @@ func newDriver(config db.DriverConfig) db.Driver {
// Open opens a Postgres driver.
func (driver *Driver) Open(ctx context.Context, _ storepb.Engine, config db.ConnectionConfig) (db.Driver, error) {
var connConfig *pgx.ConnConfig
- if config.AuthenticationType == storepb.DataSourceOptions_GOOGLE_CLOUD_SQL_IAM {
- cloudSQLConfig, err := getCloudSQLConnectionConfig(ctx, config)
- if err != nil {
- return nil, err
- }
- connConfig = cloudSQLConfig
- } else {
- pgConfig, err := getPGConnectionConfig(config)
- if err != nil {
- return nil, err
- }
- connConfig = pgConfig
+ var err error
+
+ switch config.AuthenticationType {
+ case storepb.DataSourceOptions_GOOGLE_CLOUD_SQL_IAM:
+ connConfig, err = getCloudSQLConnectionConfig(ctx, config)
+ case storepb.DataSourceOptions_AWS_RDS_IAM:
+ connConfig, err = getRDSConnectionConfig(ctx, config)
+ default:
+ connConfig, err = getPGConnectionConfig(config)
+ }
+ if err != nil {
+ return nil, err
}
if config.SSHConfig.Host != "" {
@@ -172,6 +174,29 @@ func getPGConnectionConfig(config db.ConnectionConfig) (*pgx.ConnConfig, error)
return connConfig, nil
}
+// getRDSConnectionConfig returns connection config for AWS RDS.
+//
+// refs:
+// https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.Connecting.Go.html
+func getRDSConnectionConfig(ctx context.Context, conf db.ConnectionConfig) (*pgx.ConnConfig, error) {
+ cfg, err := config.LoadDefaultConfig(ctx)
+ if err != nil {
+ return nil, errors.Wrap(err, "load aws config failed")
+ }
+
+ dbEndpoint := fmt.Sprintf("%s:%s", conf.Host, conf.Port)
+ authenticationToken, err := auth.BuildAuthToken(
+ ctx, dbEndpoint, "us-east-1", conf.Username, cfg.Credentials)
+ if err != nil {
+ return nil, errors.Wrap(err, "failed to create authentication token")
+ }
+
+ dsn := fmt.Sprintf("host=%s port=%s user=%s password=%s dbname=%s",
+ conf.Host, conf.Port, conf.Username, authenticationToken, conf.Database,
+ )
+ return pgx.ParseConfig(dsn)
+}
+
// getCloudSQLConnectionConfig returns config for Cloud SQL connector.
// refs:
// https://cloud.google.com/sql/docs/postgres/connect-connectors
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/CreateDataSourceExample.vue b/frontend/src/components/InstanceForm/DataSourceSection/CreateDataSourceExample.vue
index 6e9bc0f708..66a9fc6070 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/CreateDataSourceExample.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/CreateDataSourceExample.vue
@@ -54,6 +54,19 @@
</span>
</template>
</i18n-t>
+ <i18n-t
+ v-else-if="
+ authenticationType === DataSource_AuthenticationType.AWS_RDS_IAM
+ "
+ tag="span"
+ keypath="instance.sentence.aws-rds.mysql.template"
+ >
+ <template #user>
+ <span class="font-semibold">
+ {{ userName }}
+ </span>
+ </template>
+ </i18n-t>
<i18n-t
v-else
tag="span"
@@ -117,6 +130,19 @@
</span>
</template>
</i18n-t>
+ <i18n-t
+ v-else-if="
+ authenticationType === DataSource_AuthenticationType.AWS_RDS_IAM
+ "
+ tag="p"
+ keypath="instance.sentence.aws-rds.postgresql.template"
+ >
+ <template #user>
+ <span class="font-semibold">
+ {{ userName }}
+ </span>
+ </template>
+ </i18n-t>
<i18n-t
v-else
tag="p"
@@ -202,7 +228,7 @@ interface LocalState {
}
const ADMIN_USER_NAME = "bytebase";
-const READONLY_USER_NAME = `${ADMIN_USER_NAME}-readonly`;
+const READONLY_USER_NAME = `${ADMIN_USER_NAME}_readonly`;
const props = withDefaults(
defineProps<{
@@ -246,13 +272,17 @@ const grantStatement = computed(() => {
DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM
) {
return `GRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE VIEW, \nDELETE, DROP, EVENT, EXECUTE, INDEX, INSERT, PROCESS, REFERENCES, \nSELECT, SHOW DATABASES, SHOW VIEW, TRIGGER, UPDATE, USAGE, \nRELOAD, LOCK TABLES, REPLICATION CLIENT, REPLICATION SLAVE \n/*!80000 , SET_USER_ID */\nON *.* to ${ADMIN_USER_NAME}@'%';`;
+ } else if (
+ props.authenticationType === DataSource_AuthenticationType.AWS_RDS_IAM
+ ) {
+ return `CREATE USER ${ADMIN_USER_NAME}@'%' IDENTIFIED WITH AWSAuthenticationPlugin AS 'RDS';\n\nALTER USER '${ADMIN_USER_NAME}'@'%' REQUIRE SSL;\n\nGRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE VIEW, \nDELETE, DROP, EVENT, EXECUTE, INDEX, INSERT, PROCESS, REFERENCES, \nSELECT, SHOW DATABASES, SHOW VIEW, TRIGGER, UPDATE, USAGE, \nRELOAD, LOCK TABLES, REPLICATION CLIENT, REPLICATION SLAVE \n/*!80000 , SET_USER_ID */\nON *.* to ${ADMIN_USER_NAME}@'%';`;
}
// RELOAD, LOCK TABLES: enables use of explicit LOCK TABLES statements for backups.
// REPLICATION CLIENT: enables use of the SHOW MASTER STATUS, SHOW SLAVE STATUS, and SHOW BINARY LOGS statements.
// REPLICATION SLAVE: use of the SHOW SLAVE HOSTS, SHOW RELAYLOG EVENTS, and SHOW BINLOG EVENTS statements. This privilege is also required to use the mysqlbinlog options --read-from-remote-server (-R) and --read-from-remote-master.
// REPLICATION_APPLIER: execute the internal-use BINLOG statements used by mysqlbinlog.
// SESSION_VARIABLES_ADMIN: use of the SET sql_log_bin statements during PITR.
- return `${createUserStatement}\n\nGRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE VIEW, \nDELETE, DROP, EVENT, EXECUTE, INDEX, INSERT, PROCESS, REFERENCES, \nSELECT, SHOW DATABASES, SHOW VIEW, TRIGGER, UPDATE, USAGE, \nRELOAD, LOCK TABLES, REPLICATION CLIENT, REPLICATION SLAVE \n/*!80000 , REPLICATION_APPLIER, SYSTEM_VARIABLES_ADMIN, SET_USER_ID */\nON *.* to ${ADMIN_USER_NAME}@'%';`;
+ return `${createUserStatement}\n\nGRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE VIEW, \nDELETE, DROP, EVENT, EXECUTE, INDEX, INSERT, PROCESS, REFERENCES, \nSELECT, SHOW DATABASES, SHOW VIEW, TRIGGER, UPDATE, USAGE, \nRELOAD, LOCK TABLES, REPLICATION CLIENT, REPLICATION SLAVE \n/*!80000 , SET_USER_ID */\nON *.* to ${ADMIN_USER_NAME}@'%';`;
case Engine.TIDB:
return `${createUserStatement}\n\nGRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE VIEW, \nDELETE, DROP, EVENT, EXECUTE, INDEX, INSERT, PROCESS, REFERENCES, \nSELECT, SHOW DATABASES, SHOW VIEW, TRIGGER, UPDATE, USAGE, \nLOCK TABLES, REPLICATION CLIENT, REPLICATION SLAVE \nON *.* to ${ADMIN_USER_NAME}@'%';`;
case Engine.MARIADB:
@@ -362,6 +392,10 @@ GRANT ALL PRIVILEGES ON PIPE {{PIPE_NAME}} IN DATABASE {{YOUR_DB_NAME}} TO ROLE
DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM
) {
return `GRANT pg_write_all_data TO "${ADMIN_USER_NAME}@{project-id}.iam";`;
+ } else if (
+ props.authenticationType === DataSource_AuthenticationType.AWS_RDS_IAM
+ ) {
+ return `CREATE USER ${ADMIN_USER_NAME};\n\nGRANT rds_iam TO ${ADMIN_USER_NAME};\n\nGRANT pg_write_all_data TO ${ADMIN_USER_NAME};`;
}
return `CREATE USER ${ADMIN_USER_NAME} WITH ENCRYPTED PASSWORD 'YOUR_DB_PWD';\n\nALTER USER ${ADMIN_USER_NAME} WITH SUPERUSER;`;
case Engine.REDSHIFT:
@@ -405,6 +439,10 @@ GRANT ALL PRIVILEGES TO ${ADMIN_USER_NAME};`;
DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM
) {
return `GRANT SELECT, SHOW DATABASES, SHOW VIEW, USAGE ON *.* to ${READONLY_USER_NAME}@'%';`;
+ } else if (
+ props.authenticationType === DataSource_AuthenticationType.AWS_RDS_IAM
+ ) {
+ return `CREATE USER ${READONLY_USER_NAME}@'%' IDENTIFIED WITH AWSAuthenticationPlugin AS 'RDS';\n\nALTER USER '${READONLY_USER_NAME}'@'%' REQUIRE SSL;\n\nGRANT SELECT, SHOW DATABASES, SHOW VIEW, USAGE ON *.* to ${READONLY_USER_NAME}@'%';`;
}
return mysqlReadonlyStatement;
case Engine.TIDB:
@@ -513,6 +551,10 @@ GRANT ALL PRIVILEGES ON PIPE {{PIPE_NAME}} IN DATABASE {{YOUR_DB_NAME}} TO ROLE
DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM
) {
return `GRANT pg_read_all_data TO "${READONLY_USER_NAME}@{project-id}.iam";`;
+ } else if (
+ props.authenticationType === DataSource_AuthenticationType.AWS_RDS_IAM
+ ) {
+ return `CREATE USER ${READONLY_USER_NAME};\n\nGRANT rds_iam TO ${READONLY_USER_NAME};\n\nGRANT pg_read_all_data TO ${READONLY_USER_NAME};`;
}
return `CREATE USER ${READONLY_USER_NAME} WITH ENCRYPTED PASSWORD 'YOUR_DB_PWD';
ALTER USER ${READONLY_USER_NAME} WITH SUPERUSER;`;
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
index 36dec5cd85..3a1be5a66e 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
@@ -6,7 +6,7 @@
basicInfo.engine === Engine.MYSQL ||
basicInfo.engine === Engine.POSTGRES
"
- class="mt-2"
+ class="mt-2 sm:col-span-3 sm:col-start-1"
>
<NRadioGroup
v-model:value="dataSource.authenticationType"
@@ -19,6 +19,9 @@
<NRadio :value="DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM">
{{ $t("instance.password-type.google-iam") }}
</NRadio>
+ <NRadio :value="DataSource_AuthenticationType.AWS_RDS_IAM">
+ {{ $t("instance.password-type.aws-iam") }}
+ </NRadio>
</NRadioGroup>
</div>
<CreateDataSourceExample
diff --git a/frontend/src/components/InstanceForm/InstanceForm.vue b/frontend/src/components/InstanceForm/InstanceForm.vue
index 502fa0cb54..449f3582d7 100644
--- a/frontend/src/components/InstanceForm/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm/InstanceForm.vue
@@ -167,8 +167,8 @@
<template
v-if="
basicInfo.engine !== Engine.SPANNER &&
- adminDataSource.authenticationType ===
- DataSource_AuthenticationType.PASSWORD
+ adminDataSource.authenticationType !==
+ DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM
"
>
<div class="sm:col-span-1">
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index bdd9910984..fad8cb87fe 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1334,6 +1334,14 @@
"template": "Create a service account named {user}, then add it in your Google Cloud SQL as IAM user {user}{'@'}project-id.iam. Grant the user with the needed privileges."
}
},
+ "aws-rds": {
+ "mysql": {
+ "template": "Below is an example to create user {user}{'@'}% and grant the user with the needed privileges."
+ },
+ "postgresql": {
+ "template": "Below is an example to create user '{user}' and grant the user with the needed privileges."
+ }
+ },
"create-user-example": {
"snowflake": {
"template": "Below is an example to create user '{user}' with password {password} for {warehouse} and grant the user with the needed privileges."
@@ -1362,6 +1370,7 @@
"password": "Password",
"password-tip": "You can also specify external secret manage endpoint",
"google-iam": "Google CloudSQL IAM",
+ "aws-iam": "AWS RDS IAM",
"external-secret-vault": "Vault (KV v2)",
"external-secret-aws": "AWS Secrets Manager",
"external-secret-gcp": "GCP Secret Manager"
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index e5a0a3e726..ea548c33c4 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1334,6 +1334,14 @@
"template": "Cree una cuenta de servicio llamada {user} y luego agréguela en su Google Cloud SQL como usuario de IAM {user}{'@'}project-id.iam. Otorgue al usuario los privilegios necesarios."
}
},
+ "aws-rds": {
+ "mysql": {
+ "template": "A continuación se muestra un ejemplo para crear el usuario {user}{'@'}% y otorgarle los privilegios necesarios."
+ },
+ "postgresql": {
+ "template": "A continuación se muestra un ejemplo para crear el usuario '{user}' y otorgarle los privilegios necesarios."
+ }
+ },
"create-user-example": {
"snowflake": {
"template": "A continuación se muestra un ejemplo para crear el usuario 'bytebase' con la contraseña {password} para {warehouse} y otorgar al usuario los privilegios necesarios."
@@ -1362,6 +1370,7 @@
"password": "Contraseña",
"password-tip": "También puede especificar un punto final de gestión de secreto externo",
"google-iam": "Google CloudSQL IAM",
+ "aws-iam": "AWS RDS IAM",
"external-secret-vault": "Vault (KV v2)",
"external-secret-aws": "AWS Secrets Manager",
"external-secret-gcp": "GCP Secret Manager"
@@ -3435,4 +3444,4 @@
"drop-partition-with-subpartitions-confirm": "También eliminará todas sus subparticiones."
}
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index 213274ae04..65bc42f985 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -1334,6 +1334,14 @@
"template": "{user} という名前のサービス アカウントを作成し、IAM ユーザー {user}{'@'}project-id.iam として Google Cloud SQL に追加します。ユーザーに必要な権限を付与します。"
}
},
+ "aws-rds": {
+ "mysql": {
+ "template": "以下は、ユーザー {user}{'@'}% を作成し、そのユーザーに必要な権限を付与する例です。"
+ },
+ "postgresql": {
+ "template": "以下は、ユーザー '{user}' を作成し、そのユーザーに必要な権限を付与する例です。"
+ }
+ },
"create-user-example": {
"snowflake": {
"template": "ユーザー {user}、パスワード {password}、ウェアハウス {warehouse} を作成し、必要な権限を付与する例は次のとおりです。"
@@ -1362,6 +1370,7 @@
"password": "パスワード",
"password-tip": "外部のパスワード管理サービスのエンドポイントを指定することもできます",
"google-iam": "Google CloudSQL IAM",
+ "aws-iam": "AWS RDS IAM",
"external-secret-vault": "ボールト (KV v2)",
"external-secret-aws": "AWS シークレットマネージャー",
"external-secret-gcp": "GCP シークレット マネージャー"
@@ -3435,4 +3444,4 @@
"drop-partition-with-subpartitions-confirm": "すべてのサブパーティションが同時に削除されます。"
}
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index d9797f271b..5c10212742 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -1334,6 +1334,14 @@
"template": "Tạo một tài khoản dịch vụ có tên {user}, sau đó thêm tài khoản đó vào Google Cloud SQL của bạn với tư cách là người dùng IAM {user}{'@'}project-id.iam. Cấp cho người dùng những đặc quyền cần thiết."
}
},
+ "aws-rds": {
+ "mysql": {
+ "template": "Dưới đây là ví dụ về cách tạo người dùng {user}{'@'}% và cấp cho người dùng những đặc quyền cần thiết."
+ },
+ "postgresql": {
+ "template": "Dưới đây là ví dụ để tạo người dùng '{user}' và cấp cho người dùng những đặc quyền cần thiết."
+ }
+ },
"create-user-example": {
"snowflake": {
"template": "Dưới đây là ví dụ để tạo người dùng '{user}' bằng mật khẩu {password} cho {warehouse} và cấp cho người dùng các đặc quyền cần thiết."
@@ -1362,6 +1370,7 @@
"password": "Mật khẩu",
"password-tip": "Bạn cũng có thể chỉ định điểm cuối quản lý bí mật bên ngoài",
"google-iam": "Google CloudSQL IAM",
+ "aws-iam": "AWS RDS IAM",
"external-secret-vault": "Vault (KV v2)",
"external-secret-aws": "AWS Secrets Manager",
"external-secret-gcp": "GCP Secret Manager"
@@ -3435,4 +3444,4 @@
"drop-partition-with-subpartitions-confirm": "Cũng sẽ bỏ tất cả các phân vùng của nó."
}
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 2e8903351f..e2dab8faf8 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1334,6 +1334,14 @@
"template": "创建一个名为 {user} 的服务帐户,然后将其作为 IAM 用户 {user}{'@'}project-id.iam 添加到您的 Google Cloud SQL 中。授予用户所需的权限。"
}
},
+ "aws-rds": {
+ "mysql": {
+ "template": "下面是创建用户 {user}{'@'}% 并授予该用户所需权限的示例。"
+ },
+ "postgresql": {
+ "template": "下面是创建用户“{user}”并授予该用户所需权限的示例。"
+ }
+ },
"create-user-example": {
"snowflake": {
"template": "创建用户 {user},密码 {password},warehouse 为{warehouse},并授予必要权限的例子如下。"
@@ -1362,6 +1370,7 @@
"password": "密码",
"password-tip": "您也可以指定外部的密码管理服务 endpoint",
"google-iam": "Google CloudSQL IAM",
+ "aws-iam": "AWS RDS IAM",
"external-secret-vault": "Vault (KV v2)",
"external-secret-aws": "AWS Secrets Manager",
"external-secret-gcp": "GCP Secret Manager"
@@ -3435,4 +3444,4 @@
"drop-partition-with-subpartitions-confirm": "将会同时删除其所有子分区。"
}
}
-}
+}
\ No newline at end of file
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 e5804c3efe..824c1150fd 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -4,6 +4,98 @@ 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 = 0,
+ /**
+ * 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 = 998,
+ EDITION_PROTO3 = 999,
+ /**
+ * 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 = 1000,
+ /**
+ * 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 = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ UNRECOGNIZED = -1,
+}
+
+export function editionFromJSON(object: any): Edition {
+ switch (object) {
+ case 0:
+ case "EDITION_UNKNOWN":
+ return Edition.EDITION_UNKNOWN;
+ 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 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 -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_PROTO2:
+ return "EDITION_PROTO2";
+ case Edition.EDITION_PROTO3:
+ return "EDITION_PROTO3";
+ case Edition.EDITION_2023:
+ return "EDITION_2023";
+ 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.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
/**
* The protocol compiler can output a FileDescriptorSet containing the .proto
* files it parses.
@@ -51,8 +143,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 +188,84 @@ 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 = 0,
+ UNVERIFIED = 1,
+ UNRECOGNIZED = -1,
+}
+
+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 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. */
@@ -193,9 +363,10 @@ export enum FieldDescriptorProto_Type {
TYPE_STRING = 9,
/**
* 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 = 10,
/** TYPE_MESSAGE - Length-delimited aggregate. */
@@ -323,8 +494,13 @@ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Typ
export enum FieldDescriptorProto_Label {
/** LABEL_OPTIONAL - 0 is reserved for errors */
LABEL_OPTIONAL = 1,
- LABEL_REQUIRED = 2,
LABEL_REPEATED = 3,
+ /**
+ * 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 = 2,
UNRECOGNIZED = -1,
}
@@ -333,12 +509,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:
@@ -350,10 +526,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";
@@ -547,6 +723,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.
@@ -665,12 +845,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[];
}
@@ -679,8 +863,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;
/**
@@ -688,7 +874,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;
/**
@@ -759,7 +947,12 @@ 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;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -767,6 +960,14 @@ export interface FieldOptions {
export enum FieldOptions_CType {
/** STRING - Default mode. */
STRING = 0,
+ /**
+ * 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 = 1,
STRING_PIECE = 2,
UNRECOGNIZED = -1,
@@ -977,7 +1178,17 @@ export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionT
}
}
+export interface FieldOptions_EditionDefault {
+ edition: Edition;
+ /** Textproto value. */
+ value: string;
+}
+
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[];
}
@@ -1000,12 +1211,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[];
}
@@ -1018,11 +1233,25 @@ 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;
/** 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
@@ -1043,6 +1272,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[];
}
@@ -1127,6 +1360,294 @@ export interface UninterpretedOption_NamePart {
isExtension: boolean;
}
+/**
+ * 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 FeatureSet {
+ fieldPresence: FeatureSet_FieldPresence;
+ enumType: FeatureSet_EnumType;
+ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding;
+ utf8Validation: FeatureSet_Utf8Validation;
+ messageEncoding: FeatureSet_MessageEncoding;
+ jsonFormat: FeatureSet_JsonFormat;
+}
+
+export enum FeatureSet_FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3,
+ UNRECOGNIZED = -1,
+}
+
+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 enum FeatureSet_EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2,
+ UNRECOGNIZED = -1,
+}
+
+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 enum FeatureSet_RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2,
+ UNRECOGNIZED = -1,
+}
+
+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 enum FeatureSet_Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ NONE = 1,
+ VERIFY = 2,
+ UNRECOGNIZED = -1,
+}
+
+export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation {
+ switch (object) {
+ case 0:
+ case "UTF8_VALIDATION_UNKNOWN":
+ return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
+ case 1:
+ case "NONE":
+ return FeatureSet_Utf8Validation.NONE;
+ case 2:
+ case "VERIFY":
+ return FeatureSet_Utf8Validation.VERIFY;
+ case -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.NONE:
+ return "NONE";
+ case FeatureSet_Utf8Validation.VERIFY:
+ return "VERIFY";
+ case FeatureSet_Utf8Validation.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export enum FeatureSet_MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2,
+ UNRECOGNIZED = -1,
+}
+
+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 enum FeatureSet_JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2,
+ UNRECOGNIZED = -1,
+}
+
+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";
+ }
+}
+
+/**
+ * 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;
+ features: FeatureSet | undefined;
+}
+
/**
* Encapsulates information about the original source file from which a
* FileDescriptorProto was generated.
@@ -1423,7 +1944,7 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {
options: undefined,
sourceCodeInfo: undefined,
syntax: "",
- edition: "",
+ edition: 0,
};
}
@@ -1469,8 +1990,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 !== 0) {
+ writer.uint32(112).int32(message.edition);
}
return writer;
},
@@ -1586,12 +2107,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 = reader.int32() as any;
continue;
}
if ((tag & 7) === 4 || tag === 0) {
@@ -1630,7 +2151,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) : 0,
};
},
@@ -1672,8 +2193,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
obj.syntax = message.syntax;
}
- if (message.edition !== "") {
- obj.edition = message.edition;
+ if (message.edition !== 0) {
+ obj.edition = editionToJSON(message.edition);
}
return obj;
},
@@ -1699,7 +2220,7 @@ export const FileDescriptorProto = {
? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
: undefined;
message.syntax = object.syntax ?? "";
- message.edition = object.edition ?? "";
+ message.edition = object.edition ?? 0;
return message;
},
};
@@ -2093,7 +2614,7 @@ export const DescriptorProto_ReservedRange = {
};
function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
- return { uninterpretedOption: [] };
+ return { uninterpretedOption: [], declaration: [], features: undefined, verification: 0 };
}
export const ExtensionRangeOptions = {
@@ -2101,6 +2622,15 @@ export const ExtensionRangeOptions = {
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 !== 0) {
+ writer.uint32(24).int32(message.verification);
+ }
return writer;
},
@@ -2118,6 +2648,27 @@ export const ExtensionRangeOptions = {
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 = reader.int32() as any;
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -2132,6 +2683,13 @@ export const ExtensionRangeOptions = {
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)
+ : 0,
};
},
@@ -2140,6 +2698,15 @@ export const ExtensionRangeOptions = {
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 !== 0) {
+ obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);
+ }
return obj;
},
@@ -2149,20 +2716,144 @@ export const ExtensionRangeOptions = {
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 ?? 0;
return message;
},
};
-function createBaseFieldDescriptorProto(): FieldDescriptorProto {
- return {
- name: "",
- number: 0,
- label: 1,
- type: 1,
- typeName: "",
- extendee: "",
- defaultValue: "",
- oneofIndex: 0,
+function createBaseExtensionRangeOptions_Declaration(): ExtensionRangeOptions_Declaration {
+ return { number: 0, fullName: "", type: "", reserved: false, repeated: false };
+}
+
+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_Declaration {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseExtensionRangeOptions_Declaration();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ 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) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): ExtensionRangeOptions_Declaration {
+ return {
+ 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_Declaration): unknown {
+ const obj: any = {};
+ 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_Declaration>): ExtensionRangeOptions_Declaration {
+ return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});
+ },
+ 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;
+ },
+};
+
+function createBaseFieldDescriptorProto(): FieldDescriptorProto {
+ return {
+ name: "",
+ number: 0,
+ label: 1,
+ type: 1,
+ typeName: "",
+ extendee: "",
+ defaultValue: "",
+ oneofIndex: 0,
jsonName: "",
options: undefined,
proto3Optional: false,
@@ -3003,6 +3694,7 @@ function createBaseFileOptions(): FileOptions {
phpNamespace: "",
phpMetadataNamespace: "",
rubyPackage: "",
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3069,6 +3761,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();
}
@@ -3222,6 +3917,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;
@@ -3262,6 +3964,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))
: [],
@@ -3330,6 +4033,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));
}
@@ -3361,6 +4067,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;
},
@@ -3373,6 +4082,7 @@ function createBaseMessageOptions(): MessageOptions {
deprecated: false,
mapEntry: false,
deprecatedLegacyJsonFieldConflicts: false,
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3394,6 +4104,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();
}
@@ -3442,6 +4155,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;
@@ -3471,6 +4191,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))
: [],
@@ -3494,6 +4215,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));
}
@@ -3510,6 +4234,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;
},
@@ -3526,7 +4253,9 @@ function createBaseFieldOptions(): FieldOptions {
weak: false,
debugRedact: false,
retention: 0,
- target: 0,
+ targets: [],
+ editionDefaults: [],
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3560,8 +4289,16 @@ export const FieldOptions = {
if (message.retention !== 0) {
writer.uint32(136).int32(message.retention);
}
- if (message.target !== 0) {
- writer.uint32(144).int32(message.target);
+ writer.uint32(154).fork();
+ for (const v of message.targets) {
+ writer.int32(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();
}
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
@@ -3639,12 +4376,36 @@ export const FieldOptions = {
message.retention = reader.int32() as any;
continue;
- case 18:
- if (tag !== 144) {
+ case 19:
+ if (tag === 152) {
+ message.targets.push(reader.int32() as any);
+
+ continue;
+ }
+
+ if (tag === 154) {
+ const end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2) {
+ message.targets.push(reader.int32() as any);
+ }
+
+ continue;
+ }
+
+ break;
+ case 20:
+ if (tag !== 162) {
break;
}
- message.target = reader.int32() as any;
+ 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 999:
if (tag !== 7994) {
@@ -3673,7 +4434,13 @@ export const FieldOptions = {
weak: isSet(object.weak) ? globalThis.Boolean(object.weak) : false,
debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,
- target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,
+ 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,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3709,8 +4476,14 @@ export const FieldOptions = {
if (message.retention !== 0) {
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
}
- if (message.target !== 0) {
- 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.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
@@ -3732,18 +4505,99 @@ export const FieldOptions = {
message.weak = object.weak ?? false;
message.debugRedact = object.debugRedact ?? false;
message.retention = object.retention ?? 0;
- message.target = object.target ?? 0;
+ 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.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
+function createBaseFieldOptions_EditionDefault(): FieldOptions_EditionDefault {
+ return { edition: 0, value: "" };
+}
+
+export const FieldOptions_EditionDefault = {
+ encode(message: FieldOptions_EditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.edition !== 0) {
+ writer.uint32(24).int32(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 = reader.int32() as any;
+ 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) : 0,
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
+ };
+ },
+
+ toJSON(message: FieldOptions_EditionDefault): unknown {
+ const obj: any = {};
+ if (message.edition !== 0) {
+ 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 ?? 0;
+ message.value = object.value ?? "";
+ 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();
}
@@ -3757,6 +4611,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;
@@ -3775,6 +4636,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))
: [],
@@ -3783,6 +4645,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));
}
@@ -3794,13 +4659,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 = {
@@ -3814,6 +4688,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();
}
@@ -3848,6 +4725,13 @@ export const EnumOptions = {
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3871,6 +4755,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))
: [],
@@ -3888,6 +4773,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));
}
@@ -3902,13 +4790,16 @@ 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, uninterpretedOption: [] };
}
export const EnumValueOptions = {
@@ -3916,6 +4807,12 @@ 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);
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3936,6 +4833,20 @@ 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 999:
if (tag !== 7994) {
break;
@@ -3955,6 +4866,8 @@ 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,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3966,6 +4879,12 @@ 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.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3978,17 +4897,24 @@ 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.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);
}
@@ -4005,6 +4931,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;
@@ -4030,6 +4963,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))
@@ -4039,6 +4973,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;
}
@@ -4053,6 +4990,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;
@@ -4060,7 +5000,7 @@ export const ServiceOptions = {
};
function createBaseMethodOptions(): MethodOptions {
- return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };
+ return { deprecated: false, idempotencyLevel: 0, features: undefined, uninterpretedOption: [] };
}
export const MethodOptions = {
@@ -4071,6 +5011,9 @@ export const MethodOptions = {
if (message.idempotencyLevel !== 0) {
writer.uint32(272).int32(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();
}
@@ -4098,6 +5041,13 @@ export const MethodOptions = {
message.idempotencyLevel = reader.int32() as any;
continue;
+ case 35:
+ if (tag !== 282) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -4120,6 +5070,7 @@ export const MethodOptions = {
idempotencyLevel: isSet(object.idempotencyLevel)
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
: 0,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4134,6 +5085,9 @@ export const MethodOptions = {
if (message.idempotencyLevel !== 0) {
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));
}
@@ -4147,6 +5101,9 @@ export const MethodOptions = {
const message = createBaseMethodOptions();
message.deprecated = object.deprecated ?? false;
message.idempotencyLevel = object.idempotencyLevel ?? 0;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -4389,6 +5346,318 @@ export const UninterpretedOption_NamePart = {
},
};
+function createBaseFeatureSet(): FeatureSet {
+ return {
+ fieldPresence: 0,
+ enumType: 0,
+ repeatedFieldEncoding: 0,
+ utf8Validation: 0,
+ messageEncoding: 0,
+ jsonFormat: 0,
+ };
+}
+
+export const FeatureSet = {
+ encode(message: FeatureSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.fieldPresence !== 0) {
+ writer.uint32(8).int32(message.fieldPresence);
+ }
+ if (message.enumType !== 0) {
+ writer.uint32(16).int32(message.enumType);
+ }
+ if (message.repeatedFieldEncoding !== 0) {
+ writer.uint32(24).int32(message.repeatedFieldEncoding);
+ }
+ if (message.utf8Validation !== 0) {
+ writer.uint32(32).int32(message.utf8Validation);
+ }
+ if (message.messageEncoding !== 0) {
+ writer.uint32(40).int32(message.messageEncoding);
+ }
+ if (message.jsonFormat !== 0) {
+ writer.uint32(48).int32(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 = reader.int32() as any;
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.enumType = reader.int32() as any;
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.repeatedFieldEncoding = reader.int32() as any;
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.utf8Validation = reader.int32() as any;
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.messageEncoding = reader.int32() as any;
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.jsonFormat = reader.int32() as any;
+ 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) : 0,
+ enumType: isSet(object.enumType) ? featureSet_EnumTypeFromJSON(object.enumType) : 0,
+ repeatedFieldEncoding: isSet(object.repeatedFieldEncoding)
+ ? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)
+ : 0,
+ utf8Validation: isSet(object.utf8Validation) ? featureSet_Utf8ValidationFromJSON(object.utf8Validation) : 0,
+ messageEncoding: isSet(object.messageEncoding) ? featureSet_MessageEncodingFromJSON(object.messageEncoding) : 0,
+ jsonFormat: isSet(object.jsonFormat) ? featureSet_JsonFormatFromJSON(object.jsonFormat) : 0,
+ };
+ },
+
+ toJSON(message: FeatureSet): unknown {
+ const obj: any = {};
+ if (message.fieldPresence !== 0) {
+ obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence);
+ }
+ if (message.enumType !== 0) {
+ obj.enumType = featureSet_EnumTypeToJSON(message.enumType);
+ }
+ if (message.repeatedFieldEncoding !== 0) {
+ obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding);
+ }
+ if (message.utf8Validation !== 0) {
+ obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation);
+ }
+ if (message.messageEncoding !== 0) {
+ obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding);
+ }
+ if (message.jsonFormat !== 0) {
+ 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 ?? 0;
+ message.enumType = object.enumType ?? 0;
+ message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 0;
+ message.utf8Validation = object.utf8Validation ?? 0;
+ message.messageEncoding = object.messageEncoding ?? 0;
+ message.jsonFormat = object.jsonFormat ?? 0;
+ return message;
+ },
+};
+
+function createBaseFeatureSetDefaults(): FeatureSetDefaults {
+ return { defaults: [], minimumEdition: 0, maximumEdition: 0 };
+}
+
+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 !== 0) {
+ writer.uint32(32).int32(message.minimumEdition);
+ }
+ if (message.maximumEdition !== 0) {
+ writer.uint32(40).int32(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 = reader.int32() as any;
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.maximumEdition = reader.int32() as any;
+ 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) : 0,
+ maximumEdition: isSet(object.maximumEdition) ? editionFromJSON(object.maximumEdition) : 0,
+ };
+ },
+
+ toJSON(message: FeatureSetDefaults): unknown {
+ const obj: any = {};
+ if (message.defaults?.length) {
+ obj.defaults = message.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e));
+ }
+ if (message.minimumEdition !== 0) {
+ obj.minimumEdition = editionToJSON(message.minimumEdition);
+ }
+ if (message.maximumEdition !== 0) {
+ 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 ?? 0;
+ message.maximumEdition = object.maximumEdition ?? 0;
+ return message;
+ },
+};
+
+function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {
+ return { edition: 0, features: undefined };
+}
+
+export const FeatureSetDefaults_FeatureSetEditionDefault = {
+ encode(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.edition !== 0) {
+ writer.uint32(24).int32(message.edition);
+ }
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(18).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 = reader.int32() as any;
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.features = 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) : 0,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ };
+ },
+
+ toJSON(message: FeatureSetDefaults_FeatureSetEditionDefault): unknown {
+ const obj: any = {};
+ if (message.edition !== 0) {
+ obj.edition = editionToJSON(message.edition);
+ }
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ 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 ?? 0;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : 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 dbdf7a289a..b87dbf5bac 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 91cdc1ff6b..14cb9bce72 100644
--- a/frontend/src/types/proto/store/data_source.ts
+++ b/frontend/src/types/proto/store/data_source.ts
@@ -196,6 +196,7 @@ export enum DataSourceOptions_AuthenticationType {
AUTHENTICATION_UNSPECIFIED = 0,
PASSWORD = 1,
GOOGLE_CLOUD_SQL_IAM = 2,
+ AWS_RDS_IAM = 3,
UNRECOGNIZED = -1,
}
@@ -210,6 +211,9 @@ export function dataSourceOptions_AuthenticationTypeFromJSON(object: any): DataS
case 2:
case "GOOGLE_CLOUD_SQL_IAM":
return DataSourceOptions_AuthenticationType.GOOGLE_CLOUD_SQL_IAM;
+ case 3:
+ case "AWS_RDS_IAM":
+ return DataSourceOptions_AuthenticationType.AWS_RDS_IAM;
case -1:
case "UNRECOGNIZED":
default:
@@ -225,6 +229,8 @@ export function dataSourceOptions_AuthenticationTypeToJSON(object: DataSourceOpt
return "PASSWORD";
case DataSourceOptions_AuthenticationType.GOOGLE_CLOUD_SQL_IAM:
return "GOOGLE_CLOUD_SQL_IAM";
+ case DataSourceOptions_AuthenticationType.AWS_RDS_IAM:
+ return "AWS_RDS_IAM";
case DataSourceOptions_AuthenticationType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.ts
index 8d13808f06..a19951234a 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -479,6 +479,7 @@ export enum DataSource_AuthenticationType {
AUTHENTICATION_UNSPECIFIED = 0,
PASSWORD = 1,
GOOGLE_CLOUD_SQL_IAM = 2,
+ AWS_RDS_IAM = 3,
UNRECOGNIZED = -1,
}
@@ -493,6 +494,9 @@ export function dataSource_AuthenticationTypeFromJSON(object: any): DataSource_A
case 2:
case "GOOGLE_CLOUD_SQL_IAM":
return DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM;
+ case 3:
+ case "AWS_RDS_IAM":
+ return DataSource_AuthenticationType.AWS_RDS_IAM;
case -1:
case "UNRECOGNIZED":
default:
@@ -508,6 +512,8 @@ export function dataSource_AuthenticationTypeToJSON(object: DataSource_Authentic
return "PASSWORD";
case DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM:
return "GOOGLE_CLOUD_SQL_IAM";
+ case DataSource_AuthenticationType.AWS_RDS_IAM:
+ return "AWS_RDS_IAM";
case DataSource_AuthenticationType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
diff --git a/go.mod b/go.mod
index cbe5b13aed..cc5c1f4b1f 100644
--- a/go.mod
+++ b/go.mod
@@ -13,6 +13,7 @@ require (
github.com/aws/aws-sdk-go-v2 v1.26.1
github.com/aws/aws-sdk-go-v2/config v1.27.11
github.com/aws/aws-sdk-go-v2/credentials v1.17.11
+ github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.4.5
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15
github.com/aws/aws-sdk-go-v2/service/licensemanager v1.25.5
github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1
diff --git a/go.sum b/go.sum
index 2fa0478ee4..6465a472b8 100644
--- a/go.sum
+++ b/go.sum
@@ -103,6 +103,8 @@ github.com/aws/aws-sdk-go-v2/credentials v1.17.11 h1:YuIB1dJNf1Re822rriUOTxopaHH
github.com/aws/aws-sdk-go-v2/credentials v1.17.11/go.mod h1:AQtFPsDH9bI2O+71anW6EKL+NcD7LG3dpKGMV4SShgo=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 h1:FVJ0r5XTHSmIHJV6KuDmdYhEpvlHpiSd38RQWhut5J4=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1/go.mod h1:zusuAeqezXzAB24LGuzuekqMAEgWkVYukBec3kr3jUg=
+github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.4.5 h1:Jm5og3wZoeKE1fkRkp/zT53vsOAZl3cR5FJ9JRNuIgQ=
+github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.4.5/go.mod h1:RI6PT6IXi7wmGtuRDfc8gmqMsYzTyz+py0cvLw0itck=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15 h1:7Zwtt/lP3KNRkeZre7soMELMGNoBrutx8nobg1jKWmo=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15/go.mod h1:436h2adoHb57yd+8W+gYPrrA9U/R/SuAuOO42Ushzhw=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 h1:aw39xVGeRWlWx9EzGVnhOR4yOjQDHPQ6o6NmBlscyQg=
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 45a3d158cb..c167e9643d 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -9130,6 +9130,7 @@ components:
- AUTHENTICATION_UNSPECIFIED
- PASSWORD
- GOOGLE_CLOUD_SQL_IAM
+ - AWS_RDS_IAM
type: string
format: enum
saslConfig:
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 89a8acc2a8..a578efbb09 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -1613,6 +1613,7 @@ Used internally for obfuscating the page token.
| AUTHENTICATION_UNSPECIFIED | 0 | |
| PASSWORD | 1 | |
| GOOGLE_CLOUD_SQL_IAM | 2 | |
+| AWS_RDS_IAM | 3 | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 74fb3cd8cb..0768ec23c3 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -4510,6 +4510,12 @@ Used for authentication when connecting to the data source. </p></td>
<td><p></p></td>
</tr>
+ <tr>
+ <td>AWS_RDS_IAM</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 504057bf68..959343253b 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -1953,6 +1953,7 @@ The instance&#39;s `name` field is used to identify the instance to update. Form
| AUTHENTICATION_UNSPECIFIED | 0 | |
| PASSWORD | 1 | |
| GOOGLE_CLOUD_SQL_IAM | 2 | |
+| AWS_RDS_IAM | 3 | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 8125a68d15..99194bb9a6 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -5984,6 +5984,12 @@ Format: instances/{instance} </p></td>
<td><p></p></td>
</tr>
+ <tr>
+ <td>AWS_RDS_IAM</td>
+ <td>3</td>
+ <td><p></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 b044281be3..db8ea492cf 100644
--- a/proto/generated-go/store/data_source.pb.go
+++ b/proto/generated-go/store/data_source.pb.go
@@ -181,6 +181,7 @@ const (
DataSourceOptions_AUTHENTICATION_UNSPECIFIED DataSourceOptions_AuthenticationType = 0
DataSourceOptions_PASSWORD DataSourceOptions_AuthenticationType = 1
DataSourceOptions_GOOGLE_CLOUD_SQL_IAM DataSourceOptions_AuthenticationType = 2
+ DataSourceOptions_AWS_RDS_IAM DataSourceOptions_AuthenticationType = 3
)
// Enum value maps for DataSourceOptions_AuthenticationType.
@@ -189,11 +190,13 @@ var (
0: "AUTHENTICATION_UNSPECIFIED",
1: "PASSWORD",
2: "GOOGLE_CLOUD_SQL_IAM",
+ 3: "AWS_RDS_IAM",
}
DataSourceOptions_AuthenticationType_value = map[string]int32{
"AUTHENTICATION_UNSPECIFIED": 0,
"PASSWORD": 1,
"GOOGLE_CLOUD_SQL_IAM": 2,
+ "AWS_RDS_IAM": 3,
}
)
@@ -867,7 +870,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, 0x81, 0x06,
+ 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x92, 0x06,
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,
@@ -910,42 +913,43 @@ var file_store_data_source_proto_rawDesc = []byte{
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79,
0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x41, 0x53,
0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x73, 0x61, 0x73, 0x6c, 0x43, 0x6f, 0x6e,
- 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,
+ 0x66, 0x69, 0x67, 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, 0x22, 0xa0, 0x01, 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, 0x12, 0x44, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
- 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53, 0x41,
- 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x69,
- 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68, 0x61,
- 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xc5, 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, 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, 0x06, 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, 0x22, 0x49, 0x0a, 0x0f,
- 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
- 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70,
- 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
- 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 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,
+ 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x57, 0x53, 0x5f, 0x52, 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d,
+ 0x10, 0x03, 0x22, 0xa0, 0x01, 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, 0x12, 0x44, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53,
+ 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x6c, 0x61,
+ 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68,
+ 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xc5, 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, 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, 0x06, 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, 0x22, 0x49, 0x0a,
+ 0x0f, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
+ 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08,
+ 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
+ 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 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/instance_service.pb.go b/proto/generated-go/v1/instance_service.pb.go
index 06549285c6..ae485f28b1 100644
--- a/proto/generated-go/v1/instance_service.pb.go
+++ b/proto/generated-go/v1/instance_service.pb.go
@@ -234,6 +234,7 @@ const (
DataSource_AUTHENTICATION_UNSPECIFIED DataSource_AuthenticationType = 0
DataSource_PASSWORD DataSource_AuthenticationType = 1
DataSource_GOOGLE_CLOUD_SQL_IAM DataSource_AuthenticationType = 2
+ DataSource_AWS_RDS_IAM DataSource_AuthenticationType = 3
)
// Enum value maps for DataSource_AuthenticationType.
@@ -242,11 +243,13 @@ var (
0: "AUTHENTICATION_UNSPECIFIED",
1: "PASSWORD",
2: "GOOGLE_CLOUD_SQL_IAM",
+ 3: "AWS_RDS_IAM",
}
DataSource_AuthenticationType_value = map[string]int32{
"AUTHENTICATION_UNSPECIFIED": 0,
"PASSWORD": 1,
"GOOGLE_CLOUD_SQL_IAM": 2,
+ "AWS_RDS_IAM": 3,
}
)
@@ -2387,7 +2390,7 @@ var file_v1_instance_service_proto_rawDesc = []byte{
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, 0xd6, 0x07, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
+ 0x6f, 0x6e, 0x22, 0xe7, 0x07, 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, 0x31, 0x2e, 0x44, 0x61,
@@ -2442,174 +2445,175 @@ var file_v1_instance_service_proto_rawDesc = []byte{
0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x73, 0x61, 0x73, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69,
- 0x67, 0x52, 0x0a, 0x73, 0x61, 0x73, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a,
+ 0x67, 0x52, 0x0a, 0x73, 0x61, 0x73, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 0x22, 0xdd, 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, 0x2a, 0x0a, 0x0e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x76, 0x65,
- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 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, 0x9a, 0x01, 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, 0x12, 0x41, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x69,
- 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,
- 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b,
- 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d,
- 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xc5, 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, 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, 0x06, 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,
- 0x22, 0x49, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e,
- 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,
- 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 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, 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,
+ 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, 0xdd, 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, 0x2a, 0x0a, 0x0e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x76,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
+ 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, 0x9a, 0x01, 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, 0x12, 0x41, 0x0a, 0x0c, 0x70, 0x6c, 0x61,
+ 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,
+ 0x61, 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,
+ 0x0b, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09,
+ 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xc5, 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, 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, 0x06, 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, 0x22, 0x49, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f,
+ 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
+ 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 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, 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, 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,
+ 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, 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, 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,
- 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f,
+ 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, 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,
+ 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,
}
var (
diff --git a/proto/store/data_source.proto b/proto/store/data_source.proto
index 9cb46ebaff..7a903024da 100644
--- a/proto/store/data_source.proto
+++ b/proto/store/data_source.proto
@@ -88,6 +88,7 @@ message DataSourceOptions {
AUTHENTICATION_UNSPECIFIED = 0;
PASSWORD = 1;
GOOGLE_CLOUD_SQL_IAM = 2;
+ AWS_RDS_IAM = 3;
}
AuthenticationType authentication_type = 12;
diff --git a/proto/v1/instance_service.proto b/proto/v1/instance_service.proto
index 29124892e1..badbc6e004 100644
--- a/proto/v1/instance_service.proto
+++ b/proto/v1/instance_service.proto
@@ -399,6 +399,7 @@ message DataSource {
AUTHENTICATION_UNSPECIFIED = 0;
PASSWORD = 1;
GOOGLE_CLOUD_SQL_IAM = 2;
+ AWS_RDS_IAM = 3;
}
AuthenticationType authentication_type = 22;