diff --git a/web/vtadmin/src/components/dataTable/SortedDataTable.test.tsx b/web/vtadmin/src/components/dataTable/SortedDataTable.test.tsx
new file mode 100755
index 00000000000..554a7e2040d
--- /dev/null
+++ b/web/vtadmin/src/components/dataTable/SortedDataTable.test.tsx
@@ -0,0 +1,60 @@
+/**
+ * Copyright 2025 The Vitess Authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, expect, it } from 'vitest';
+import { JSX } from 'react/jsx-runtime';
+import { SortedDataTable } from './SortedDataTable';
+import { fireEvent, render, screen } from '@testing-library/react';
+import { MemoryRouter } from 'react-router-dom';
+
+describe('SortedDataTable', () => {
+ it('SortedDataTable renders successfully', () => {
+ const columnProps = [
+ { display: 'col1', accessor: 'col1' },
+ { display:
+ );
+ });
+ }}
+ />
+
+ );
+ expect(screen.getAllByRole('table').length).toBe(1);
+ expect(screen.getAllByRole('row').length).toBe(3);
+ expect(screen.getAllByRole('columnheader').length).toBe(2);
+
+ // Check onClick on column
+ const column1 = screen.getByText('col1');
+ fireEvent.click(column1);
+ // dependency on vite-jest to check useState sortColumn if col1 gets set.
+ });
+});
diff --git a/web/vtadmin/src/components/dataTable/SortedDataTable.tsx b/web/vtadmin/src/components/dataTable/SortedDataTable.tsx
new file mode 100644
index 00000000000..a8766aa9ee3
--- /dev/null
+++ b/web/vtadmin/src/components/dataTable/SortedDataTable.tsx
@@ -0,0 +1,170 @@
+/**
+ * Copyright 2025 The Vitess Authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import * as React from 'react';
+import { useLocation } from 'react-router-dom';
+
+import { useURLPagination } from '../../hooks/useURLPagination';
+import { useURLQuery } from '../../hooks/useURLQuery';
+import { stringify } from '../../util/queryString';
+import { PaginationNav } from './PaginationNav';
+import { useCallback, useMemo, useState } from 'react';
+import { Icon, Icons } from '../Icon';
+
+export interface ColumnProps {
+ // Coulmn display name string | JSX.Element
+ display: string | JSX.Element;
+ // Column data accessor
+ accessor: string;
+}
+
+interface Props {
+ // When passing a JSX.Element, note that the column element
+ // will be rendered *inside* a
+ );
+};
diff --git a/web/vtadmin/src/components/routes/Schemas.tsx b/web/vtadmin/src/components/routes/Schemas.tsx
index fff3bb8b2db..5da3870efbc 100644
--- a/web/vtadmin/src/components/routes/Schemas.tsx
+++ b/web/vtadmin/src/components/routes/Schemas.tsx
@@ -25,7 +25,7 @@ import { formatBytes } from '../../util/formatBytes';
import { getTableDefinitions } from '../../util/tableDefinitions';
import { DataCell } from '../dataTable/DataCell';
import { DataFilter } from '../dataTable/DataFilter';
-import { DataTable } from '../dataTable/DataTable';
+import { ColumnProps, SortedDataTable } from '../dataTable/SortedDataTable';
import { ContentContainer } from '../layout/ContentContainer';
import { WorkspaceHeader } from '../layout/WorkspaceHeader';
import { WorkspaceTitle } from '../layout/WorkspaceTitle';
@@ -33,31 +33,43 @@ import { KeyspaceLink } from '../links/KeyspaceLink';
import { QueryLoadingPlaceholder } from '../placeholders/QueryLoadingPlaceholder';
import { HelpTooltip } from '../tooltip/HelpTooltip';
-const TABLE_COLUMNS = [
- 'Keyspace',
- 'Table',
-
- Approx. Size{' '}
-
- Size is an approximate value derived from INFORMATION_SCHEMA.
-
- }
- />
-
,
-
- Approx. Rows{' '}
-
- Row count is an approximate value derived from INFORMATION_SCHEMA
- . Actual values may vary by as much as 40% to 50%.
-
- }
- />
-
+ Approx. Rows{' '}
+
+ Row count is an approximate value derived from{' '}
+ INFORMATION_SCHEMA. Actual values may vary by as much as
+ 40% to 50%.
+
+ }
+ />
+
- Validates that the schema on the primary tablet for shard 0 matches the schema on all of the
- other tablets in the keyspace {keyspace}.
+ Validates that the schema on the primary tablet for the first shard matches the schema on all of
+ the other tablets in the keyspace {keyspace}.
}
successBody={
diff --git a/web/vtadmin/src/hooks/api.ts b/web/vtadmin/src/hooks/api.ts
index c2e1209f128..27642cdfad0 100644
--- a/web/vtadmin/src/hooks/api.ts
+++ b/web/vtadmin/src/hooks/api.ts
@@ -40,6 +40,7 @@ import {
FetchVSchemaParams,
fetchVtctlds,
fetchVTExplain,
+ fetchVExplain,
fetchWorkflow,
fetchWorkflowStatus,
fetchWorkflows,
@@ -460,6 +461,13 @@ export const useVTExplain = (
return useQuery(['vtexplain', params], () => fetchVTExplain(params), { ...options });
};
+export const useVExplain = (
+ params: Parameters[0],
+ options?: UseQueryOptions | undefined
+) => {
+ return useQuery(['vexplain', params], () => fetchVExplain(params), { ...options });
+};
+
/**
* useWorkflow is a query hook that fetches a single workflow for the given parameters.
*/
diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts
index adb02034c92..0a946386995 100644
--- a/web/vtadmin/src/proto/vtadmin.d.ts
+++ b/web/vtadmin/src/proto/vtadmin.d.ts
@@ -1003,6 +1003,20 @@ export namespace vtadmin {
*/
public vTExplain(request: vtadmin.IVTExplainRequest): Promise;
+ /**
+ * Calls VExplain.
+ * @param request VExplainRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and VExplainResponse
+ */
+ public vExplain(request: vtadmin.IVExplainRequest, callback: vtadmin.VTAdmin.VExplainCallback): void;
+
+ /**
+ * Calls VExplain.
+ * @param request VExplainRequest message or plain object
+ * @returns Promise
+ */
+ public vExplain(request: vtadmin.IVExplainRequest): Promise;
+
/**
* Calls WorkflowDelete.
* @param request WorkflowDeleteRequest message or plain object
@@ -1524,6 +1538,13 @@ export namespace vtadmin {
*/
type VTExplainCallback = (error: (Error|null), response?: vtadmin.VTExplainResponse) => void;
+ /**
+ * Callback as used by {@link vtadmin.VTAdmin#vExplain}.
+ * @param error Error, if any
+ * @param [response] VExplainResponse
+ */
+ type VExplainCallback = (error: (Error|null), response?: vtadmin.VExplainResponse) => void;
+
/**
* Callback as used by {@link vtadmin.VTAdmin#workflowDelete}.
* @param error Error, if any
@@ -15381,6 +15402,212 @@ export namespace vtadmin {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+
+ /** Properties of a VExplainRequest. */
+ interface IVExplainRequest {
+
+ /** VExplainRequest cluster_id */
+ cluster_id?: (string|null);
+
+ /** VExplainRequest keyspace */
+ keyspace?: (string|null);
+
+ /** VExplainRequest sql */
+ sql?: (string|null);
+ }
+
+ /** Represents a VExplainRequest. */
+ class VExplainRequest implements IVExplainRequest {
+
+ /**
+ * Constructs a new VExplainRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtadmin.IVExplainRequest);
+
+ /** VExplainRequest cluster_id. */
+ public cluster_id: string;
+
+ /** VExplainRequest keyspace. */
+ public keyspace: string;
+
+ /** VExplainRequest sql. */
+ public sql: string;
+
+ /**
+ * Creates a new VExplainRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VExplainRequest instance
+ */
+ public static create(properties?: vtadmin.IVExplainRequest): vtadmin.VExplainRequest;
+
+ /**
+ * Encodes the specified VExplainRequest message. Does not implicitly {@link vtadmin.VExplainRequest.verify|verify} messages.
+ * @param message VExplainRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtadmin.IVExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VExplainRequest message, length delimited. Does not implicitly {@link vtadmin.VExplainRequest.verify|verify} messages.
+ * @param message VExplainRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtadmin.IVExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VExplainRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VExplainRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VExplainRequest;
+
+ /**
+ * Decodes a VExplainRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VExplainRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VExplainRequest;
+
+ /**
+ * Verifies a VExplainRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VExplainRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VExplainRequest
+ */
+ public static fromObject(object: { [k: string]: any }): vtadmin.VExplainRequest;
+
+ /**
+ * Creates a plain object from a VExplainRequest message. Also converts values to other types if specified.
+ * @param message VExplainRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtadmin.VExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VExplainRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VExplainRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VExplainResponse. */
+ interface IVExplainResponse {
+
+ /** VExplainResponse response */
+ response?: (string|null);
+ }
+
+ /** Represents a VExplainResponse. */
+ class VExplainResponse implements IVExplainResponse {
+
+ /**
+ * Constructs a new VExplainResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtadmin.IVExplainResponse);
+
+ /** VExplainResponse response. */
+ public response: string;
+
+ /**
+ * Creates a new VExplainResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VExplainResponse instance
+ */
+ public static create(properties?: vtadmin.IVExplainResponse): vtadmin.VExplainResponse;
+
+ /**
+ * Encodes the specified VExplainResponse message. Does not implicitly {@link vtadmin.VExplainResponse.verify|verify} messages.
+ * @param message VExplainResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtadmin.IVExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VExplainResponse message, length delimited. Does not implicitly {@link vtadmin.VExplainResponse.verify|verify} messages.
+ * @param message VExplainResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtadmin.IVExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VExplainResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VExplainResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VExplainResponse;
+
+ /**
+ * Decodes a VExplainResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VExplainResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VExplainResponse;
+
+ /**
+ * Verifies a VExplainResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VExplainResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VExplainResponse
+ */
+ public static fromObject(object: { [k: string]: any }): vtadmin.VExplainResponse;
+
+ /**
+ * Creates a plain object from a VExplainResponse message. Also converts values to other types if specified.
+ * @param message VExplainResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtadmin.VExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VExplainResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VExplainResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
}
/** Namespace logutil. */
@@ -31327,9 +31554,6 @@ export namespace tabletmanagerdata {
/** BackupRequest backup_engine. */
public backup_engine?: (string|null);
- /** BackupRequest _backup_engine. */
- public _backup_engine?: "backup_engine";
-
/**
* Creates a new BackupRequest instance using the specified properties.
* @param [properties] Properties to set
@@ -33948,9 +34172,6 @@ export namespace tabletmanagerdata {
/** VDiffCoreOptions auto_start. */
public auto_start?: (boolean|null);
- /** VDiffCoreOptions _auto_start. */
- public _auto_start?: "auto_start";
-
/**
* Creates a new VDiffCoreOptions instance using the specified properties.
* @param [properties] Properties to set
@@ -34138,6 +34359,109 @@ export namespace tabletmanagerdata {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ /** Properties of a VDiffTableLastPK. */
+ interface IVDiffTableLastPK {
+
+ /** VDiffTableLastPK target */
+ target?: (query.IQueryResult|null);
+
+ /** VDiffTableLastPK source */
+ source?: (query.IQueryResult|null);
+ }
+
+ /** Represents a VDiffTableLastPK. */
+ class VDiffTableLastPK implements IVDiffTableLastPK {
+
+ /**
+ * Constructs a new VDiffTableLastPK.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: tabletmanagerdata.IVDiffTableLastPK);
+
+ /** VDiffTableLastPK target. */
+ public target?: (query.IQueryResult|null);
+
+ /** VDiffTableLastPK source. */
+ public source?: (query.IQueryResult|null);
+
+ /**
+ * Creates a new VDiffTableLastPK instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VDiffTableLastPK instance
+ */
+ public static create(properties?: tabletmanagerdata.IVDiffTableLastPK): tabletmanagerdata.VDiffTableLastPK;
+
+ /**
+ * Encodes the specified VDiffTableLastPK message. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages.
+ * @param message VDiffTableLastPK message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: tabletmanagerdata.IVDiffTableLastPK, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VDiffTableLastPK message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages.
+ * @param message VDiffTableLastPK message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: tabletmanagerdata.IVDiffTableLastPK, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VDiffTableLastPK message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VDiffTableLastPK
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VDiffTableLastPK;
+
+ /**
+ * Decodes a VDiffTableLastPK message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VDiffTableLastPK
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VDiffTableLastPK;
+
+ /**
+ * Verifies a VDiffTableLastPK message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VDiffTableLastPK message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VDiffTableLastPK
+ */
+ public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffTableLastPK;
+
+ /**
+ * Creates a plain object from a VDiffTableLastPK message. Also converts values to other types if specified.
+ * @param message VDiffTableLastPK
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: tabletmanagerdata.VDiffTableLastPK, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VDiffTableLastPK to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VDiffTableLastPK
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
/** Properties of an UpdateVReplicationWorkflowRequest. */
interface IUpdateVReplicationWorkflowRequest {
@@ -34159,8 +34483,14 @@ export namespace tabletmanagerdata {
/** UpdateVReplicationWorkflowRequest state */
state?: (binlogdata.VReplicationWorkflowState|null);
+ /** UpdateVReplicationWorkflowRequest shards */
+ shards?: (string[]|null);
+
/** UpdateVReplicationWorkflowRequest config_overrides */
config_overrides?: ({ [k: string]: string }|null);
+
+ /** UpdateVReplicationWorkflowRequest message */
+ message?: (string|null);
}
/** Represents an UpdateVReplicationWorkflowRequest. */
@@ -34190,17 +34520,14 @@ export namespace tabletmanagerdata {
/** UpdateVReplicationWorkflowRequest state. */
public state?: (binlogdata.VReplicationWorkflowState|null);
+ /** UpdateVReplicationWorkflowRequest shards. */
+ public shards: string[];
+
/** UpdateVReplicationWorkflowRequest config_overrides. */
public config_overrides: { [k: string]: string };
- /** UpdateVReplicationWorkflowRequest _tablet_selection_preference. */
- public _tablet_selection_preference?: "tablet_selection_preference";
-
- /** UpdateVReplicationWorkflowRequest _on_ddl. */
- public _on_ddl?: "on_ddl";
-
- /** UpdateVReplicationWorkflowRequest _state. */
- public _state?: "state";
+ /** UpdateVReplicationWorkflowRequest message. */
+ public message?: (string|null);
/**
* Creates a new UpdateVReplicationWorkflowRequest instance using the specified properties.
@@ -34426,15 +34753,6 @@ export namespace tabletmanagerdata {
/** UpdateVReplicationWorkflowsRequest stop_position. */
public stop_position?: (string|null);
- /** UpdateVReplicationWorkflowsRequest _state. */
- public _state?: "state";
-
- /** UpdateVReplicationWorkflowsRequest _message. */
- public _message?: "message";
-
- /** UpdateVReplicationWorkflowsRequest _stop_position. */
- public _stop_position?: "stop_position";
-
/**
* Creates a new UpdateVReplicationWorkflowsRequest instance using the specified properties.
* @param [properties] Properties to set
@@ -40380,7 +40698,8 @@ export namespace query {
HEXVAL = 4129,
BITNUM = 4130,
VECTOR = 2083,
- RAW = 2084
+ RAW = 2084,
+ ROW_TUPLE = 2085
}
/** Properties of a Value. */
@@ -48503,6 +48822,9 @@ export namespace replicationdata {
/** FullStatus replication_configuration */
replication_configuration?: (replicationdata.IConfiguration|null);
+
+ /** FullStatus disk_stalled */
+ disk_stalled?: (boolean|null);
}
/** Represents a FullStatus. */
@@ -48580,6 +48902,9 @@ export namespace replicationdata {
/** FullStatus replication_configuration. */
public replication_configuration?: (replicationdata.IConfiguration|null);
+ /** FullStatus disk_stalled. */
+ public disk_stalled: boolean;
+
/**
* Creates a new FullStatus instance using the specified properties.
* @param [properties] Properties to set
@@ -49624,9 +49949,6 @@ export namespace vschema {
/** Column values. */
public values: string[];
- /** Column _nullable. */
- public _nullable?: "nullable";
-
/**
* Creates a new Column instance using the specified properties.
* @param [properties] Properties to set
@@ -54296,9 +54618,6 @@ export namespace vtctldata {
/** BackupRequest backup_engine. */
public backup_engine?: (string|null);
- /** BackupRequest _backup_engine. */
- public _backup_engine?: "backup_engine";
-
/**
* Creates a new BackupRequest instance using the specified properties.
* @param [properties] Properties to set
@@ -55873,6 +56192,236 @@ export namespace vtctldata {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ /** Properties of a CopySchemaShardRequest. */
+ interface ICopySchemaShardRequest {
+
+ /** CopySchemaShardRequest source_tablet_alias */
+ source_tablet_alias?: (topodata.ITabletAlias|null);
+
+ /** CopySchemaShardRequest tables */
+ tables?: (string[]|null);
+
+ /** CopySchemaShardRequest exclude_tables */
+ exclude_tables?: (string[]|null);
+
+ /** CopySchemaShardRequest include_views */
+ include_views?: (boolean|null);
+
+ /** CopySchemaShardRequest skip_verify */
+ skip_verify?: (boolean|null);
+
+ /** CopySchemaShardRequest wait_replicas_timeout */
+ wait_replicas_timeout?: (vttime.IDuration|null);
+
+ /** CopySchemaShardRequest destination_keyspace */
+ destination_keyspace?: (string|null);
+
+ /** CopySchemaShardRequest destination_shard */
+ destination_shard?: (string|null);
+ }
+
+ /** Represents a CopySchemaShardRequest. */
+ class CopySchemaShardRequest implements ICopySchemaShardRequest {
+
+ /**
+ * Constructs a new CopySchemaShardRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.ICopySchemaShardRequest);
+
+ /** CopySchemaShardRequest source_tablet_alias. */
+ public source_tablet_alias?: (topodata.ITabletAlias|null);
+
+ /** CopySchemaShardRequest tables. */
+ public tables: string[];
+
+ /** CopySchemaShardRequest exclude_tables. */
+ public exclude_tables: string[];
+
+ /** CopySchemaShardRequest include_views. */
+ public include_views: boolean;
+
+ /** CopySchemaShardRequest skip_verify. */
+ public skip_verify: boolean;
+
+ /** CopySchemaShardRequest wait_replicas_timeout. */
+ public wait_replicas_timeout?: (vttime.IDuration|null);
+
+ /** CopySchemaShardRequest destination_keyspace. */
+ public destination_keyspace: string;
+
+ /** CopySchemaShardRequest destination_shard. */
+ public destination_shard: string;
+
+ /**
+ * Creates a new CopySchemaShardRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CopySchemaShardRequest instance
+ */
+ public static create(properties?: vtctldata.ICopySchemaShardRequest): vtctldata.CopySchemaShardRequest;
+
+ /**
+ * Encodes the specified CopySchemaShardRequest message. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages.
+ * @param message CopySchemaShardRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.ICopySchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CopySchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages.
+ * @param message CopySchemaShardRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.ICopySchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CopySchemaShardRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CopySchemaShardRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CopySchemaShardRequest;
+
+ /**
+ * Decodes a CopySchemaShardRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CopySchemaShardRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CopySchemaShardRequest;
+
+ /**
+ * Verifies a CopySchemaShardRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CopySchemaShardRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CopySchemaShardRequest
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.CopySchemaShardRequest;
+
+ /**
+ * Creates a plain object from a CopySchemaShardRequest message. Also converts values to other types if specified.
+ * @param message CopySchemaShardRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.CopySchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CopySchemaShardRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CopySchemaShardRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CopySchemaShardResponse. */
+ interface ICopySchemaShardResponse {
+ }
+
+ /** Represents a CopySchemaShardResponse. */
+ class CopySchemaShardResponse implements ICopySchemaShardResponse {
+
+ /**
+ * Constructs a new CopySchemaShardResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.ICopySchemaShardResponse);
+
+ /**
+ * Creates a new CopySchemaShardResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CopySchemaShardResponse instance
+ */
+ public static create(properties?: vtctldata.ICopySchemaShardResponse): vtctldata.CopySchemaShardResponse;
+
+ /**
+ * Encodes the specified CopySchemaShardResponse message. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages.
+ * @param message CopySchemaShardResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.ICopySchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CopySchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages.
+ * @param message CopySchemaShardResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.ICopySchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CopySchemaShardResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CopySchemaShardResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CopySchemaShardResponse;
+
+ /**
+ * Decodes a CopySchemaShardResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CopySchemaShardResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CopySchemaShardResponse;
+
+ /**
+ * Verifies a CopySchemaShardResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CopySchemaShardResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CopySchemaShardResponse
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.CopySchemaShardResponse;
+
+ /**
+ * Creates a plain object from a CopySchemaShardResponse message. Also converts values to other types if specified.
+ * @param message CopySchemaShardResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.CopySchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CopySchemaShardResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CopySchemaShardResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
/** Properties of a CreateKeyspaceRequest. */
interface ICreateKeyspaceRequest {
@@ -65813,6 +66362,206 @@ export namespace vtctldata {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ /** Properties of a LookupVindexCompleteRequest. */
+ interface ILookupVindexCompleteRequest {
+
+ /** LookupVindexCompleteRequest keyspace */
+ keyspace?: (string|null);
+
+ /** LookupVindexCompleteRequest name */
+ name?: (string|null);
+
+ /** LookupVindexCompleteRequest table_keyspace */
+ table_keyspace?: (string|null);
+ }
+
+ /** Represents a LookupVindexCompleteRequest. */
+ class LookupVindexCompleteRequest implements ILookupVindexCompleteRequest {
+
+ /**
+ * Constructs a new LookupVindexCompleteRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.ILookupVindexCompleteRequest);
+
+ /** LookupVindexCompleteRequest keyspace. */
+ public keyspace: string;
+
+ /** LookupVindexCompleteRequest name. */
+ public name: string;
+
+ /** LookupVindexCompleteRequest table_keyspace. */
+ public table_keyspace: string;
+
+ /**
+ * Creates a new LookupVindexCompleteRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LookupVindexCompleteRequest instance
+ */
+ public static create(properties?: vtctldata.ILookupVindexCompleteRequest): vtctldata.LookupVindexCompleteRequest;
+
+ /**
+ * Encodes the specified LookupVindexCompleteRequest message. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages.
+ * @param message LookupVindexCompleteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.ILookupVindexCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LookupVindexCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages.
+ * @param message LookupVindexCompleteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.ILookupVindexCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LookupVindexCompleteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCompleteRequest;
+
+ /**
+ * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LookupVindexCompleteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCompleteRequest;
+
+ /**
+ * Verifies a LookupVindexCompleteRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LookupVindexCompleteRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LookupVindexCompleteRequest
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCompleteRequest;
+
+ /**
+ * Creates a plain object from a LookupVindexCompleteRequest message. Also converts values to other types if specified.
+ * @param message LookupVindexCompleteRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.LookupVindexCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LookupVindexCompleteRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LookupVindexCompleteRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LookupVindexCompleteResponse. */
+ interface ILookupVindexCompleteResponse {
+ }
+
+ /** Represents a LookupVindexCompleteResponse. */
+ class LookupVindexCompleteResponse implements ILookupVindexCompleteResponse {
+
+ /**
+ * Constructs a new LookupVindexCompleteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.ILookupVindexCompleteResponse);
+
+ /**
+ * Creates a new LookupVindexCompleteResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LookupVindexCompleteResponse instance
+ */
+ public static create(properties?: vtctldata.ILookupVindexCompleteResponse): vtctldata.LookupVindexCompleteResponse;
+
+ /**
+ * Encodes the specified LookupVindexCompleteResponse message. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages.
+ * @param message LookupVindexCompleteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.ILookupVindexCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LookupVindexCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages.
+ * @param message LookupVindexCompleteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.ILookupVindexCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LookupVindexCompleteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCompleteResponse;
+
+ /**
+ * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LookupVindexCompleteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCompleteResponse;
+
+ /**
+ * Verifies a LookupVindexCompleteResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LookupVindexCompleteResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LookupVindexCompleteResponse
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCompleteResponse;
+
+ /**
+ * Creates a plain object from a LookupVindexCompleteResponse message. Also converts values to other types if specified.
+ * @param message LookupVindexCompleteResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.LookupVindexCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LookupVindexCompleteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LookupVindexCompleteResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
/** Properties of a LookupVindexCreateRequest. */
interface ILookupVindexCreateRequest {
@@ -66048,6 +66797,9 @@ export namespace vtctldata {
/** LookupVindexExternalizeRequest table_keyspace */
table_keyspace?: (string|null);
+
+ /** LookupVindexExternalizeRequest delete_workflow */
+ delete_workflow?: (boolean|null);
}
/** Represents a LookupVindexExternalizeRequest. */
@@ -66068,6 +66820,9 @@ export namespace vtctldata {
/** LookupVindexExternalizeRequest table_keyspace. */
public table_keyspace: string;
+ /** LookupVindexExternalizeRequest delete_workflow. */
+ public delete_workflow: boolean;
+
/**
* Creates a new LookupVindexExternalizeRequest instance using the specified properties.
* @param [properties] Properties to set
@@ -66149,6 +66904,9 @@ export namespace vtctldata {
/** Properties of a LookupVindexExternalizeResponse. */
interface ILookupVindexExternalizeResponse {
+ /** LookupVindexExternalizeResponse workflow_stopped */
+ workflow_stopped?: (boolean|null);
+
/** LookupVindexExternalizeResponse workflow_deleted */
workflow_deleted?: (boolean|null);
}
@@ -66162,6 +66920,9 @@ export namespace vtctldata {
*/
constructor(properties?: vtctldata.ILookupVindexExternalizeResponse);
+ /** LookupVindexExternalizeResponse workflow_stopped. */
+ public workflow_stopped: boolean;
+
/** LookupVindexExternalizeResponse workflow_deleted. */
public workflow_deleted: boolean;
@@ -66243,6 +67004,206 @@ export namespace vtctldata {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ /** Properties of a LookupVindexInternalizeRequest. */
+ interface ILookupVindexInternalizeRequest {
+
+ /** LookupVindexInternalizeRequest keyspace */
+ keyspace?: (string|null);
+
+ /** LookupVindexInternalizeRequest name */
+ name?: (string|null);
+
+ /** LookupVindexInternalizeRequest table_keyspace */
+ table_keyspace?: (string|null);
+ }
+
+ /** Represents a LookupVindexInternalizeRequest. */
+ class LookupVindexInternalizeRequest implements ILookupVindexInternalizeRequest {
+
+ /**
+ * Constructs a new LookupVindexInternalizeRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.ILookupVindexInternalizeRequest);
+
+ /** LookupVindexInternalizeRequest keyspace. */
+ public keyspace: string;
+
+ /** LookupVindexInternalizeRequest name. */
+ public name: string;
+
+ /** LookupVindexInternalizeRequest table_keyspace. */
+ public table_keyspace: string;
+
+ /**
+ * Creates a new LookupVindexInternalizeRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LookupVindexInternalizeRequest instance
+ */
+ public static create(properties?: vtctldata.ILookupVindexInternalizeRequest): vtctldata.LookupVindexInternalizeRequest;
+
+ /**
+ * Encodes the specified LookupVindexInternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages.
+ * @param message LookupVindexInternalizeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.ILookupVindexInternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LookupVindexInternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages.
+ * @param message LookupVindexInternalizeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.ILookupVindexInternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LookupVindexInternalizeRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexInternalizeRequest;
+
+ /**
+ * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LookupVindexInternalizeRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexInternalizeRequest;
+
+ /**
+ * Verifies a LookupVindexInternalizeRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LookupVindexInternalizeRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LookupVindexInternalizeRequest
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexInternalizeRequest;
+
+ /**
+ * Creates a plain object from a LookupVindexInternalizeRequest message. Also converts values to other types if specified.
+ * @param message LookupVindexInternalizeRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.LookupVindexInternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LookupVindexInternalizeRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LookupVindexInternalizeRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LookupVindexInternalizeResponse. */
+ interface ILookupVindexInternalizeResponse {
+ }
+
+ /** Represents a LookupVindexInternalizeResponse. */
+ class LookupVindexInternalizeResponse implements ILookupVindexInternalizeResponse {
+
+ /**
+ * Constructs a new LookupVindexInternalizeResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.ILookupVindexInternalizeResponse);
+
+ /**
+ * Creates a new LookupVindexInternalizeResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LookupVindexInternalizeResponse instance
+ */
+ public static create(properties?: vtctldata.ILookupVindexInternalizeResponse): vtctldata.LookupVindexInternalizeResponse;
+
+ /**
+ * Encodes the specified LookupVindexInternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages.
+ * @param message LookupVindexInternalizeResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.ILookupVindexInternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LookupVindexInternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages.
+ * @param message LookupVindexInternalizeResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.ILookupVindexInternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LookupVindexInternalizeResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexInternalizeResponse;
+
+ /**
+ * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LookupVindexInternalizeResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexInternalizeResponse;
+
+ /**
+ * Verifies a LookupVindexInternalizeResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LookupVindexInternalizeResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LookupVindexInternalizeResponse
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexInternalizeResponse;
+
+ /**
+ * Creates a plain object from a LookupVindexInternalizeResponse message. Also converts values to other types if specified.
+ * @param message LookupVindexInternalizeResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.LookupVindexInternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LookupVindexInternalizeResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LookupVindexInternalizeResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
/** Properties of a MaterializeCreateRequest. */
interface IMaterializeCreateRequest {
@@ -75653,6 +76614,200 @@ export namespace vtctldata {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ /** Properties of a ValidatePermissionsKeyspaceRequest. */
+ interface IValidatePermissionsKeyspaceRequest {
+
+ /** ValidatePermissionsKeyspaceRequest keyspace */
+ keyspace?: (string|null);
+
+ /** ValidatePermissionsKeyspaceRequest shards */
+ shards?: (string[]|null);
+ }
+
+ /** Represents a ValidatePermissionsKeyspaceRequest. */
+ class ValidatePermissionsKeyspaceRequest implements IValidatePermissionsKeyspaceRequest {
+
+ /**
+ * Constructs a new ValidatePermissionsKeyspaceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.IValidatePermissionsKeyspaceRequest);
+
+ /** ValidatePermissionsKeyspaceRequest keyspace. */
+ public keyspace: string;
+
+ /** ValidatePermissionsKeyspaceRequest shards. */
+ public shards: string[];
+
+ /**
+ * Creates a new ValidatePermissionsKeyspaceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ValidatePermissionsKeyspaceRequest instance
+ */
+ public static create(properties?: vtctldata.IValidatePermissionsKeyspaceRequest): vtctldata.ValidatePermissionsKeyspaceRequest;
+
+ /**
+ * Encodes the specified ValidatePermissionsKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages.
+ * @param message ValidatePermissionsKeyspaceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.IValidatePermissionsKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ValidatePermissionsKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages.
+ * @param message ValidatePermissionsKeyspaceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.IValidatePermissionsKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ValidatePermissionsKeyspaceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidatePermissionsKeyspaceRequest;
+
+ /**
+ * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ValidatePermissionsKeyspaceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidatePermissionsKeyspaceRequest;
+
+ /**
+ * Verifies a ValidatePermissionsKeyspaceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ValidatePermissionsKeyspaceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ValidatePermissionsKeyspaceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.ValidatePermissionsKeyspaceRequest;
+
+ /**
+ * Creates a plain object from a ValidatePermissionsKeyspaceRequest message. Also converts values to other types if specified.
+ * @param message ValidatePermissionsKeyspaceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.ValidatePermissionsKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ValidatePermissionsKeyspaceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ValidatePermissionsKeyspaceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ValidatePermissionsKeyspaceResponse. */
+ interface IValidatePermissionsKeyspaceResponse {
+ }
+
+ /** Represents a ValidatePermissionsKeyspaceResponse. */
+ class ValidatePermissionsKeyspaceResponse implements IValidatePermissionsKeyspaceResponse {
+
+ /**
+ * Constructs a new ValidatePermissionsKeyspaceResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.IValidatePermissionsKeyspaceResponse);
+
+ /**
+ * Creates a new ValidatePermissionsKeyspaceResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ValidatePermissionsKeyspaceResponse instance
+ */
+ public static create(properties?: vtctldata.IValidatePermissionsKeyspaceResponse): vtctldata.ValidatePermissionsKeyspaceResponse;
+
+ /**
+ * Encodes the specified ValidatePermissionsKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages.
+ * @param message ValidatePermissionsKeyspaceResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.IValidatePermissionsKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ValidatePermissionsKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages.
+ * @param message ValidatePermissionsKeyspaceResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.IValidatePermissionsKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ValidatePermissionsKeyspaceResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidatePermissionsKeyspaceResponse;
+
+ /**
+ * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ValidatePermissionsKeyspaceResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidatePermissionsKeyspaceResponse;
+
+ /**
+ * Verifies a ValidatePermissionsKeyspaceResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ValidatePermissionsKeyspaceResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ValidatePermissionsKeyspaceResponse
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.ValidatePermissionsKeyspaceResponse;
+
+ /**
+ * Creates a plain object from a ValidatePermissionsKeyspaceResponse message. Also converts values to other types if specified.
+ * @param message ValidatePermissionsKeyspaceResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.ValidatePermissionsKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ValidatePermissionsKeyspaceResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ValidatePermissionsKeyspaceResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
/** Properties of a ValidateSchemaKeyspaceRequest. */
interface IValidateSchemaKeyspaceRequest {
@@ -75670,6 +76825,9 @@ export namespace vtctldata {
/** ValidateSchemaKeyspaceRequest include_vschema */
include_vschema?: (boolean|null);
+
+ /** ValidateSchemaKeyspaceRequest shards */
+ shards?: (string[]|null);
}
/** Represents a ValidateSchemaKeyspaceRequest. */
@@ -75696,6 +76854,9 @@ export namespace vtctldata {
/** ValidateSchemaKeyspaceRequest include_vschema. */
public include_vschema: boolean;
+ /** ValidateSchemaKeyspaceRequest shards. */
+ public shards: string[];
+
/**
* Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties.
* @param [properties] Properties to set
@@ -76846,9 +78007,6 @@ export namespace vtctldata {
/** VDiffCreateRequest auto_start. */
public auto_start?: (boolean|null);
- /** VDiffCreateRequest _auto_start. */
- public _auto_start?: "auto_start";
-
/**
* Creates a new VDiffCreateRequest instance using the specified properties.
* @param [properties] Properties to set
diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js
index d71d3e08fe5..cc3ef73ced6 100644
--- a/web/vtadmin/src/proto/vtadmin.js
+++ b/web/vtadmin/src/proto/vtadmin.js
@@ -2358,6 +2358,39 @@ export const vtadmin = $root.vtadmin = (() => {
* @variation 2
*/
+ /**
+ * Callback as used by {@link vtadmin.VTAdmin#vExplain}.
+ * @memberof vtadmin.VTAdmin
+ * @typedef VExplainCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {vtadmin.VExplainResponse} [response] VExplainResponse
+ */
+
+ /**
+ * Calls VExplain.
+ * @function vExplain
+ * @memberof vtadmin.VTAdmin
+ * @instance
+ * @param {vtadmin.IVExplainRequest} request VExplainRequest message or plain object
+ * @param {vtadmin.VTAdmin.VExplainCallback} callback Node-style callback called with the error, if any, and VExplainResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VTAdmin.prototype.vExplain = function vExplain(request, callback) {
+ return this.rpcCall(vExplain, $root.vtadmin.VExplainRequest, $root.vtadmin.VExplainResponse, request, callback);
+ }, "name", { value: "VExplain" });
+
+ /**
+ * Calls VExplain.
+ * @function vExplain
+ * @memberof vtadmin.VTAdmin
+ * @instance
+ * @param {vtadmin.IVExplainRequest} request VExplainRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
/**
* Callback as used by {@link vtadmin.VTAdmin#workflowDelete}.
* @memberof vtadmin.VTAdmin
@@ -35265,6 +35298,459 @@ export const vtadmin = $root.vtadmin = (() => {
return VTExplainResponse;
})();
+ vtadmin.VExplainRequest = (function() {
+
+ /**
+ * Properties of a VExplainRequest.
+ * @memberof vtadmin
+ * @interface IVExplainRequest
+ * @property {string|null} [cluster_id] VExplainRequest cluster_id
+ * @property {string|null} [keyspace] VExplainRequest keyspace
+ * @property {string|null} [sql] VExplainRequest sql
+ */
+
+ /**
+ * Constructs a new VExplainRequest.
+ * @memberof vtadmin
+ * @classdesc Represents a VExplainRequest.
+ * @implements IVExplainRequest
+ * @constructor
+ * @param {vtadmin.IVExplainRequest=} [properties] Properties to set
+ */
+ function VExplainRequest(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * VExplainRequest cluster_id.
+ * @member {string} cluster_id
+ * @memberof vtadmin.VExplainRequest
+ * @instance
+ */
+ VExplainRequest.prototype.cluster_id = "";
+
+ /**
+ * VExplainRequest keyspace.
+ * @member {string} keyspace
+ * @memberof vtadmin.VExplainRequest
+ * @instance
+ */
+ VExplainRequest.prototype.keyspace = "";
+
+ /**
+ * VExplainRequest sql.
+ * @member {string} sql
+ * @memberof vtadmin.VExplainRequest
+ * @instance
+ */
+ VExplainRequest.prototype.sql = "";
+
+ /**
+ * Creates a new VExplainRequest instance using the specified properties.
+ * @function create
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {vtadmin.IVExplainRequest=} [properties] Properties to set
+ * @returns {vtadmin.VExplainRequest} VExplainRequest instance
+ */
+ VExplainRequest.create = function create(properties) {
+ return new VExplainRequest(properties);
+ };
+
+ /**
+ * Encodes the specified VExplainRequest message. Does not implicitly {@link vtadmin.VExplainRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {vtadmin.IVExplainRequest} message VExplainRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VExplainRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id);
+ if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace);
+ if (message.sql != null && Object.hasOwnProperty.call(message, "sql"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VExplainRequest message, length delimited. Does not implicitly {@link vtadmin.VExplainRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {vtadmin.IVExplainRequest} message VExplainRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VExplainRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VExplainRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtadmin.VExplainRequest} VExplainRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VExplainRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VExplainRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.cluster_id = reader.string();
+ break;
+ }
+ case 2: {
+ message.keyspace = reader.string();
+ break;
+ }
+ case 3: {
+ message.sql = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VExplainRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtadmin.VExplainRequest} VExplainRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VExplainRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VExplainRequest message.
+ * @function verify
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VExplainRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.cluster_id != null && message.hasOwnProperty("cluster_id"))
+ if (!$util.isString(message.cluster_id))
+ return "cluster_id: string expected";
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ if (!$util.isString(message.keyspace))
+ return "keyspace: string expected";
+ if (message.sql != null && message.hasOwnProperty("sql"))
+ if (!$util.isString(message.sql))
+ return "sql: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a VExplainRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtadmin.VExplainRequest} VExplainRequest
+ */
+ VExplainRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtadmin.VExplainRequest)
+ return object;
+ let message = new $root.vtadmin.VExplainRequest();
+ if (object.cluster_id != null)
+ message.cluster_id = String(object.cluster_id);
+ if (object.keyspace != null)
+ message.keyspace = String(object.keyspace);
+ if (object.sql != null)
+ message.sql = String(object.sql);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VExplainRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {vtadmin.VExplainRequest} message VExplainRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VExplainRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults) {
+ object.cluster_id = "";
+ object.keyspace = "";
+ object.sql = "";
+ }
+ if (message.cluster_id != null && message.hasOwnProperty("cluster_id"))
+ object.cluster_id = message.cluster_id;
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ object.keyspace = message.keyspace;
+ if (message.sql != null && message.hasOwnProperty("sql"))
+ object.sql = message.sql;
+ return object;
+ };
+
+ /**
+ * Converts this VExplainRequest to JSON.
+ * @function toJSON
+ * @memberof vtadmin.VExplainRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VExplainRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VExplainRequest
+ * @function getTypeUrl
+ * @memberof vtadmin.VExplainRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtadmin.VExplainRequest";
+ };
+
+ return VExplainRequest;
+ })();
+
+ vtadmin.VExplainResponse = (function() {
+
+ /**
+ * Properties of a VExplainResponse.
+ * @memberof vtadmin
+ * @interface IVExplainResponse
+ * @property {string|null} [response] VExplainResponse response
+ */
+
+ /**
+ * Constructs a new VExplainResponse.
+ * @memberof vtadmin
+ * @classdesc Represents a VExplainResponse.
+ * @implements IVExplainResponse
+ * @constructor
+ * @param {vtadmin.IVExplainResponse=} [properties] Properties to set
+ */
+ function VExplainResponse(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * VExplainResponse response.
+ * @member {string} response
+ * @memberof vtadmin.VExplainResponse
+ * @instance
+ */
+ VExplainResponse.prototype.response = "";
+
+ /**
+ * Creates a new VExplainResponse instance using the specified properties.
+ * @function create
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {vtadmin.IVExplainResponse=} [properties] Properties to set
+ * @returns {vtadmin.VExplainResponse} VExplainResponse instance
+ */
+ VExplainResponse.create = function create(properties) {
+ return new VExplainResponse(properties);
+ };
+
+ /**
+ * Encodes the specified VExplainResponse message. Does not implicitly {@link vtadmin.VExplainResponse.verify|verify} messages.
+ * @function encode
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {vtadmin.IVExplainResponse} message VExplainResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VExplainResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.response != null && Object.hasOwnProperty.call(message, "response"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.response);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VExplainResponse message, length delimited. Does not implicitly {@link vtadmin.VExplainResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {vtadmin.IVExplainResponse} message VExplainResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VExplainResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VExplainResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtadmin.VExplainResponse} VExplainResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VExplainResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VExplainResponse();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.response = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VExplainResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtadmin.VExplainResponse} VExplainResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VExplainResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VExplainResponse message.
+ * @function verify
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VExplainResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.response != null && message.hasOwnProperty("response"))
+ if (!$util.isString(message.response))
+ return "response: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a VExplainResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtadmin.VExplainResponse} VExplainResponse
+ */
+ VExplainResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtadmin.VExplainResponse)
+ return object;
+ let message = new $root.vtadmin.VExplainResponse();
+ if (object.response != null)
+ message.response = String(object.response);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VExplainResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {vtadmin.VExplainResponse} message VExplainResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VExplainResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults)
+ object.response = "";
+ if (message.response != null && message.hasOwnProperty("response"))
+ object.response = message.response;
+ return object;
+ };
+
+ /**
+ * Converts this VExplainResponse to JSON.
+ * @function toJSON
+ * @memberof vtadmin.VExplainResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VExplainResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VExplainResponse
+ * @function getTypeUrl
+ * @memberof vtadmin.VExplainResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VExplainResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtadmin.VExplainResponse";
+ };
+
+ return VExplainResponse;
+ })();
+
return vtadmin;
})();
@@ -71242,12 +71728,7 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
// OneOf field names bound to virtual getters and setters
let $oneOfFields;
- /**
- * BackupRequest _backup_engine.
- * @member {"backup_engine"|undefined} _backup_engine
- * @memberof tabletmanagerdata.BackupRequest
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(BackupRequest.prototype, "_backup_engine", {
get: $util.oneOfGetter($oneOfFields = ["backup_engine"]),
set: $util.oneOfSetter($oneOfFields)
@@ -78250,12 +78731,7 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
// OneOf field names bound to virtual getters and setters
let $oneOfFields;
- /**
- * VDiffCoreOptions _auto_start.
- * @member {"auto_start"|undefined} _auto_start
- * @memberof tabletmanagerdata.VDiffCoreOptions
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(VDiffCoreOptions.prototype, "_auto_start", {
get: $util.oneOfGetter($oneOfFields = ["auto_start"]),
set: $util.oneOfSetter($oneOfFields)
@@ -78899,6 +79375,257 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
return VDiffOptions;
})();
+ tabletmanagerdata.VDiffTableLastPK = (function() {
+
+ /**
+ * Properties of a VDiffTableLastPK.
+ * @memberof tabletmanagerdata
+ * @interface IVDiffTableLastPK
+ * @property {query.IQueryResult|null} [target] VDiffTableLastPK target
+ * @property {query.IQueryResult|null} [source] VDiffTableLastPK source
+ */
+
+ /**
+ * Constructs a new VDiffTableLastPK.
+ * @memberof tabletmanagerdata
+ * @classdesc Represents a VDiffTableLastPK.
+ * @implements IVDiffTableLastPK
+ * @constructor
+ * @param {tabletmanagerdata.IVDiffTableLastPK=} [properties] Properties to set
+ */
+ function VDiffTableLastPK(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * VDiffTableLastPK target.
+ * @member {query.IQueryResult|null|undefined} target
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @instance
+ */
+ VDiffTableLastPK.prototype.target = null;
+
+ /**
+ * VDiffTableLastPK source.
+ * @member {query.IQueryResult|null|undefined} source
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @instance
+ */
+ VDiffTableLastPK.prototype.source = null;
+
+ // OneOf field names bound to virtual getters and setters
+ let $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(VDiffTableLastPK.prototype, "_source", {
+ get: $util.oneOfGetter($oneOfFields = ["source"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new VDiffTableLastPK instance using the specified properties.
+ * @function create
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {tabletmanagerdata.IVDiffTableLastPK=} [properties] Properties to set
+ * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK instance
+ */
+ VDiffTableLastPK.create = function create(properties) {
+ return new VDiffTableLastPK(properties);
+ };
+
+ /**
+ * Encodes the specified VDiffTableLastPK message. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages.
+ * @function encode
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {tabletmanagerdata.IVDiffTableLastPK} message VDiffTableLastPK message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VDiffTableLastPK.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ $root.query.QueryResult.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ $root.query.QueryResult.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VDiffTableLastPK message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {tabletmanagerdata.IVDiffTableLastPK} message VDiffTableLastPK message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VDiffTableLastPK.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VDiffTableLastPK message from the specified reader or buffer.
+ * @function decode
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VDiffTableLastPK.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffTableLastPK();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.target = $root.query.QueryResult.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.source = $root.query.QueryResult.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VDiffTableLastPK message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VDiffTableLastPK.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VDiffTableLastPK message.
+ * @function verify
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VDiffTableLastPK.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ let properties = {};
+ if (message.target != null && message.hasOwnProperty("target")) {
+ let error = $root.query.QueryResult.verify(message.target);
+ if (error)
+ return "target." + error;
+ }
+ if (message.source != null && message.hasOwnProperty("source")) {
+ properties._source = 1;
+ {
+ let error = $root.query.QueryResult.verify(message.source);
+ if (error)
+ return "source." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VDiffTableLastPK message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK
+ */
+ VDiffTableLastPK.fromObject = function fromObject(object) {
+ if (object instanceof $root.tabletmanagerdata.VDiffTableLastPK)
+ return object;
+ let message = new $root.tabletmanagerdata.VDiffTableLastPK();
+ if (object.target != null) {
+ if (typeof object.target !== "object")
+ throw TypeError(".tabletmanagerdata.VDiffTableLastPK.target: object expected");
+ message.target = $root.query.QueryResult.fromObject(object.target);
+ }
+ if (object.source != null) {
+ if (typeof object.source !== "object")
+ throw TypeError(".tabletmanagerdata.VDiffTableLastPK.source: object expected");
+ message.source = $root.query.QueryResult.fromObject(object.source);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VDiffTableLastPK message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {tabletmanagerdata.VDiffTableLastPK} message VDiffTableLastPK
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VDiffTableLastPK.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults)
+ object.target = null;
+ if (message.target != null && message.hasOwnProperty("target"))
+ object.target = $root.query.QueryResult.toObject(message.target, options);
+ if (message.source != null && message.hasOwnProperty("source")) {
+ object.source = $root.query.QueryResult.toObject(message.source, options);
+ if (options.oneofs)
+ object._source = "source";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this VDiffTableLastPK to JSON.
+ * @function toJSON
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VDiffTableLastPK.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VDiffTableLastPK
+ * @function getTypeUrl
+ * @memberof tabletmanagerdata.VDiffTableLastPK
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VDiffTableLastPK.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/tabletmanagerdata.VDiffTableLastPK";
+ };
+
+ return VDiffTableLastPK;
+ })();
+
tabletmanagerdata.UpdateVReplicationWorkflowRequest = (function() {
/**
@@ -78911,7 +79638,9 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
* @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] UpdateVReplicationWorkflowRequest tablet_selection_preference
* @property {binlogdata.OnDDLAction|null} [on_ddl] UpdateVReplicationWorkflowRequest on_ddl
* @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowRequest state
+ * @property {Array.|null} [shards] UpdateVReplicationWorkflowRequest shards
* @property {Object.|null} [config_overrides] UpdateVReplicationWorkflowRequest config_overrides
+ * @property {string|null} [message] UpdateVReplicationWorkflowRequest message
*/
/**
@@ -78925,6 +79654,7 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
function UpdateVReplicationWorkflowRequest(properties) {
this.cells = [];
this.tablet_types = [];
+ this.shards = [];
this.config_overrides = {};
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -78980,6 +79710,14 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
*/
UpdateVReplicationWorkflowRequest.prototype.state = null;
+ /**
+ * UpdateVReplicationWorkflowRequest shards.
+ * @member {Array.} shards
+ * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest
+ * @instance
+ */
+ UpdateVReplicationWorkflowRequest.prototype.shards = $util.emptyArray;
+
/**
* UpdateVReplicationWorkflowRequest config_overrides.
* @member {Object.} config_overrides
@@ -78988,42 +79726,41 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
*/
UpdateVReplicationWorkflowRequest.prototype.config_overrides = $util.emptyObject;
- // OneOf field names bound to virtual getters and setters
- let $oneOfFields;
-
/**
- * UpdateVReplicationWorkflowRequest _tablet_selection_preference.
- * @member {"tablet_selection_preference"|undefined} _tablet_selection_preference
+ * UpdateVReplicationWorkflowRequest message.
+ * @member {string|null|undefined} message
* @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest
* @instance
*/
+ UpdateVReplicationWorkflowRequest.prototype.message = null;
+
+ // OneOf field names bound to virtual getters and setters
+ let $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_tablet_selection_preference", {
get: $util.oneOfGetter($oneOfFields = ["tablet_selection_preference"]),
set: $util.oneOfSetter($oneOfFields)
});
- /**
- * UpdateVReplicationWorkflowRequest _on_ddl.
- * @member {"on_ddl"|undefined} _on_ddl
- * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_on_ddl", {
get: $util.oneOfGetter($oneOfFields = ["on_ddl"]),
set: $util.oneOfSetter($oneOfFields)
});
- /**
- * UpdateVReplicationWorkflowRequest _state.
- * @member {"state"|undefined} _state
- * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_state", {
get: $util.oneOfGetter($oneOfFields = ["state"]),
set: $util.oneOfSetter($oneOfFields)
});
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_message", {
+ get: $util.oneOfGetter($oneOfFields = ["message"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
/**
* Creates a new UpdateVReplicationWorkflowRequest instance using the specified properties.
* @function create
@@ -79065,9 +79802,14 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.on_ddl);
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state);
+ if (message.shards != null && message.shards.length)
+ for (let i = 0; i < message.shards.length; ++i)
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.shards[i]);
if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides"))
for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i)
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim();
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.message);
return writer;
};
@@ -79135,6 +79877,12 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
message.state = reader.int32();
break;
}
+ case 7: {
+ if (!(message.shards && message.shards.length))
+ message.shards = [];
+ message.shards.push(reader.string());
+ break;
+ }
case 8: {
if (message.config_overrides === $util.emptyObject)
message.config_overrides = {};
@@ -79158,6 +79906,10 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
message.config_overrides[key] = value;
break;
}
+ case 9: {
+ message.message = reader.string();
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -79263,6 +80015,13 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
break;
}
}
+ if (message.shards != null && message.hasOwnProperty("shards")) {
+ if (!Array.isArray(message.shards))
+ return "shards: array expected";
+ for (let i = 0; i < message.shards.length; ++i)
+ if (!$util.isString(message.shards[i]))
+ return "shards: string[] expected";
+ }
if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) {
if (!$util.isObject(message.config_overrides))
return "config_overrides: object expected";
@@ -79271,6 +80030,11 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
if (!$util.isString(message.config_overrides[key[i]]))
return "config_overrides: string{k:string} expected";
}
+ if (message.message != null && message.hasOwnProperty("message")) {
+ properties._message = 1;
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ }
return null;
};
@@ -79432,6 +80196,13 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
message.state = 6;
break;
}
+ if (object.shards) {
+ if (!Array.isArray(object.shards))
+ throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.shards: array expected");
+ message.shards = [];
+ for (let i = 0; i < object.shards.length; ++i)
+ message.shards[i] = String(object.shards[i]);
+ }
if (object.config_overrides) {
if (typeof object.config_overrides !== "object")
throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.config_overrides: object expected");
@@ -79439,6 +80210,8 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i)
message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]);
}
+ if (object.message != null)
+ message.message = String(object.message);
return message;
};
@@ -79458,6 +80231,7 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
if (options.arrays || options.defaults) {
object.cells = [];
object.tablet_types = [];
+ object.shards = [];
}
if (options.objects || options.defaults)
object.config_overrides = {};
@@ -79490,12 +80264,22 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
if (options.oneofs)
object._state = "state";
}
+ if (message.shards && message.shards.length) {
+ object.shards = [];
+ for (let j = 0; j < message.shards.length; ++j)
+ object.shards[j] = message.shards[j];
+ }
let keys2;
if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) {
object.config_overrides = {};
for (let j = 0; j < keys2.length; ++j)
object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]];
}
+ if (message.message != null && message.hasOwnProperty("message")) {
+ object.message = message.message;
+ if (options.oneofs)
+ object._message = "message";
+ }
return object;
};
@@ -79818,34 +80602,19 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => {
// OneOf field names bound to virtual getters and setters
let $oneOfFields;
- /**
- * UpdateVReplicationWorkflowsRequest _state.
- * @member {"state"|undefined} _state
- * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_state", {
get: $util.oneOfGetter($oneOfFields = ["state"]),
set: $util.oneOfSetter($oneOfFields)
});
- /**
- * UpdateVReplicationWorkflowsRequest _message.
- * @member {"message"|undefined} _message
- * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_message", {
get: $util.oneOfGetter($oneOfFields = ["message"]),
set: $util.oneOfSetter($oneOfFields)
});
- /**
- * UpdateVReplicationWorkflowsRequest _stop_position.
- * @member {"stop_position"|undefined} _stop_position
- * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_stop_position", {
get: $util.oneOfGetter($oneOfFields = ["stop_position"]),
set: $util.oneOfSetter($oneOfFields)
@@ -95915,6 +96684,7 @@ export const query = $root.query = (() => {
* @property {number} BITNUM=4130 BITNUM value
* @property {number} VECTOR=2083 VECTOR value
* @property {number} RAW=2084 RAW value
+ * @property {number} ROW_TUPLE=2085 ROW_TUPLE value
*/
query.Type = (function() {
const valuesById = {}, values = Object.create(valuesById);
@@ -95955,6 +96725,7 @@ export const query = $root.query = (() => {
values[valuesById[4130] = "BITNUM"] = 4130;
values[valuesById[2083] = "VECTOR"] = 2083;
values[valuesById[2084] = "RAW"] = 2084;
+ values[valuesById[2085] = "ROW_TUPLE"] = 2085;
return values;
})();
@@ -96145,6 +96916,7 @@ export const query = $root.query = (() => {
case 4130:
case 2083:
case 2084:
+ case 2085:
break;
}
if (message.value != null && message.hasOwnProperty("value"))
@@ -96320,6 +97092,10 @@ export const query = $root.query = (() => {
case 2084:
message.type = 2084;
break;
+ case "ROW_TUPLE":
+ case 2085:
+ message.type = 2085;
+ break;
}
if (object.value != null)
if (typeof object.value === "string")
@@ -96594,6 +97370,7 @@ export const query = $root.query = (() => {
case 4130:
case 2083:
case 2084:
+ case 2085:
break;
}
if (message.value != null && message.hasOwnProperty("value"))
@@ -96778,6 +97555,10 @@ export const query = $root.query = (() => {
case 2084:
message.type = 2084;
break;
+ case "ROW_TUPLE":
+ case 2085:
+ message.type = 2085;
+ break;
}
if (object.value != null)
if (typeof object.value === "string")
@@ -98345,6 +99126,7 @@ export const query = $root.query = (() => {
case 4130:
case 2083:
case 2084:
+ case 2085:
break;
}
if (message.table != null && message.hasOwnProperty("table"))
@@ -98546,6 +99328,10 @@ export const query = $root.query = (() => {
case 2084:
message.type = 2084;
break;
+ case "ROW_TUPLE":
+ case 2085:
+ message.type = 2085;
+ break;
}
if (object.table != null)
message.table = String(object.table);
@@ -115806,6 +116592,7 @@ export const query = $root.query = (() => {
case 4130:
case 2083:
case 2084:
+ case 2085:
break;
}
return null;
@@ -115982,6 +116769,10 @@ export const query = $root.query = (() => {
case 2084:
message.return_type = 2084;
break;
+ case "ROW_TUPLE":
+ case 2085:
+ message.return_type = 2085;
+ break;
}
return message;
};
@@ -117803,6 +118594,7 @@ export const replicationdata = $root.replicationdata = (() => {
* @property {number|null} [semi_sync_wait_for_replica_count] FullStatus semi_sync_wait_for_replica_count
* @property {boolean|null} [super_read_only] FullStatus super_read_only
* @property {replicationdata.IConfiguration|null} [replication_configuration] FullStatus replication_configuration
+ * @property {boolean|null} [disk_stalled] FullStatus disk_stalled
*/
/**
@@ -117996,6 +118788,14 @@ export const replicationdata = $root.replicationdata = (() => {
*/
FullStatus.prototype.replication_configuration = null;
+ /**
+ * FullStatus disk_stalled.
+ * @member {boolean} disk_stalled
+ * @memberof replicationdata.FullStatus
+ * @instance
+ */
+ FullStatus.prototype.disk_stalled = false;
+
/**
* Creates a new FullStatus instance using the specified properties.
* @function create
@@ -118064,6 +118864,8 @@ export const replicationdata = $root.replicationdata = (() => {
writer.uint32(/* id 21, wireType 0 =*/168).bool(message.super_read_only);
if (message.replication_configuration != null && Object.hasOwnProperty.call(message, "replication_configuration"))
$root.replicationdata.Configuration.encode(message.replication_configuration, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
+ if (message.disk_stalled != null && Object.hasOwnProperty.call(message, "disk_stalled"))
+ writer.uint32(/* id 23, wireType 0 =*/184).bool(message.disk_stalled);
return writer;
};
@@ -118186,6 +118988,10 @@ export const replicationdata = $root.replicationdata = (() => {
message.replication_configuration = $root.replicationdata.Configuration.decode(reader, reader.uint32());
break;
}
+ case 23: {
+ message.disk_stalled = reader.bool();
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -118293,6 +119099,9 @@ export const replicationdata = $root.replicationdata = (() => {
if (error)
return "replication_configuration." + error;
}
+ if (message.disk_stalled != null && message.hasOwnProperty("disk_stalled"))
+ if (typeof message.disk_stalled !== "boolean")
+ return "disk_stalled: boolean expected";
return null;
};
@@ -118368,6 +119177,8 @@ export const replicationdata = $root.replicationdata = (() => {
throw TypeError(".replicationdata.FullStatus.replication_configuration: object expected");
message.replication_configuration = $root.replicationdata.Configuration.fromObject(object.replication_configuration);
}
+ if (object.disk_stalled != null)
+ message.disk_stalled = Boolean(object.disk_stalled);
return message;
};
@@ -118411,6 +119222,7 @@ export const replicationdata = $root.replicationdata = (() => {
object.semi_sync_wait_for_replica_count = 0;
object.super_read_only = false;
object.replication_configuration = null;
+ object.disk_stalled = false;
}
if (message.server_id != null && message.hasOwnProperty("server_id"))
object.server_id = message.server_id;
@@ -118459,6 +119271,8 @@ export const replicationdata = $root.replicationdata = (() => {
object.super_read_only = message.super_read_only;
if (message.replication_configuration != null && message.hasOwnProperty("replication_configuration"))
object.replication_configuration = $root.replicationdata.Configuration.toObject(message.replication_configuration, options);
+ if (message.disk_stalled != null && message.hasOwnProperty("disk_stalled"))
+ object.disk_stalled = message.disk_stalled;
return object;
};
@@ -119616,6 +120430,7 @@ export const vschema = $root.vschema = (() => {
case 4130:
case 2083:
case 2084:
+ case 2085:
break;
}
return null;
@@ -119790,6 +120605,10 @@ export const vschema = $root.vschema = (() => {
case 2084:
message.tenant_id_column_type = 2084;
break;
+ case "ROW_TUPLE":
+ case 2085:
+ message.tenant_id_column_type = 2085;
+ break;
}
return message;
};
@@ -121126,12 +121945,7 @@ export const vschema = $root.vschema = (() => {
// OneOf field names bound to virtual getters and setters
let $oneOfFields;
- /**
- * Column _nullable.
- * @member {"nullable"|undefined} _nullable
- * @memberof vschema.Column
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(Column.prototype, "_nullable", {
get: $util.oneOfGetter($oneOfFields = ["nullable"]),
set: $util.oneOfSetter($oneOfFields)
@@ -121332,6 +122146,7 @@ export const vschema = $root.vschema = (() => {
case 4130:
case 2083:
case 2084:
+ case 2085:
break;
}
if (message.invisible != null && message.hasOwnProperty("invisible"))
@@ -121533,6 +122348,10 @@ export const vschema = $root.vschema = (() => {
case 2084:
message.type = 2084;
break;
+ case "ROW_TUPLE":
+ case 2085:
+ message.type = 2085;
+ break;
}
if (object.invisible != null)
message.invisible = Boolean(object.invisible);
@@ -134101,12 +134920,7 @@ export const vtctldata = $root.vtctldata = (() => {
// OneOf field names bound to virtual getters and setters
let $oneOfFields;
- /**
- * BackupRequest _backup_engine.
- * @member {"backup_engine"|undefined} _backup_engine
- * @memberof vtctldata.BackupRequest
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(BackupRequest.prototype, "_backup_engine", {
get: $util.oneOfGetter($oneOfFields = ["backup_engine"]),
set: $util.oneOfSetter($oneOfFields)
@@ -138095,6 +138909,590 @@ export const vtctldata = $root.vtctldata = (() => {
return CompleteSchemaMigrationResponse;
})();
+ vtctldata.CopySchemaShardRequest = (function() {
+
+ /**
+ * Properties of a CopySchemaShardRequest.
+ * @memberof vtctldata
+ * @interface ICopySchemaShardRequest
+ * @property {topodata.ITabletAlias|null} [source_tablet_alias] CopySchemaShardRequest source_tablet_alias
+ * @property {Array.|null} [tables] CopySchemaShardRequest tables
+ * @property {Array.|null} [exclude_tables] CopySchemaShardRequest exclude_tables
+ * @property {boolean|null} [include_views] CopySchemaShardRequest include_views
+ * @property {boolean|null} [skip_verify] CopySchemaShardRequest skip_verify
+ * @property {vttime.IDuration|null} [wait_replicas_timeout] CopySchemaShardRequest wait_replicas_timeout
+ * @property {string|null} [destination_keyspace] CopySchemaShardRequest destination_keyspace
+ * @property {string|null} [destination_shard] CopySchemaShardRequest destination_shard
+ */
+
+ /**
+ * Constructs a new CopySchemaShardRequest.
+ * @memberof vtctldata
+ * @classdesc Represents a CopySchemaShardRequest.
+ * @implements ICopySchemaShardRequest
+ * @constructor
+ * @param {vtctldata.ICopySchemaShardRequest=} [properties] Properties to set
+ */
+ function CopySchemaShardRequest(properties) {
+ this.tables = [];
+ this.exclude_tables = [];
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CopySchemaShardRequest source_tablet_alias.
+ * @member {topodata.ITabletAlias|null|undefined} source_tablet_alias
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ */
+ CopySchemaShardRequest.prototype.source_tablet_alias = null;
+
+ /**
+ * CopySchemaShardRequest tables.
+ * @member {Array.} tables
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ */
+ CopySchemaShardRequest.prototype.tables = $util.emptyArray;
+
+ /**
+ * CopySchemaShardRequest exclude_tables.
+ * @member {Array.} exclude_tables
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ */
+ CopySchemaShardRequest.prototype.exclude_tables = $util.emptyArray;
+
+ /**
+ * CopySchemaShardRequest include_views.
+ * @member {boolean} include_views
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ */
+ CopySchemaShardRequest.prototype.include_views = false;
+
+ /**
+ * CopySchemaShardRequest skip_verify.
+ * @member {boolean} skip_verify
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ */
+ CopySchemaShardRequest.prototype.skip_verify = false;
+
+ /**
+ * CopySchemaShardRequest wait_replicas_timeout.
+ * @member {vttime.IDuration|null|undefined} wait_replicas_timeout
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ */
+ CopySchemaShardRequest.prototype.wait_replicas_timeout = null;
+
+ /**
+ * CopySchemaShardRequest destination_keyspace.
+ * @member {string} destination_keyspace
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ */
+ CopySchemaShardRequest.prototype.destination_keyspace = "";
+
+ /**
+ * CopySchemaShardRequest destination_shard.
+ * @member {string} destination_shard
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ */
+ CopySchemaShardRequest.prototype.destination_shard = "";
+
+ /**
+ * Creates a new CopySchemaShardRequest instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {vtctldata.ICopySchemaShardRequest=} [properties] Properties to set
+ * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest instance
+ */
+ CopySchemaShardRequest.create = function create(properties) {
+ return new CopySchemaShardRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CopySchemaShardRequest message. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {vtctldata.ICopySchemaShardRequest} message CopySchemaShardRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CopySchemaShardRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.source_tablet_alias != null && Object.hasOwnProperty.call(message, "source_tablet_alias"))
+ $root.topodata.TabletAlias.encode(message.source_tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.tables != null && message.tables.length)
+ for (let i = 0; i < message.tables.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]);
+ if (message.exclude_tables != null && message.exclude_tables.length)
+ for (let i = 0; i < message.exclude_tables.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]);
+ if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views);
+ if (message.skip_verify != null && Object.hasOwnProperty.call(message, "skip_verify"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.skip_verify);
+ if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout"))
+ $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.destination_keyspace != null && Object.hasOwnProperty.call(message, "destination_keyspace"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.destination_keyspace);
+ if (message.destination_shard != null && Object.hasOwnProperty.call(message, "destination_shard"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.destination_shard);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CopySchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {vtctldata.ICopySchemaShardRequest} message CopySchemaShardRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CopySchemaShardRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CopySchemaShardRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CopySchemaShardRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CopySchemaShardRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.source_tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (!(message.tables && message.tables.length))
+ message.tables = [];
+ message.tables.push(reader.string());
+ break;
+ }
+ case 3: {
+ if (!(message.exclude_tables && message.exclude_tables.length))
+ message.exclude_tables = [];
+ message.exclude_tables.push(reader.string());
+ break;
+ }
+ case 4: {
+ message.include_views = reader.bool();
+ break;
+ }
+ case 5: {
+ message.skip_verify = reader.bool();
+ break;
+ }
+ case 6: {
+ message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.destination_keyspace = reader.string();
+ break;
+ }
+ case 8: {
+ message.destination_shard = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CopySchemaShardRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CopySchemaShardRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CopySchemaShardRequest message.
+ * @function verify
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CopySchemaShardRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.source_tablet_alias != null && message.hasOwnProperty("source_tablet_alias")) {
+ let error = $root.topodata.TabletAlias.verify(message.source_tablet_alias);
+ if (error)
+ return "source_tablet_alias." + error;
+ }
+ if (message.tables != null && message.hasOwnProperty("tables")) {
+ if (!Array.isArray(message.tables))
+ return "tables: array expected";
+ for (let i = 0; i < message.tables.length; ++i)
+ if (!$util.isString(message.tables[i]))
+ return "tables: string[] expected";
+ }
+ if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) {
+ if (!Array.isArray(message.exclude_tables))
+ return "exclude_tables: array expected";
+ for (let i = 0; i < message.exclude_tables.length; ++i)
+ if (!$util.isString(message.exclude_tables[i]))
+ return "exclude_tables: string[] expected";
+ }
+ if (message.include_views != null && message.hasOwnProperty("include_views"))
+ if (typeof message.include_views !== "boolean")
+ return "include_views: boolean expected";
+ if (message.skip_verify != null && message.hasOwnProperty("skip_verify"))
+ if (typeof message.skip_verify !== "boolean")
+ return "skip_verify: boolean expected";
+ if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) {
+ let error = $root.vttime.Duration.verify(message.wait_replicas_timeout);
+ if (error)
+ return "wait_replicas_timeout." + error;
+ }
+ if (message.destination_keyspace != null && message.hasOwnProperty("destination_keyspace"))
+ if (!$util.isString(message.destination_keyspace))
+ return "destination_keyspace: string expected";
+ if (message.destination_shard != null && message.hasOwnProperty("destination_shard"))
+ if (!$util.isString(message.destination_shard))
+ return "destination_shard: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CopySchemaShardRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest
+ */
+ CopySchemaShardRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.CopySchemaShardRequest)
+ return object;
+ let message = new $root.vtctldata.CopySchemaShardRequest();
+ if (object.source_tablet_alias != null) {
+ if (typeof object.source_tablet_alias !== "object")
+ throw TypeError(".vtctldata.CopySchemaShardRequest.source_tablet_alias: object expected");
+ message.source_tablet_alias = $root.topodata.TabletAlias.fromObject(object.source_tablet_alias);
+ }
+ if (object.tables) {
+ if (!Array.isArray(object.tables))
+ throw TypeError(".vtctldata.CopySchemaShardRequest.tables: array expected");
+ message.tables = [];
+ for (let i = 0; i < object.tables.length; ++i)
+ message.tables[i] = String(object.tables[i]);
+ }
+ if (object.exclude_tables) {
+ if (!Array.isArray(object.exclude_tables))
+ throw TypeError(".vtctldata.CopySchemaShardRequest.exclude_tables: array expected");
+ message.exclude_tables = [];
+ for (let i = 0; i < object.exclude_tables.length; ++i)
+ message.exclude_tables[i] = String(object.exclude_tables[i]);
+ }
+ if (object.include_views != null)
+ message.include_views = Boolean(object.include_views);
+ if (object.skip_verify != null)
+ message.skip_verify = Boolean(object.skip_verify);
+ if (object.wait_replicas_timeout != null) {
+ if (typeof object.wait_replicas_timeout !== "object")
+ throw TypeError(".vtctldata.CopySchemaShardRequest.wait_replicas_timeout: object expected");
+ message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout);
+ }
+ if (object.destination_keyspace != null)
+ message.destination_keyspace = String(object.destination_keyspace);
+ if (object.destination_shard != null)
+ message.destination_shard = String(object.destination_shard);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CopySchemaShardRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {vtctldata.CopySchemaShardRequest} message CopySchemaShardRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CopySchemaShardRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.arrays || options.defaults) {
+ object.tables = [];
+ object.exclude_tables = [];
+ }
+ if (options.defaults) {
+ object.source_tablet_alias = null;
+ object.include_views = false;
+ object.skip_verify = false;
+ object.wait_replicas_timeout = null;
+ object.destination_keyspace = "";
+ object.destination_shard = "";
+ }
+ if (message.source_tablet_alias != null && message.hasOwnProperty("source_tablet_alias"))
+ object.source_tablet_alias = $root.topodata.TabletAlias.toObject(message.source_tablet_alias, options);
+ if (message.tables && message.tables.length) {
+ object.tables = [];
+ for (let j = 0; j < message.tables.length; ++j)
+ object.tables[j] = message.tables[j];
+ }
+ if (message.exclude_tables && message.exclude_tables.length) {
+ object.exclude_tables = [];
+ for (let j = 0; j < message.exclude_tables.length; ++j)
+ object.exclude_tables[j] = message.exclude_tables[j];
+ }
+ if (message.include_views != null && message.hasOwnProperty("include_views"))
+ object.include_views = message.include_views;
+ if (message.skip_verify != null && message.hasOwnProperty("skip_verify"))
+ object.skip_verify = message.skip_verify;
+ if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout"))
+ object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options);
+ if (message.destination_keyspace != null && message.hasOwnProperty("destination_keyspace"))
+ object.destination_keyspace = message.destination_keyspace;
+ if (message.destination_shard != null && message.hasOwnProperty("destination_shard"))
+ object.destination_shard = message.destination_shard;
+ return object;
+ };
+
+ /**
+ * Converts this CopySchemaShardRequest to JSON.
+ * @function toJSON
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CopySchemaShardRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CopySchemaShardRequest
+ * @function getTypeUrl
+ * @memberof vtctldata.CopySchemaShardRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CopySchemaShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.CopySchemaShardRequest";
+ };
+
+ return CopySchemaShardRequest;
+ })();
+
+ vtctldata.CopySchemaShardResponse = (function() {
+
+ /**
+ * Properties of a CopySchemaShardResponse.
+ * @memberof vtctldata
+ * @interface ICopySchemaShardResponse
+ */
+
+ /**
+ * Constructs a new CopySchemaShardResponse.
+ * @memberof vtctldata
+ * @classdesc Represents a CopySchemaShardResponse.
+ * @implements ICopySchemaShardResponse
+ * @constructor
+ * @param {vtctldata.ICopySchemaShardResponse=} [properties] Properties to set
+ */
+ function CopySchemaShardResponse(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new CopySchemaShardResponse instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {vtctldata.ICopySchemaShardResponse=} [properties] Properties to set
+ * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse instance
+ */
+ CopySchemaShardResponse.create = function create(properties) {
+ return new CopySchemaShardResponse(properties);
+ };
+
+ /**
+ * Encodes the specified CopySchemaShardResponse message. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {vtctldata.ICopySchemaShardResponse} message CopySchemaShardResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CopySchemaShardResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CopySchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {vtctldata.ICopySchemaShardResponse} message CopySchemaShardResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CopySchemaShardResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CopySchemaShardResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CopySchemaShardResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CopySchemaShardResponse();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CopySchemaShardResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CopySchemaShardResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CopySchemaShardResponse message.
+ * @function verify
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CopySchemaShardResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a CopySchemaShardResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse
+ */
+ CopySchemaShardResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.CopySchemaShardResponse)
+ return object;
+ return new $root.vtctldata.CopySchemaShardResponse();
+ };
+
+ /**
+ * Creates a plain object from a CopySchemaShardResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {vtctldata.CopySchemaShardResponse} message CopySchemaShardResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CopySchemaShardResponse.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this CopySchemaShardResponse to JSON.
+ * @function toJSON
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CopySchemaShardResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CopySchemaShardResponse
+ * @function getTypeUrl
+ * @memberof vtctldata.CopySchemaShardResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CopySchemaShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.CopySchemaShardResponse";
+ };
+
+ return CopySchemaShardResponse;
+ })();
+
vtctldata.CreateKeyspaceRequest = (function() {
/**
@@ -161135,6 +162533,431 @@ export const vtctldata = $root.vtctldata = (() => {
return LaunchSchemaMigrationResponse;
})();
+ vtctldata.LookupVindexCompleteRequest = (function() {
+
+ /**
+ * Properties of a LookupVindexCompleteRequest.
+ * @memberof vtctldata
+ * @interface ILookupVindexCompleteRequest
+ * @property {string|null} [keyspace] LookupVindexCompleteRequest keyspace
+ * @property {string|null} [name] LookupVindexCompleteRequest name
+ * @property {string|null} [table_keyspace] LookupVindexCompleteRequest table_keyspace
+ */
+
+ /**
+ * Constructs a new LookupVindexCompleteRequest.
+ * @memberof vtctldata
+ * @classdesc Represents a LookupVindexCompleteRequest.
+ * @implements ILookupVindexCompleteRequest
+ * @constructor
+ * @param {vtctldata.ILookupVindexCompleteRequest=} [properties] Properties to set
+ */
+ function LookupVindexCompleteRequest(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * LookupVindexCompleteRequest keyspace.
+ * @member {string} keyspace
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @instance
+ */
+ LookupVindexCompleteRequest.prototype.keyspace = "";
+
+ /**
+ * LookupVindexCompleteRequest name.
+ * @member {string} name
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @instance
+ */
+ LookupVindexCompleteRequest.prototype.name = "";
+
+ /**
+ * LookupVindexCompleteRequest table_keyspace.
+ * @member {string} table_keyspace
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @instance
+ */
+ LookupVindexCompleteRequest.prototype.table_keyspace = "";
+
+ /**
+ * Creates a new LookupVindexCompleteRequest instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {vtctldata.ILookupVindexCompleteRequest=} [properties] Properties to set
+ * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest instance
+ */
+ LookupVindexCompleteRequest.create = function create(properties) {
+ return new LookupVindexCompleteRequest(properties);
+ };
+
+ /**
+ * Encodes the specified LookupVindexCompleteRequest message. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {vtctldata.ILookupVindexCompleteRequest} message LookupVindexCompleteRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LookupVindexCompleteRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
+ if (message.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LookupVindexCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {vtctldata.ILookupVindexCompleteRequest} message LookupVindexCompleteRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LookupVindexCompleteRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LookupVindexCompleteRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCompleteRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.keyspace = reader.string();
+ break;
+ }
+ case 2: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.table_keyspace = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LookupVindexCompleteRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LookupVindexCompleteRequest message.
+ * @function verify
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LookupVindexCompleteRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ if (!$util.isString(message.keyspace))
+ return "keyspace: string expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace"))
+ if (!$util.isString(message.table_keyspace))
+ return "table_keyspace: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a LookupVindexCompleteRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest
+ */
+ LookupVindexCompleteRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.LookupVindexCompleteRequest)
+ return object;
+ let message = new $root.vtctldata.LookupVindexCompleteRequest();
+ if (object.keyspace != null)
+ message.keyspace = String(object.keyspace);
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.table_keyspace != null)
+ message.table_keyspace = String(object.table_keyspace);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LookupVindexCompleteRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {vtctldata.LookupVindexCompleteRequest} message LookupVindexCompleteRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LookupVindexCompleteRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults) {
+ object.keyspace = "";
+ object.name = "";
+ object.table_keyspace = "";
+ }
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ object.keyspace = message.keyspace;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace"))
+ object.table_keyspace = message.table_keyspace;
+ return object;
+ };
+
+ /**
+ * Converts this LookupVindexCompleteRequest to JSON.
+ * @function toJSON
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LookupVindexCompleteRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LookupVindexCompleteRequest
+ * @function getTypeUrl
+ * @memberof vtctldata.LookupVindexCompleteRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LookupVindexCompleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.LookupVindexCompleteRequest";
+ };
+
+ return LookupVindexCompleteRequest;
+ })();
+
+ vtctldata.LookupVindexCompleteResponse = (function() {
+
+ /**
+ * Properties of a LookupVindexCompleteResponse.
+ * @memberof vtctldata
+ * @interface ILookupVindexCompleteResponse
+ */
+
+ /**
+ * Constructs a new LookupVindexCompleteResponse.
+ * @memberof vtctldata
+ * @classdesc Represents a LookupVindexCompleteResponse.
+ * @implements ILookupVindexCompleteResponse
+ * @constructor
+ * @param {vtctldata.ILookupVindexCompleteResponse=} [properties] Properties to set
+ */
+ function LookupVindexCompleteResponse(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new LookupVindexCompleteResponse instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {vtctldata.ILookupVindexCompleteResponse=} [properties] Properties to set
+ * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse instance
+ */
+ LookupVindexCompleteResponse.create = function create(properties) {
+ return new LookupVindexCompleteResponse(properties);
+ };
+
+ /**
+ * Encodes the specified LookupVindexCompleteResponse message. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {vtctldata.ILookupVindexCompleteResponse} message LookupVindexCompleteResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LookupVindexCompleteResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LookupVindexCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {vtctldata.ILookupVindexCompleteResponse} message LookupVindexCompleteResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LookupVindexCompleteResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LookupVindexCompleteResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCompleteResponse();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LookupVindexCompleteResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LookupVindexCompleteResponse message.
+ * @function verify
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LookupVindexCompleteResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a LookupVindexCompleteResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse
+ */
+ LookupVindexCompleteResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.LookupVindexCompleteResponse)
+ return object;
+ return new $root.vtctldata.LookupVindexCompleteResponse();
+ };
+
+ /**
+ * Creates a plain object from a LookupVindexCompleteResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {vtctldata.LookupVindexCompleteResponse} message LookupVindexCompleteResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LookupVindexCompleteResponse.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this LookupVindexCompleteResponse to JSON.
+ * @function toJSON
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LookupVindexCompleteResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LookupVindexCompleteResponse
+ * @function getTypeUrl
+ * @memberof vtctldata.LookupVindexCompleteResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LookupVindexCompleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.LookupVindexCompleteResponse";
+ };
+
+ return LookupVindexCompleteResponse;
+ })();
+
vtctldata.LookupVindexCreateRequest = (function() {
/**
@@ -161796,6 +163619,7 @@ export const vtctldata = $root.vtctldata = (() => {
* @property {string|null} [keyspace] LookupVindexExternalizeRequest keyspace
* @property {string|null} [name] LookupVindexExternalizeRequest name
* @property {string|null} [table_keyspace] LookupVindexExternalizeRequest table_keyspace
+ * @property {boolean|null} [delete_workflow] LookupVindexExternalizeRequest delete_workflow
*/
/**
@@ -161837,6 +163661,14 @@ export const vtctldata = $root.vtctldata = (() => {
*/
LookupVindexExternalizeRequest.prototype.table_keyspace = "";
+ /**
+ * LookupVindexExternalizeRequest delete_workflow.
+ * @member {boolean} delete_workflow
+ * @memberof vtctldata.LookupVindexExternalizeRequest
+ * @instance
+ */
+ LookupVindexExternalizeRequest.prototype.delete_workflow = false;
+
/**
* Creates a new LookupVindexExternalizeRequest instance using the specified properties.
* @function create
@@ -161867,6 +163699,8 @@ export const vtctldata = $root.vtctldata = (() => {
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
if (message.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace"))
writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace);
+ if (message.delete_workflow != null && Object.hasOwnProperty.call(message, "delete_workflow"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.delete_workflow);
return writer;
};
@@ -161913,6 +163747,10 @@ export const vtctldata = $root.vtctldata = (() => {
message.table_keyspace = reader.string();
break;
}
+ case 4: {
+ message.delete_workflow = reader.bool();
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -161957,6 +163795,9 @@ export const vtctldata = $root.vtctldata = (() => {
if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace"))
if (!$util.isString(message.table_keyspace))
return "table_keyspace: string expected";
+ if (message.delete_workflow != null && message.hasOwnProperty("delete_workflow"))
+ if (typeof message.delete_workflow !== "boolean")
+ return "delete_workflow: boolean expected";
return null;
};
@@ -161978,6 +163819,8 @@ export const vtctldata = $root.vtctldata = (() => {
message.name = String(object.name);
if (object.table_keyspace != null)
message.table_keyspace = String(object.table_keyspace);
+ if (object.delete_workflow != null)
+ message.delete_workflow = Boolean(object.delete_workflow);
return message;
};
@@ -161998,6 +163841,7 @@ export const vtctldata = $root.vtctldata = (() => {
object.keyspace = "";
object.name = "";
object.table_keyspace = "";
+ object.delete_workflow = false;
}
if (message.keyspace != null && message.hasOwnProperty("keyspace"))
object.keyspace = message.keyspace;
@@ -162005,6 +163849,8 @@ export const vtctldata = $root.vtctldata = (() => {
object.name = message.name;
if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace"))
object.table_keyspace = message.table_keyspace;
+ if (message.delete_workflow != null && message.hasOwnProperty("delete_workflow"))
+ object.delete_workflow = message.delete_workflow;
return object;
};
@@ -162043,6 +163889,7 @@ export const vtctldata = $root.vtctldata = (() => {
* Properties of a LookupVindexExternalizeResponse.
* @memberof vtctldata
* @interface ILookupVindexExternalizeResponse
+ * @property {boolean|null} [workflow_stopped] LookupVindexExternalizeResponse workflow_stopped
* @property {boolean|null} [workflow_deleted] LookupVindexExternalizeResponse workflow_deleted
*/
@@ -162061,6 +163908,14 @@ export const vtctldata = $root.vtctldata = (() => {
this[keys[i]] = properties[keys[i]];
}
+ /**
+ * LookupVindexExternalizeResponse workflow_stopped.
+ * @member {boolean} workflow_stopped
+ * @memberof vtctldata.LookupVindexExternalizeResponse
+ * @instance
+ */
+ LookupVindexExternalizeResponse.prototype.workflow_stopped = false;
+
/**
* LookupVindexExternalizeResponse workflow_deleted.
* @member {boolean} workflow_deleted
@@ -162093,8 +163948,10 @@ export const vtctldata = $root.vtctldata = (() => {
LookupVindexExternalizeResponse.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
+ if (message.workflow_stopped != null && Object.hasOwnProperty.call(message, "workflow_stopped"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.workflow_stopped);
if (message.workflow_deleted != null && Object.hasOwnProperty.call(message, "workflow_deleted"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.workflow_deleted);
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.workflow_deleted);
return writer;
};
@@ -162130,6 +163987,10 @@ export const vtctldata = $root.vtctldata = (() => {
let tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
+ message.workflow_stopped = reader.bool();
+ break;
+ }
+ case 2: {
message.workflow_deleted = reader.bool();
break;
}
@@ -162168,6 +164029,9 @@ export const vtctldata = $root.vtctldata = (() => {
LookupVindexExternalizeResponse.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
+ if (message.workflow_stopped != null && message.hasOwnProperty("workflow_stopped"))
+ if (typeof message.workflow_stopped !== "boolean")
+ return "workflow_stopped: boolean expected";
if (message.workflow_deleted != null && message.hasOwnProperty("workflow_deleted"))
if (typeof message.workflow_deleted !== "boolean")
return "workflow_deleted: boolean expected";
@@ -162186,6 +164050,8 @@ export const vtctldata = $root.vtctldata = (() => {
if (object instanceof $root.vtctldata.LookupVindexExternalizeResponse)
return object;
let message = new $root.vtctldata.LookupVindexExternalizeResponse();
+ if (object.workflow_stopped != null)
+ message.workflow_stopped = Boolean(object.workflow_stopped);
if (object.workflow_deleted != null)
message.workflow_deleted = Boolean(object.workflow_deleted);
return message;
@@ -162204,8 +164070,12 @@ export const vtctldata = $root.vtctldata = (() => {
if (!options)
options = {};
let object = {};
- if (options.defaults)
+ if (options.defaults) {
+ object.workflow_stopped = false;
object.workflow_deleted = false;
+ }
+ if (message.workflow_stopped != null && message.hasOwnProperty("workflow_stopped"))
+ object.workflow_stopped = message.workflow_stopped;
if (message.workflow_deleted != null && message.hasOwnProperty("workflow_deleted"))
object.workflow_deleted = message.workflow_deleted;
return object;
@@ -162240,6 +164110,431 @@ export const vtctldata = $root.vtctldata = (() => {
return LookupVindexExternalizeResponse;
})();
+ vtctldata.LookupVindexInternalizeRequest = (function() {
+
+ /**
+ * Properties of a LookupVindexInternalizeRequest.
+ * @memberof vtctldata
+ * @interface ILookupVindexInternalizeRequest
+ * @property {string|null} [keyspace] LookupVindexInternalizeRequest keyspace
+ * @property {string|null} [name] LookupVindexInternalizeRequest name
+ * @property {string|null} [table_keyspace] LookupVindexInternalizeRequest table_keyspace
+ */
+
+ /**
+ * Constructs a new LookupVindexInternalizeRequest.
+ * @memberof vtctldata
+ * @classdesc Represents a LookupVindexInternalizeRequest.
+ * @implements ILookupVindexInternalizeRequest
+ * @constructor
+ * @param {vtctldata.ILookupVindexInternalizeRequest=} [properties] Properties to set
+ */
+ function LookupVindexInternalizeRequest(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * LookupVindexInternalizeRequest keyspace.
+ * @member {string} keyspace
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @instance
+ */
+ LookupVindexInternalizeRequest.prototype.keyspace = "";
+
+ /**
+ * LookupVindexInternalizeRequest name.
+ * @member {string} name
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @instance
+ */
+ LookupVindexInternalizeRequest.prototype.name = "";
+
+ /**
+ * LookupVindexInternalizeRequest table_keyspace.
+ * @member {string} table_keyspace
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @instance
+ */
+ LookupVindexInternalizeRequest.prototype.table_keyspace = "";
+
+ /**
+ * Creates a new LookupVindexInternalizeRequest instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {vtctldata.ILookupVindexInternalizeRequest=} [properties] Properties to set
+ * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest instance
+ */
+ LookupVindexInternalizeRequest.create = function create(properties) {
+ return new LookupVindexInternalizeRequest(properties);
+ };
+
+ /**
+ * Encodes the specified LookupVindexInternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {vtctldata.ILookupVindexInternalizeRequest} message LookupVindexInternalizeRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LookupVindexInternalizeRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
+ if (message.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LookupVindexInternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {vtctldata.ILookupVindexInternalizeRequest} message LookupVindexInternalizeRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LookupVindexInternalizeRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LookupVindexInternalizeRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexInternalizeRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.keyspace = reader.string();
+ break;
+ }
+ case 2: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.table_keyspace = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LookupVindexInternalizeRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LookupVindexInternalizeRequest message.
+ * @function verify
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LookupVindexInternalizeRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ if (!$util.isString(message.keyspace))
+ return "keyspace: string expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace"))
+ if (!$util.isString(message.table_keyspace))
+ return "table_keyspace: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a LookupVindexInternalizeRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest
+ */
+ LookupVindexInternalizeRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.LookupVindexInternalizeRequest)
+ return object;
+ let message = new $root.vtctldata.LookupVindexInternalizeRequest();
+ if (object.keyspace != null)
+ message.keyspace = String(object.keyspace);
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.table_keyspace != null)
+ message.table_keyspace = String(object.table_keyspace);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LookupVindexInternalizeRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {vtctldata.LookupVindexInternalizeRequest} message LookupVindexInternalizeRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LookupVindexInternalizeRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults) {
+ object.keyspace = "";
+ object.name = "";
+ object.table_keyspace = "";
+ }
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ object.keyspace = message.keyspace;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace"))
+ object.table_keyspace = message.table_keyspace;
+ return object;
+ };
+
+ /**
+ * Converts this LookupVindexInternalizeRequest to JSON.
+ * @function toJSON
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LookupVindexInternalizeRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LookupVindexInternalizeRequest
+ * @function getTypeUrl
+ * @memberof vtctldata.LookupVindexInternalizeRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LookupVindexInternalizeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.LookupVindexInternalizeRequest";
+ };
+
+ return LookupVindexInternalizeRequest;
+ })();
+
+ vtctldata.LookupVindexInternalizeResponse = (function() {
+
+ /**
+ * Properties of a LookupVindexInternalizeResponse.
+ * @memberof vtctldata
+ * @interface ILookupVindexInternalizeResponse
+ */
+
+ /**
+ * Constructs a new LookupVindexInternalizeResponse.
+ * @memberof vtctldata
+ * @classdesc Represents a LookupVindexInternalizeResponse.
+ * @implements ILookupVindexInternalizeResponse
+ * @constructor
+ * @param {vtctldata.ILookupVindexInternalizeResponse=} [properties] Properties to set
+ */
+ function LookupVindexInternalizeResponse(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new LookupVindexInternalizeResponse instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {vtctldata.ILookupVindexInternalizeResponse=} [properties] Properties to set
+ * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse instance
+ */
+ LookupVindexInternalizeResponse.create = function create(properties) {
+ return new LookupVindexInternalizeResponse(properties);
+ };
+
+ /**
+ * Encodes the specified LookupVindexInternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {vtctldata.ILookupVindexInternalizeResponse} message LookupVindexInternalizeResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LookupVindexInternalizeResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LookupVindexInternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {vtctldata.ILookupVindexInternalizeResponse} message LookupVindexInternalizeResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LookupVindexInternalizeResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LookupVindexInternalizeResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexInternalizeResponse();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LookupVindexInternalizeResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LookupVindexInternalizeResponse message.
+ * @function verify
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LookupVindexInternalizeResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a LookupVindexInternalizeResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse
+ */
+ LookupVindexInternalizeResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.LookupVindexInternalizeResponse)
+ return object;
+ return new $root.vtctldata.LookupVindexInternalizeResponse();
+ };
+
+ /**
+ * Creates a plain object from a LookupVindexInternalizeResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {vtctldata.LookupVindexInternalizeResponse} message LookupVindexInternalizeResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LookupVindexInternalizeResponse.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this LookupVindexInternalizeResponse to JSON.
+ * @function toJSON
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LookupVindexInternalizeResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LookupVindexInternalizeResponse
+ * @function getTypeUrl
+ * @memberof vtctldata.LookupVindexInternalizeResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LookupVindexInternalizeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.LookupVindexInternalizeResponse";
+ };
+
+ return LookupVindexInternalizeResponse;
+ })();
+
vtctldata.MaterializeCreateRequest = (function() {
/**
@@ -184518,6 +186813,424 @@ export const vtctldata = $root.vtctldata = (() => {
return ValidateKeyspaceResponse;
})();
+ vtctldata.ValidatePermissionsKeyspaceRequest = (function() {
+
+ /**
+ * Properties of a ValidatePermissionsKeyspaceRequest.
+ * @memberof vtctldata
+ * @interface IValidatePermissionsKeyspaceRequest
+ * @property {string|null} [keyspace] ValidatePermissionsKeyspaceRequest keyspace
+ * @property {Array.|null} [shards] ValidatePermissionsKeyspaceRequest shards
+ */
+
+ /**
+ * Constructs a new ValidatePermissionsKeyspaceRequest.
+ * @memberof vtctldata
+ * @classdesc Represents a ValidatePermissionsKeyspaceRequest.
+ * @implements IValidatePermissionsKeyspaceRequest
+ * @constructor
+ * @param {vtctldata.IValidatePermissionsKeyspaceRequest=} [properties] Properties to set
+ */
+ function ValidatePermissionsKeyspaceRequest(properties) {
+ this.shards = [];
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ValidatePermissionsKeyspaceRequest keyspace.
+ * @member {string} keyspace
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @instance
+ */
+ ValidatePermissionsKeyspaceRequest.prototype.keyspace = "";
+
+ /**
+ * ValidatePermissionsKeyspaceRequest shards.
+ * @member {Array.} shards
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @instance
+ */
+ ValidatePermissionsKeyspaceRequest.prototype.shards = $util.emptyArray;
+
+ /**
+ * Creates a new ValidatePermissionsKeyspaceRequest instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {vtctldata.IValidatePermissionsKeyspaceRequest=} [properties] Properties to set
+ * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest instance
+ */
+ ValidatePermissionsKeyspaceRequest.create = function create(properties) {
+ return new ValidatePermissionsKeyspaceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ValidatePermissionsKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {vtctldata.IValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ValidatePermissionsKeyspaceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace);
+ if (message.shards != null && message.shards.length)
+ for (let i = 0; i < message.shards.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ValidatePermissionsKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {vtctldata.IValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ValidatePermissionsKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ValidatePermissionsKeyspaceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidatePermissionsKeyspaceRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.keyspace = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.shards && message.shards.length))
+ message.shards = [];
+ message.shards.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ValidatePermissionsKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ValidatePermissionsKeyspaceRequest message.
+ * @function verify
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ValidatePermissionsKeyspaceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ if (!$util.isString(message.keyspace))
+ return "keyspace: string expected";
+ if (message.shards != null && message.hasOwnProperty("shards")) {
+ if (!Array.isArray(message.shards))
+ return "shards: array expected";
+ for (let i = 0; i < message.shards.length; ++i)
+ if (!$util.isString(message.shards[i]))
+ return "shards: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ValidatePermissionsKeyspaceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest
+ */
+ ValidatePermissionsKeyspaceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.ValidatePermissionsKeyspaceRequest)
+ return object;
+ let message = new $root.vtctldata.ValidatePermissionsKeyspaceRequest();
+ if (object.keyspace != null)
+ message.keyspace = String(object.keyspace);
+ if (object.shards) {
+ if (!Array.isArray(object.shards))
+ throw TypeError(".vtctldata.ValidatePermissionsKeyspaceRequest.shards: array expected");
+ message.shards = [];
+ for (let i = 0; i < object.shards.length; ++i)
+ message.shards[i] = String(object.shards[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ValidatePermissionsKeyspaceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {vtctldata.ValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ValidatePermissionsKeyspaceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.arrays || options.defaults)
+ object.shards = [];
+ if (options.defaults)
+ object.keyspace = "";
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ object.keyspace = message.keyspace;
+ if (message.shards && message.shards.length) {
+ object.shards = [];
+ for (let j = 0; j < message.shards.length; ++j)
+ object.shards[j] = message.shards[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ValidatePermissionsKeyspaceRequest to JSON.
+ * @function toJSON
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ValidatePermissionsKeyspaceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ValidatePermissionsKeyspaceRequest
+ * @function getTypeUrl
+ * @memberof vtctldata.ValidatePermissionsKeyspaceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ValidatePermissionsKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.ValidatePermissionsKeyspaceRequest";
+ };
+
+ return ValidatePermissionsKeyspaceRequest;
+ })();
+
+ vtctldata.ValidatePermissionsKeyspaceResponse = (function() {
+
+ /**
+ * Properties of a ValidatePermissionsKeyspaceResponse.
+ * @memberof vtctldata
+ * @interface IValidatePermissionsKeyspaceResponse
+ */
+
+ /**
+ * Constructs a new ValidatePermissionsKeyspaceResponse.
+ * @memberof vtctldata
+ * @classdesc Represents a ValidatePermissionsKeyspaceResponse.
+ * @implements IValidatePermissionsKeyspaceResponse
+ * @constructor
+ * @param {vtctldata.IValidatePermissionsKeyspaceResponse=} [properties] Properties to set
+ */
+ function ValidatePermissionsKeyspaceResponse(properties) {
+ if (properties)
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new ValidatePermissionsKeyspaceResponse instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {vtctldata.IValidatePermissionsKeyspaceResponse=} [properties] Properties to set
+ * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse instance
+ */
+ ValidatePermissionsKeyspaceResponse.create = function create(properties) {
+ return new ValidatePermissionsKeyspaceResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ValidatePermissionsKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {vtctldata.IValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ValidatePermissionsKeyspaceResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ValidatePermissionsKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {vtctldata.IValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ValidatePermissionsKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ValidatePermissionsKeyspaceResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidatePermissionsKeyspaceResponse();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ValidatePermissionsKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ValidatePermissionsKeyspaceResponse message.
+ * @function verify
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ValidatePermissionsKeyspaceResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a ValidatePermissionsKeyspaceResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse
+ */
+ ValidatePermissionsKeyspaceResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.ValidatePermissionsKeyspaceResponse)
+ return object;
+ return new $root.vtctldata.ValidatePermissionsKeyspaceResponse();
+ };
+
+ /**
+ * Creates a plain object from a ValidatePermissionsKeyspaceResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {vtctldata.ValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ValidatePermissionsKeyspaceResponse.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this ValidatePermissionsKeyspaceResponse to JSON.
+ * @function toJSON
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ValidatePermissionsKeyspaceResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ValidatePermissionsKeyspaceResponse
+ * @function getTypeUrl
+ * @memberof vtctldata.ValidatePermissionsKeyspaceResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ValidatePermissionsKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.ValidatePermissionsKeyspaceResponse";
+ };
+
+ return ValidatePermissionsKeyspaceResponse;
+ })();
+
vtctldata.ValidateSchemaKeyspaceRequest = (function() {
/**
@@ -184529,6 +187242,7 @@ export const vtctldata = $root.vtctldata = (() => {
* @property {boolean|null} [include_views] ValidateSchemaKeyspaceRequest include_views
* @property {boolean|null} [skip_no_primary] ValidateSchemaKeyspaceRequest skip_no_primary
* @property {boolean|null} [include_vschema] ValidateSchemaKeyspaceRequest include_vschema
+ * @property {Array.|null} [shards] ValidateSchemaKeyspaceRequest shards
*/
/**
@@ -184541,6 +187255,7 @@ export const vtctldata = $root.vtctldata = (() => {
*/
function ValidateSchemaKeyspaceRequest(properties) {
this.exclude_tables = [];
+ this.shards = [];
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -184587,6 +187302,14 @@ export const vtctldata = $root.vtctldata = (() => {
*/
ValidateSchemaKeyspaceRequest.prototype.include_vschema = false;
+ /**
+ * ValidateSchemaKeyspaceRequest shards.
+ * @member {Array.} shards
+ * @memberof vtctldata.ValidateSchemaKeyspaceRequest
+ * @instance
+ */
+ ValidateSchemaKeyspaceRequest.prototype.shards = $util.emptyArray;
+
/**
* Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties.
* @function create
@@ -184622,6 +187345,9 @@ export const vtctldata = $root.vtctldata = (() => {
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skip_no_primary);
if (message.include_vschema != null && Object.hasOwnProperty.call(message, "include_vschema"))
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.include_vschema);
+ if (message.shards != null && message.shards.length)
+ for (let i = 0; i < message.shards.length; ++i)
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.shards[i]);
return writer;
};
@@ -184678,6 +187404,12 @@ export const vtctldata = $root.vtctldata = (() => {
message.include_vschema = reader.bool();
break;
}
+ case 6: {
+ if (!(message.shards && message.shards.length))
+ message.shards = [];
+ message.shards.push(reader.string());
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -184732,6 +187464,13 @@ export const vtctldata = $root.vtctldata = (() => {
if (message.include_vschema != null && message.hasOwnProperty("include_vschema"))
if (typeof message.include_vschema !== "boolean")
return "include_vschema: boolean expected";
+ if (message.shards != null && message.hasOwnProperty("shards")) {
+ if (!Array.isArray(message.shards))
+ return "shards: array expected";
+ for (let i = 0; i < message.shards.length; ++i)
+ if (!$util.isString(message.shards[i]))
+ return "shards: string[] expected";
+ }
return null;
};
@@ -184762,6 +187501,13 @@ export const vtctldata = $root.vtctldata = (() => {
message.skip_no_primary = Boolean(object.skip_no_primary);
if (object.include_vschema != null)
message.include_vschema = Boolean(object.include_vschema);
+ if (object.shards) {
+ if (!Array.isArray(object.shards))
+ throw TypeError(".vtctldata.ValidateSchemaKeyspaceRequest.shards: array expected");
+ message.shards = [];
+ for (let i = 0; i < object.shards.length; ++i)
+ message.shards[i] = String(object.shards[i]);
+ }
return message;
};
@@ -184778,8 +187524,10 @@ export const vtctldata = $root.vtctldata = (() => {
if (!options)
options = {};
let object = {};
- if (options.arrays || options.defaults)
+ if (options.arrays || options.defaults) {
object.exclude_tables = [];
+ object.shards = [];
+ }
if (options.defaults) {
object.keyspace = "";
object.include_views = false;
@@ -184799,6 +187547,11 @@ export const vtctldata = $root.vtctldata = (() => {
object.skip_no_primary = message.skip_no_primary;
if (message.include_vschema != null && message.hasOwnProperty("include_vschema"))
object.include_vschema = message.include_vschema;
+ if (message.shards && message.shards.length) {
+ object.shards = [];
+ for (let j = 0; j < message.shards.length; ++j)
+ object.shards[j] = message.shards[j];
+ }
return object;
};
@@ -187339,12 +190092,7 @@ export const vtctldata = $root.vtctldata = (() => {
// OneOf field names bound to virtual getters and setters
let $oneOfFields;
- /**
- * VDiffCreateRequest _auto_start.
- * @member {"auto_start"|undefined} _auto_start
- * @memberof vtctldata.VDiffCreateRequest
- * @instance
- */
+ // Virtual OneOf for proto3 optional field
Object.defineProperty(VDiffCreateRequest.prototype, "_auto_start", {
get: $util.oneOfGetter($oneOfFields = ["auto_start"]),
set: $util.oneOfSetter($oneOfFields)