-
- Cluster: {clusterID}
-
-
- Target keyspace:{' '}
-
- {keyspace}
-
-
+
+
+
+ Cluster: {clusterID}
+
+
+ Target keyspace:{' '}
+
+ {keyspace}
+
+
+
+
diff --git a/web/vtadmin/src/components/routes/workflow/WorkflowStreams.tsx b/web/vtadmin/src/components/routes/workflow/WorkflowStreams.tsx
index 6c9bcae2dfa..2d86e1141a6 100644
--- a/web/vtadmin/src/components/routes/workflow/WorkflowStreams.tsx
+++ b/web/vtadmin/src/components/routes/workflow/WorkflowStreams.tsx
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-import { orderBy, groupBy } from 'lodash-es';
+import { groupBy, orderBy } from 'lodash-es';
import React, { useMemo } from 'react';
import { Link } from 'react-router-dom';
import { useWorkflow } from '../../../hooks/api';
import { formatAlias } from '../../../util/tablets';
-import { formatDateTime } from '../../../util/time';
-import { getStreams, formatStreamKey, getStreamSource, getStreamTarget } from '../../../util/workflows';
+import { formatDateTime, formatRelativeTime } from '../../../util/time';
+import { formatStreamKey, getStreams, getStreamSource, getStreamTarget } from '../../../util/workflows';
import { DataCell } from '../../dataTable/DataCell';
import { DataTable } from '../../dataTable/DataTable';
import { TabletLink } from '../../links/TabletLink';
@@ -29,6 +29,7 @@ import { StreamStatePip } from '../../pips/StreamStatePip';
import { WorkflowStreamsLagChart } from '../../charts/WorkflowStreamsLagChart';
import { ShardLink } from '../../links/ShardLink';
import { env } from '../../../util/env';
+import { ThrottleThresholdSeconds } from '../Workflows';
interface Props {
clusterID: string;
@@ -61,17 +62,25 @@ export const WorkflowStreams = ({ clusterID, keyspace, name }: Props) => {
const source = getStreamSource(row);
const target = getStreamTarget(row, keyspace);
-
+ var isThrottled =
+ Number(row?.throttler_status?.time_throttled?.seconds) > Date.now() / 1000 - ThrottleThresholdSeconds;
+ const rowState = isThrottled ? 'Throttled' : row.state;
return (
- {' '}
+ {' '}
{row.key}
Updated {formatDateTime(row.time_updated?.seconds)}
+ {isThrottled ? (
+
+ Throttled:
+ in {row.throttler_status?.component_throttled}
+
+ ) : null}
{source ? (
@@ -114,7 +123,9 @@ export const WorkflowStreams = ({ clusterID, keyspace, name }: Props) => {
>
)}
- Streams
+
+ Streams
+
{/* TODO(doeg): add a protobuf enum for this (https://github.com/vitessio/vitess/projects/12#card-60190340) */}
{['Error', 'Copying', 'Running', 'Stopped'].map((streamState) => {
if (!Array.isArray(streamsByState[streamState])) {
diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts
index 0e232701200..5edcd723c76 100644
--- a/web/vtadmin/src/proto/vtadmin.d.ts
+++ b/web/vtadmin/src/proto/vtadmin.d.ts
@@ -40117,6 +40117,212 @@ export namespace query {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ /** Properties of an UnresolvedTransactionsRequest. */
+ interface IUnresolvedTransactionsRequest {
+
+ /** UnresolvedTransactionsRequest effective_caller_id */
+ effective_caller_id?: (vtrpc.ICallerID|null);
+
+ /** UnresolvedTransactionsRequest immediate_caller_id */
+ immediate_caller_id?: (query.IVTGateCallerID|null);
+
+ /** UnresolvedTransactionsRequest target */
+ target?: (query.ITarget|null);
+ }
+
+ /** Represents an UnresolvedTransactionsRequest. */
+ class UnresolvedTransactionsRequest implements IUnresolvedTransactionsRequest {
+
+ /**
+ * Constructs a new UnresolvedTransactionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: query.IUnresolvedTransactionsRequest);
+
+ /** UnresolvedTransactionsRequest effective_caller_id. */
+ public effective_caller_id?: (vtrpc.ICallerID|null);
+
+ /** UnresolvedTransactionsRequest immediate_caller_id. */
+ public immediate_caller_id?: (query.IVTGateCallerID|null);
+
+ /** UnresolvedTransactionsRequest target. */
+ public target?: (query.ITarget|null);
+
+ /**
+ * Creates a new UnresolvedTransactionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UnresolvedTransactionsRequest instance
+ */
+ public static create(properties?: query.IUnresolvedTransactionsRequest): query.UnresolvedTransactionsRequest;
+
+ /**
+ * Encodes the specified UnresolvedTransactionsRequest message. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages.
+ * @param message UnresolvedTransactionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages.
+ * @param message UnresolvedTransactionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UnresolvedTransactionsRequest
+ * @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): query.UnresolvedTransactionsRequest;
+
+ /**
+ * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UnresolvedTransactionsRequest
+ * @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)): query.UnresolvedTransactionsRequest;
+
+ /**
+ * Verifies an UnresolvedTransactionsRequest 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 an UnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UnresolvedTransactionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsRequest;
+
+ /**
+ * Creates a plain object from an UnresolvedTransactionsRequest message. Also converts values to other types if specified.
+ * @param message UnresolvedTransactionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: query.UnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UnresolvedTransactionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UnresolvedTransactionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UnresolvedTransactionsResponse. */
+ interface IUnresolvedTransactionsResponse {
+
+ /** UnresolvedTransactionsResponse transactions */
+ transactions?: (query.ITransactionMetadata[]|null);
+ }
+
+ /** Represents an UnresolvedTransactionsResponse. */
+ class UnresolvedTransactionsResponse implements IUnresolvedTransactionsResponse {
+
+ /**
+ * Constructs a new UnresolvedTransactionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: query.IUnresolvedTransactionsResponse);
+
+ /** UnresolvedTransactionsResponse transactions. */
+ public transactions: query.ITransactionMetadata[];
+
+ /**
+ * Creates a new UnresolvedTransactionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UnresolvedTransactionsResponse instance
+ */
+ public static create(properties?: query.IUnresolvedTransactionsResponse): query.UnresolvedTransactionsResponse;
+
+ /**
+ * Encodes the specified UnresolvedTransactionsResponse message. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages.
+ * @param message UnresolvedTransactionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages.
+ * @param message UnresolvedTransactionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UnresolvedTransactionsResponse
+ * @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): query.UnresolvedTransactionsResponse;
+
+ /**
+ * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UnresolvedTransactionsResponse
+ * @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)): query.UnresolvedTransactionsResponse;
+
+ /**
+ * Verifies an UnresolvedTransactionsResponse 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 an UnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UnresolvedTransactionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsResponse;
+
+ /**
+ * Creates a plain object from an UnresolvedTransactionsResponse message. Also converts values to other types if specified.
+ * @param message UnresolvedTransactionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: query.UnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UnresolvedTransactionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UnresolvedTransactionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
/** Properties of a BeginExecuteRequest. */
interface IBeginExecuteRequest {
@@ -42403,6 +42609,9 @@ export namespace query {
/** RealtimeStats udfs_changed */
udfs_changed?: (boolean|null);
+
+ /** RealtimeStats tx_unresolved */
+ tx_unresolved?: (boolean|null);
}
/** Represents a RealtimeStats. */
@@ -42441,6 +42650,9 @@ export namespace query {
/** RealtimeStats udfs_changed. */
public udfs_changed: boolean;
+ /** RealtimeStats tx_unresolved. */
+ public tx_unresolved: boolean;
+
/**
* Creates a new RealtimeStats instance using the specified properties.
* @param [properties] Properties to set
@@ -42759,8 +42971,8 @@ export namespace query {
enum TransactionState {
UNKNOWN = 0,
PREPARE = 1,
- COMMIT = 2,
- ROLLBACK = 3
+ ROLLBACK = 2,
+ COMMIT = 3
}
/** Properties of a TransactionMetadata. */
@@ -45033,6 +45245,9 @@ export namespace vschema {
/** SrvVSchema keyspace_routing_rules */
keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null);
+
+ /** SrvVSchema mirror_rules */
+ mirror_rules?: (vschema.IMirrorRules|null);
}
/** Represents a SrvVSchema. */
@@ -45056,6 +45271,9 @@ export namespace vschema {
/** SrvVSchema keyspace_routing_rules. */
public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null);
+ /** SrvVSchema mirror_rules. */
+ public mirror_rules?: (vschema.IMirrorRules|null);
+
/**
* Creates a new SrvVSchema instance using the specified properties.
* @param [properties] Properties to set
@@ -45539,6 +45757,212 @@ export namespace vschema {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+
+ /** Properties of a MirrorRules. */
+ interface IMirrorRules {
+
+ /** MirrorRules rules */
+ rules?: (vschema.IMirrorRule[]|null);
+ }
+
+ /** Represents a MirrorRules. */
+ class MirrorRules implements IMirrorRules {
+
+ /**
+ * Constructs a new MirrorRules.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vschema.IMirrorRules);
+
+ /** MirrorRules rules. */
+ public rules: vschema.IMirrorRule[];
+
+ /**
+ * Creates a new MirrorRules instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MirrorRules instance
+ */
+ public static create(properties?: vschema.IMirrorRules): vschema.MirrorRules;
+
+ /**
+ * Encodes the specified MirrorRules message. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages.
+ * @param message MirrorRules message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MirrorRules message, length delimited. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages.
+ * @param message MirrorRules message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MirrorRules message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MirrorRules
+ * @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): vschema.MirrorRules;
+
+ /**
+ * Decodes a MirrorRules message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MirrorRules
+ * @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)): vschema.MirrorRules;
+
+ /**
+ * Verifies a MirrorRules 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 MirrorRules message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MirrorRules
+ */
+ public static fromObject(object: { [k: string]: any }): vschema.MirrorRules;
+
+ /**
+ * Creates a plain object from a MirrorRules message. Also converts values to other types if specified.
+ * @param message MirrorRules
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vschema.MirrorRules, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MirrorRules to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MirrorRules
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MirrorRule. */
+ interface IMirrorRule {
+
+ /** MirrorRule from_table */
+ from_table?: (string|null);
+
+ /** MirrorRule to_table */
+ to_table?: (string|null);
+
+ /** MirrorRule percent */
+ percent?: (number|null);
+ }
+
+ /** Represents a MirrorRule. */
+ class MirrorRule implements IMirrorRule {
+
+ /**
+ * Constructs a new MirrorRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vschema.IMirrorRule);
+
+ /** MirrorRule from_table. */
+ public from_table: string;
+
+ /** MirrorRule to_table. */
+ public to_table: string;
+
+ /** MirrorRule percent. */
+ public percent: number;
+
+ /**
+ * Creates a new MirrorRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MirrorRule instance
+ */
+ public static create(properties?: vschema.IMirrorRule): vschema.MirrorRule;
+
+ /**
+ * Encodes the specified MirrorRule message. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages.
+ * @param message MirrorRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MirrorRule message, length delimited. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages.
+ * @param message MirrorRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MirrorRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MirrorRule
+ * @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): vschema.MirrorRule;
+
+ /**
+ * Decodes a MirrorRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MirrorRule
+ * @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)): vschema.MirrorRule;
+
+ /**
+ * Verifies a MirrorRule 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 MirrorRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MirrorRule
+ */
+ public static fromObject(object: { [k: string]: any }): vschema.MirrorRule;
+
+ /**
+ * Creates a plain object from a MirrorRule message. Also converts values to other types if specified.
+ * @param message MirrorRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vschema.MirrorRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MirrorRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MirrorRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
}
/** Namespace vtctldata. */
@@ -50238,26 +50662,11 @@ export namespace vtctldata {
/** Properties of a CheckThrottlerResponse. */
interface ICheckThrottlerResponse {
- /** CheckThrottlerResponse status_code */
- status_code?: (number|null);
-
- /** CheckThrottlerResponse value */
- value?: (number|null);
-
- /** CheckThrottlerResponse threshold */
- threshold?: (number|null);
-
- /** CheckThrottlerResponse error */
- error?: (string|null);
-
- /** CheckThrottlerResponse message */
- message?: (string|null);
-
- /** CheckThrottlerResponse recently_checked */
- recently_checked?: (boolean|null);
+ /** CheckThrottlerResponse tablet_alias */
+ tablet_alias?: (topodata.ITabletAlias|null);
- /** CheckThrottlerResponse metrics */
- metrics?: ({ [k: string]: vtctldata.CheckThrottlerResponse.IMetric }|null);
+ /** CheckThrottlerResponse Check */
+ Check?: (tabletmanagerdata.ICheckThrottlerResponse|null);
}
/** Represents a CheckThrottlerResponse. */
@@ -50269,26 +50678,11 @@ export namespace vtctldata {
*/
constructor(properties?: vtctldata.ICheckThrottlerResponse);
- /** CheckThrottlerResponse status_code. */
- public status_code: number;
-
- /** CheckThrottlerResponse value. */
- public value: number;
-
- /** CheckThrottlerResponse threshold. */
- public threshold: number;
-
- /** CheckThrottlerResponse error. */
- public error: string;
-
- /** CheckThrottlerResponse message. */
- public message: string;
-
- /** CheckThrottlerResponse recently_checked. */
- public recently_checked: boolean;
+ /** CheckThrottlerResponse tablet_alias. */
+ public tablet_alias?: (topodata.ITabletAlias|null);
- /** CheckThrottlerResponse metrics. */
- public metrics: { [k: string]: vtctldata.CheckThrottlerResponse.IMetric };
+ /** CheckThrottlerResponse Check. */
+ public Check?: (tabletmanagerdata.ICheckThrottlerResponse|null);
/**
* Creates a new CheckThrottlerResponse instance using the specified properties.
@@ -50368,142 +50762,6 @@ export namespace vtctldata {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace CheckThrottlerResponse {
-
- /** Properties of a Metric. */
- interface IMetric {
-
- /** Metric name */
- name?: (string|null);
-
- /** Metric status_code */
- status_code?: (number|null);
-
- /** Metric value */
- value?: (number|null);
-
- /** Metric threshold */
- threshold?: (number|null);
-
- /** Metric error */
- error?: (string|null);
-
- /** Metric message */
- message?: (string|null);
-
- /** Metric scope */
- scope?: (string|null);
- }
-
- /** Represents a Metric. */
- class Metric implements IMetric {
-
- /**
- * Constructs a new Metric.
- * @param [properties] Properties to set
- */
- constructor(properties?: vtctldata.CheckThrottlerResponse.IMetric);
-
- /** Metric name. */
- public name: string;
-
- /** Metric status_code. */
- public status_code: number;
-
- /** Metric value. */
- public value: number;
-
- /** Metric threshold. */
- public threshold: number;
-
- /** Metric error. */
- public error: string;
-
- /** Metric message. */
- public message: string;
-
- /** Metric scope. */
- public scope: string;
-
- /**
- * Creates a new Metric instance using the specified properties.
- * @param [properties] Properties to set
- * @returns Metric instance
- */
- public static create(properties?: vtctldata.CheckThrottlerResponse.IMetric): vtctldata.CheckThrottlerResponse.Metric;
-
- /**
- * Encodes the specified Metric message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.Metric.verify|verify} messages.
- * @param message Metric message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: vtctldata.CheckThrottlerResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified Metric message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerResponse.Metric.verify|verify} messages.
- * @param message Metric message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: vtctldata.CheckThrottlerResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes a Metric message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns Metric
- * @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.CheckThrottlerResponse.Metric;
-
- /**
- * Decodes a Metric message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns Metric
- * @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.CheckThrottlerResponse.Metric;
-
- /**
- * Verifies a Metric 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 Metric message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns Metric
- */
- public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerResponse.Metric;
-
- /**
- * Creates a plain object from a Metric message. Also converts values to other types if specified.
- * @param message Metric
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: vtctldata.CheckThrottlerResponse.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this Metric to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
-
- /**
- * Gets the default type url for Metric
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
- }
-
/** Properties of a CleanupSchemaMigrationRequest. */
interface ICleanupSchemaMigrationRequest {
@@ -58672,59 +58930,8 @@ export namespace vtctldata {
/** Properties of a GetThrottlerStatusResponse. */
interface IGetThrottlerStatusResponse {
- /** GetThrottlerStatusResponse tablet_alias */
- tablet_alias?: (string|null);
-
- /** GetThrottlerStatusResponse keyspace */
- keyspace?: (string|null);
-
- /** GetThrottlerStatusResponse shard */
- shard?: (string|null);
-
- /** GetThrottlerStatusResponse is_leader */
- is_leader?: (boolean|null);
-
- /** GetThrottlerStatusResponse is_open */
- is_open?: (boolean|null);
-
- /** GetThrottlerStatusResponse is_enabled */
- is_enabled?: (boolean|null);
-
- /** GetThrottlerStatusResponse is_dormant */
- is_dormant?: (boolean|null);
-
- /** GetThrottlerStatusResponse lag_metric_query */
- lag_metric_query?: (string|null);
-
- /** GetThrottlerStatusResponse custom_metric_query */
- custom_metric_query?: (string|null);
-
- /** GetThrottlerStatusResponse default_threshold */
- default_threshold?: (number|null);
-
- /** GetThrottlerStatusResponse metric_name_used_as_default */
- metric_name_used_as_default?: (string|null);
-
- /** GetThrottlerStatusResponse aggregated_metrics */
- aggregated_metrics?: ({ [k: string]: vtctldata.GetThrottlerStatusResponse.IMetricResult }|null);
-
- /** GetThrottlerStatusResponse metric_thresholds */
- metric_thresholds?: ({ [k: string]: number }|null);
-
- /** GetThrottlerStatusResponse metrics_health */
- metrics_health?: ({ [k: string]: vtctldata.GetThrottlerStatusResponse.IMetricHealth }|null);
-
- /** GetThrottlerStatusResponse throttled_apps */
- throttled_apps?: ({ [k: string]: topodata.IThrottledAppRule }|null);
-
- /** GetThrottlerStatusResponse app_checked_metrics */
- app_checked_metrics?: ({ [k: string]: string }|null);
-
- /** GetThrottlerStatusResponse recently_checked */
- recently_checked?: (boolean|null);
-
- /** GetThrottlerStatusResponse recent_apps */
- recent_apps?: ({ [k: string]: vtctldata.GetThrottlerStatusResponse.IRecentApp }|null);
+ /** GetThrottlerStatusResponse status */
+ status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null);
}
/** Represents a GetThrottlerStatusResponse. */
@@ -58736,59 +58943,8 @@ export namespace vtctldata {
*/
constructor(properties?: vtctldata.IGetThrottlerStatusResponse);
- /** GetThrottlerStatusResponse tablet_alias. */
- public tablet_alias: string;
-
- /** GetThrottlerStatusResponse keyspace. */
- public keyspace: string;
-
- /** GetThrottlerStatusResponse shard. */
- public shard: string;
-
- /** GetThrottlerStatusResponse is_leader. */
- public is_leader: boolean;
-
- /** GetThrottlerStatusResponse is_open. */
- public is_open: boolean;
-
- /** GetThrottlerStatusResponse is_enabled. */
- public is_enabled: boolean;
-
- /** GetThrottlerStatusResponse is_dormant. */
- public is_dormant: boolean;
-
- /** GetThrottlerStatusResponse lag_metric_query. */
- public lag_metric_query: string;
-
- /** GetThrottlerStatusResponse custom_metric_query. */
- public custom_metric_query: string;
-
- /** GetThrottlerStatusResponse default_threshold. */
- public default_threshold: number;
-
- /** GetThrottlerStatusResponse metric_name_used_as_default. */
- public metric_name_used_as_default: string;
-
- /** GetThrottlerStatusResponse aggregated_metrics. */
- public aggregated_metrics: { [k: string]: vtctldata.GetThrottlerStatusResponse.IMetricResult };
-
- /** GetThrottlerStatusResponse metric_thresholds. */
- public metric_thresholds: { [k: string]: number };
-
- /** GetThrottlerStatusResponse metrics_health. */
- public metrics_health: { [k: string]: vtctldata.GetThrottlerStatusResponse.IMetricHealth };
-
- /** GetThrottlerStatusResponse throttled_apps. */
- public throttled_apps: { [k: string]: topodata.IThrottledAppRule };
-
- /** GetThrottlerStatusResponse app_checked_metrics. */
- public app_checked_metrics: { [k: string]: string };
-
- /** GetThrottlerStatusResponse recently_checked. */
- public recently_checked: boolean;
-
- /** GetThrottlerStatusResponse recent_apps. */
- public recent_apps: { [k: string]: vtctldata.GetThrottlerStatusResponse.IRecentApp };
+ /** GetThrottlerStatusResponse status. */
+ public status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null);
/**
* Creates a new GetThrottlerStatusResponse instance using the specified properties.
@@ -58868,318 +59024,6 @@ export namespace vtctldata {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace GetThrottlerStatusResponse {
-
- /** Properties of a MetricResult. */
- interface IMetricResult {
-
- /** MetricResult value */
- value?: (number|null);
-
- /** MetricResult error */
- error?: (string|null);
- }
-
- /** Represents a MetricResult. */
- class MetricResult implements IMetricResult {
-
- /**
- * Constructs a new MetricResult.
- * @param [properties] Properties to set
- */
- constructor(properties?: vtctldata.GetThrottlerStatusResponse.IMetricResult);
-
- /** MetricResult value. */
- public value: number;
-
- /** MetricResult error. */
- public error: string;
-
- /**
- * Creates a new MetricResult instance using the specified properties.
- * @param [properties] Properties to set
- * @returns MetricResult instance
- */
- public static create(properties?: vtctldata.GetThrottlerStatusResponse.IMetricResult): vtctldata.GetThrottlerStatusResponse.MetricResult;
-
- /**
- * Encodes the specified MetricResult message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages.
- * @param message MetricResult message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: vtctldata.GetThrottlerStatusResponse.IMetricResult, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages.
- * @param message MetricResult message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: vtctldata.GetThrottlerStatusResponse.IMetricResult, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes a MetricResult message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns MetricResult
- * @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.GetThrottlerStatusResponse.MetricResult;
-
- /**
- * Decodes a MetricResult message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns MetricResult
- * @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.GetThrottlerStatusResponse.MetricResult;
-
- /**
- * Verifies a MetricResult 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 MetricResult message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns MetricResult
- */
- public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse.MetricResult;
-
- /**
- * Creates a plain object from a MetricResult message. Also converts values to other types if specified.
- * @param message MetricResult
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: vtctldata.GetThrottlerStatusResponse.MetricResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this MetricResult to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
-
- /**
- * Gets the default type url for MetricResult
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
-
- /** Properties of a MetricHealth. */
- interface IMetricHealth {
-
- /** MetricHealth last_healthy_at */
- last_healthy_at?: (vttime.ITime|null);
-
- /** MetricHealth seconds_since_last_healthy */
- seconds_since_last_healthy?: (number|Long|null);
- }
-
- /** Represents a MetricHealth. */
- class MetricHealth implements IMetricHealth {
-
- /**
- * Constructs a new MetricHealth.
- * @param [properties] Properties to set
- */
- constructor(properties?: vtctldata.GetThrottlerStatusResponse.IMetricHealth);
-
- /** MetricHealth last_healthy_at. */
- public last_healthy_at?: (vttime.ITime|null);
-
- /** MetricHealth seconds_since_last_healthy. */
- public seconds_since_last_healthy: (number|Long);
-
- /**
- * Creates a new MetricHealth instance using the specified properties.
- * @param [properties] Properties to set
- * @returns MetricHealth instance
- */
- public static create(properties?: vtctldata.GetThrottlerStatusResponse.IMetricHealth): vtctldata.GetThrottlerStatusResponse.MetricHealth;
-
- /**
- * Encodes the specified MetricHealth message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages.
- * @param message MetricHealth message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: vtctldata.GetThrottlerStatusResponse.IMetricHealth, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified MetricHealth message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages.
- * @param message MetricHealth message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: vtctldata.GetThrottlerStatusResponse.IMetricHealth, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes a MetricHealth message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns MetricHealth
- * @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.GetThrottlerStatusResponse.MetricHealth;
-
- /**
- * Decodes a MetricHealth message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns MetricHealth
- * @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.GetThrottlerStatusResponse.MetricHealth;
-
- /**
- * Verifies a MetricHealth 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 MetricHealth message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns MetricHealth
- */
- public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse.MetricHealth;
-
- /**
- * Creates a plain object from a MetricHealth message. Also converts values to other types if specified.
- * @param message MetricHealth
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: vtctldata.GetThrottlerStatusResponse.MetricHealth, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this MetricHealth to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
-
- /**
- * Gets the default type url for MetricHealth
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
-
- /** Properties of a RecentApp. */
- interface IRecentApp {
-
- /** RecentApp checked_at */
- checked_at?: (vttime.ITime|null);
-
- /** RecentApp status_code */
- status_code?: (number|null);
- }
-
- /** Represents a RecentApp. */
- class RecentApp implements IRecentApp {
-
- /**
- * Constructs a new RecentApp.
- * @param [properties] Properties to set
- */
- constructor(properties?: vtctldata.GetThrottlerStatusResponse.IRecentApp);
-
- /** RecentApp checked_at. */
- public checked_at?: (vttime.ITime|null);
-
- /** RecentApp status_code. */
- public status_code: number;
-
- /**
- * Creates a new RecentApp instance using the specified properties.
- * @param [properties] Properties to set
- * @returns RecentApp instance
- */
- public static create(properties?: vtctldata.GetThrottlerStatusResponse.IRecentApp): vtctldata.GetThrottlerStatusResponse.RecentApp;
-
- /**
- * Encodes the specified RecentApp message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages.
- * @param message RecentApp message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: vtctldata.GetThrottlerStatusResponse.IRecentApp, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified RecentApp message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages.
- * @param message RecentApp message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: vtctldata.GetThrottlerStatusResponse.IRecentApp, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes a RecentApp message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns RecentApp
- * @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.GetThrottlerStatusResponse.RecentApp;
-
- /**
- * Decodes a RecentApp message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns RecentApp
- * @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.GetThrottlerStatusResponse.RecentApp;
-
- /**
- * Verifies a RecentApp 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 RecentApp message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns RecentApp
- */
- public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse.RecentApp;
-
- /**
- * Creates a plain object from a RecentApp message. Also converts values to other types if specified.
- * @param message RecentApp
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: vtctldata.GetThrottlerStatusResponse.RecentApp, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this RecentApp to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
-
- /**
- * Gets the default type url for RecentApp
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
- }
-
/** Properties of a GetTopologyPathRequest. */
interface IGetTopologyPathRequest {
@@ -74006,4 +73850,416 @@ export namespace vtctldata {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
+
+ /** Properties of a GetMirrorRulesRequest. */
+ interface IGetMirrorRulesRequest {
+ }
+
+ /** Represents a GetMirrorRulesRequest. */
+ class GetMirrorRulesRequest implements IGetMirrorRulesRequest {
+
+ /**
+ * Constructs a new GetMirrorRulesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.IGetMirrorRulesRequest);
+
+ /**
+ * Creates a new GetMirrorRulesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetMirrorRulesRequest instance
+ */
+ public static create(properties?: vtctldata.IGetMirrorRulesRequest): vtctldata.GetMirrorRulesRequest;
+
+ /**
+ * Encodes the specified GetMirrorRulesRequest message. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages.
+ * @param message GetMirrorRulesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetMirrorRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages.
+ * @param message GetMirrorRulesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetMirrorRulesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetMirrorRulesRequest
+ * @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.GetMirrorRulesRequest;
+
+ /**
+ * Decodes a GetMirrorRulesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetMirrorRulesRequest
+ * @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.GetMirrorRulesRequest;
+
+ /**
+ * Verifies a GetMirrorRulesRequest 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 GetMirrorRulesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetMirrorRulesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesRequest;
+
+ /**
+ * Creates a plain object from a GetMirrorRulesRequest message. Also converts values to other types if specified.
+ * @param message GetMirrorRulesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.GetMirrorRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetMirrorRulesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetMirrorRulesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetMirrorRulesResponse. */
+ interface IGetMirrorRulesResponse {
+
+ /** GetMirrorRulesResponse mirror_rules */
+ mirror_rules?: (vschema.IMirrorRules|null);
+ }
+
+ /** Represents a GetMirrorRulesResponse. */
+ class GetMirrorRulesResponse implements IGetMirrorRulesResponse {
+
+ /**
+ * Constructs a new GetMirrorRulesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.IGetMirrorRulesResponse);
+
+ /** GetMirrorRulesResponse mirror_rules. */
+ public mirror_rules?: (vschema.IMirrorRules|null);
+
+ /**
+ * Creates a new GetMirrorRulesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetMirrorRulesResponse instance
+ */
+ public static create(properties?: vtctldata.IGetMirrorRulesResponse): vtctldata.GetMirrorRulesResponse;
+
+ /**
+ * Encodes the specified GetMirrorRulesResponse message. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages.
+ * @param message GetMirrorRulesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetMirrorRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages.
+ * @param message GetMirrorRulesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetMirrorRulesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetMirrorRulesResponse
+ * @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.GetMirrorRulesResponse;
+
+ /**
+ * Decodes a GetMirrorRulesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetMirrorRulesResponse
+ * @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.GetMirrorRulesResponse;
+
+ /**
+ * Verifies a GetMirrorRulesResponse 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 GetMirrorRulesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetMirrorRulesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesResponse;
+
+ /**
+ * Creates a plain object from a GetMirrorRulesResponse message. Also converts values to other types if specified.
+ * @param message GetMirrorRulesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.GetMirrorRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetMirrorRulesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetMirrorRulesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WorkflowMirrorTrafficRequest. */
+ interface IWorkflowMirrorTrafficRequest {
+
+ /** WorkflowMirrorTrafficRequest keyspace */
+ keyspace?: (string|null);
+
+ /** WorkflowMirrorTrafficRequest workflow */
+ workflow?: (string|null);
+
+ /** WorkflowMirrorTrafficRequest tablet_types */
+ tablet_types?: (topodata.TabletType[]|null);
+
+ /** WorkflowMirrorTrafficRequest percent */
+ percent?: (number|null);
+ }
+
+ /** Represents a WorkflowMirrorTrafficRequest. */
+ class WorkflowMirrorTrafficRequest implements IWorkflowMirrorTrafficRequest {
+
+ /**
+ * Constructs a new WorkflowMirrorTrafficRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.IWorkflowMirrorTrafficRequest);
+
+ /** WorkflowMirrorTrafficRequest keyspace. */
+ public keyspace: string;
+
+ /** WorkflowMirrorTrafficRequest workflow. */
+ public workflow: string;
+
+ /** WorkflowMirrorTrafficRequest tablet_types. */
+ public tablet_types: topodata.TabletType[];
+
+ /** WorkflowMirrorTrafficRequest percent. */
+ public percent: number;
+
+ /**
+ * Creates a new WorkflowMirrorTrafficRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WorkflowMirrorTrafficRequest instance
+ */
+ public static create(properties?: vtctldata.IWorkflowMirrorTrafficRequest): vtctldata.WorkflowMirrorTrafficRequest;
+
+ /**
+ * Encodes the specified WorkflowMirrorTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages.
+ * @param message WorkflowMirrorTrafficRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WorkflowMirrorTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages.
+ * @param message WorkflowMirrorTrafficRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WorkflowMirrorTrafficRequest
+ * @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.WorkflowMirrorTrafficRequest;
+
+ /**
+ * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WorkflowMirrorTrafficRequest
+ * @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.WorkflowMirrorTrafficRequest;
+
+ /**
+ * Verifies a WorkflowMirrorTrafficRequest 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 WorkflowMirrorTrafficRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WorkflowMirrorTrafficRequest
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficRequest;
+
+ /**
+ * Creates a plain object from a WorkflowMirrorTrafficRequest message. Also converts values to other types if specified.
+ * @param message WorkflowMirrorTrafficRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.WorkflowMirrorTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WorkflowMirrorTrafficRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WorkflowMirrorTrafficRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WorkflowMirrorTrafficResponse. */
+ interface IWorkflowMirrorTrafficResponse {
+
+ /** WorkflowMirrorTrafficResponse summary */
+ summary?: (string|null);
+
+ /** WorkflowMirrorTrafficResponse start_state */
+ start_state?: (string|null);
+
+ /** WorkflowMirrorTrafficResponse current_state */
+ current_state?: (string|null);
+ }
+
+ /** Represents a WorkflowMirrorTrafficResponse. */
+ class WorkflowMirrorTrafficResponse implements IWorkflowMirrorTrafficResponse {
+
+ /**
+ * Constructs a new WorkflowMirrorTrafficResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: vtctldata.IWorkflowMirrorTrafficResponse);
+
+ /** WorkflowMirrorTrafficResponse summary. */
+ public summary: string;
+
+ /** WorkflowMirrorTrafficResponse start_state. */
+ public start_state: string;
+
+ /** WorkflowMirrorTrafficResponse current_state. */
+ public current_state: string;
+
+ /**
+ * Creates a new WorkflowMirrorTrafficResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WorkflowMirrorTrafficResponse instance
+ */
+ public static create(properties?: vtctldata.IWorkflowMirrorTrafficResponse): vtctldata.WorkflowMirrorTrafficResponse;
+
+ /**
+ * Encodes the specified WorkflowMirrorTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages.
+ * @param message WorkflowMirrorTrafficResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WorkflowMirrorTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages.
+ * @param message WorkflowMirrorTrafficResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WorkflowMirrorTrafficResponse
+ * @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.WorkflowMirrorTrafficResponse;
+
+ /**
+ * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WorkflowMirrorTrafficResponse
+ * @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.WorkflowMirrorTrafficResponse;
+
+ /**
+ * Verifies a WorkflowMirrorTrafficResponse 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 WorkflowMirrorTrafficResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WorkflowMirrorTrafficResponse
+ */
+ public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficResponse;
+
+ /**
+ * Creates a plain object from a WorkflowMirrorTrafficResponse message. Also converts values to other types if specified.
+ * @param message WorkflowMirrorTrafficResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: vtctldata.WorkflowMirrorTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WorkflowMirrorTrafficResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WorkflowMirrorTrafficResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
}
diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js
index 4c5caea1f6b..33fa408496d 100644
--- a/web/vtadmin/src/proto/vtadmin.js
+++ b/web/vtadmin/src/proto/vtadmin.js
@@ -96760,6 +96760,495 @@ export const query = $root.query = (() => {
return ReadTransactionResponse;
})();
+ query.UnresolvedTransactionsRequest = (function() {
+
+ /**
+ * Properties of an UnresolvedTransactionsRequest.
+ * @memberof query
+ * @interface IUnresolvedTransactionsRequest
+ * @property {vtrpc.ICallerID|null} [effective_caller_id] UnresolvedTransactionsRequest effective_caller_id
+ * @property {query.IVTGateCallerID|null} [immediate_caller_id] UnresolvedTransactionsRequest immediate_caller_id
+ * @property {query.ITarget|null} [target] UnresolvedTransactionsRequest target
+ */
+
+ /**
+ * Constructs a new UnresolvedTransactionsRequest.
+ * @memberof query
+ * @classdesc Represents an UnresolvedTransactionsRequest.
+ * @implements IUnresolvedTransactionsRequest
+ * @constructor
+ * @param {query.IUnresolvedTransactionsRequest=} [properties] Properties to set
+ */
+ function UnresolvedTransactionsRequest(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]];
+ }
+
+ /**
+ * UnresolvedTransactionsRequest effective_caller_id.
+ * @member {vtrpc.ICallerID|null|undefined} effective_caller_id
+ * @memberof query.UnresolvedTransactionsRequest
+ * @instance
+ */
+ UnresolvedTransactionsRequest.prototype.effective_caller_id = null;
+
+ /**
+ * UnresolvedTransactionsRequest immediate_caller_id.
+ * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id
+ * @memberof query.UnresolvedTransactionsRequest
+ * @instance
+ */
+ UnresolvedTransactionsRequest.prototype.immediate_caller_id = null;
+
+ /**
+ * UnresolvedTransactionsRequest target.
+ * @member {query.ITarget|null|undefined} target
+ * @memberof query.UnresolvedTransactionsRequest
+ * @instance
+ */
+ UnresolvedTransactionsRequest.prototype.target = null;
+
+ /**
+ * Creates a new UnresolvedTransactionsRequest instance using the specified properties.
+ * @function create
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {query.IUnresolvedTransactionsRequest=} [properties] Properties to set
+ * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest instance
+ */
+ UnresolvedTransactionsRequest.create = function create(properties) {
+ return new UnresolvedTransactionsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UnresolvedTransactionsRequest message. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {query.IUnresolvedTransactionsRequest} message UnresolvedTransactionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UnresolvedTransactionsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id"))
+ $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id"))
+ $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {query.IUnresolvedTransactionsRequest} message UnresolvedTransactionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UnresolvedTransactionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UnresolvedTransactionsRequest.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.query.UnresolvedTransactionsRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.target = $root.query.Target.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UnresolvedTransactionsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UnresolvedTransactionsRequest message.
+ * @function verify
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UnresolvedTransactionsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) {
+ let error = $root.vtrpc.CallerID.verify(message.effective_caller_id);
+ if (error)
+ return "effective_caller_id." + error;
+ }
+ if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) {
+ let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id);
+ if (error)
+ return "immediate_caller_id." + error;
+ }
+ if (message.target != null && message.hasOwnProperty("target")) {
+ let error = $root.query.Target.verify(message.target);
+ if (error)
+ return "target." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest
+ */
+ UnresolvedTransactionsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.query.UnresolvedTransactionsRequest)
+ return object;
+ let message = new $root.query.UnresolvedTransactionsRequest();
+ if (object.effective_caller_id != null) {
+ if (typeof object.effective_caller_id !== "object")
+ throw TypeError(".query.UnresolvedTransactionsRequest.effective_caller_id: object expected");
+ message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id);
+ }
+ if (object.immediate_caller_id != null) {
+ if (typeof object.immediate_caller_id !== "object")
+ throw TypeError(".query.UnresolvedTransactionsRequest.immediate_caller_id: object expected");
+ message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id);
+ }
+ if (object.target != null) {
+ if (typeof object.target !== "object")
+ throw TypeError(".query.UnresolvedTransactionsRequest.target: object expected");
+ message.target = $root.query.Target.fromObject(object.target);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UnresolvedTransactionsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {query.UnresolvedTransactionsRequest} message UnresolvedTransactionsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UnresolvedTransactionsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults) {
+ object.effective_caller_id = null;
+ object.immediate_caller_id = null;
+ object.target = null;
+ }
+ if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id"))
+ object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options);
+ if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id"))
+ object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options);
+ if (message.target != null && message.hasOwnProperty("target"))
+ object.target = $root.query.Target.toObject(message.target, options);
+ return object;
+ };
+
+ /**
+ * Converts this UnresolvedTransactionsRequest to JSON.
+ * @function toJSON
+ * @memberof query.UnresolvedTransactionsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UnresolvedTransactionsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UnresolvedTransactionsRequest
+ * @function getTypeUrl
+ * @memberof query.UnresolvedTransactionsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UnresolvedTransactionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/query.UnresolvedTransactionsRequest";
+ };
+
+ return UnresolvedTransactionsRequest;
+ })();
+
+ query.UnresolvedTransactionsResponse = (function() {
+
+ /**
+ * Properties of an UnresolvedTransactionsResponse.
+ * @memberof query
+ * @interface IUnresolvedTransactionsResponse
+ * @property {Array.|null} [transactions] UnresolvedTransactionsResponse transactions
+ */
+
+ /**
+ * Constructs a new UnresolvedTransactionsResponse.
+ * @memberof query
+ * @classdesc Represents an UnresolvedTransactionsResponse.
+ * @implements IUnresolvedTransactionsResponse
+ * @constructor
+ * @param {query.IUnresolvedTransactionsResponse=} [properties] Properties to set
+ */
+ function UnresolvedTransactionsResponse(properties) {
+ this.transactions = [];
+ 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]];
+ }
+
+ /**
+ * UnresolvedTransactionsResponse transactions.
+ * @member {Array.} transactions
+ * @memberof query.UnresolvedTransactionsResponse
+ * @instance
+ */
+ UnresolvedTransactionsResponse.prototype.transactions = $util.emptyArray;
+
+ /**
+ * Creates a new UnresolvedTransactionsResponse instance using the specified properties.
+ * @function create
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {query.IUnresolvedTransactionsResponse=} [properties] Properties to set
+ * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse instance
+ */
+ UnresolvedTransactionsResponse.create = function create(properties) {
+ return new UnresolvedTransactionsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified UnresolvedTransactionsResponse message. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {query.IUnresolvedTransactionsResponse} message UnresolvedTransactionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UnresolvedTransactionsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.transactions != null && message.transactions.length)
+ for (let i = 0; i < message.transactions.length; ++i)
+ $root.query.TransactionMetadata.encode(message.transactions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {query.IUnresolvedTransactionsResponse} message UnresolvedTransactionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UnresolvedTransactionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UnresolvedTransactionsResponse.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.query.UnresolvedTransactionsResponse();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.transactions && message.transactions.length))
+ message.transactions = [];
+ message.transactions.push($root.query.TransactionMetadata.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UnresolvedTransactionsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UnresolvedTransactionsResponse message.
+ * @function verify
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UnresolvedTransactionsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.transactions != null && message.hasOwnProperty("transactions")) {
+ if (!Array.isArray(message.transactions))
+ return "transactions: array expected";
+ for (let i = 0; i < message.transactions.length; ++i) {
+ let error = $root.query.TransactionMetadata.verify(message.transactions[i]);
+ if (error)
+ return "transactions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse
+ */
+ UnresolvedTransactionsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.query.UnresolvedTransactionsResponse)
+ return object;
+ let message = new $root.query.UnresolvedTransactionsResponse();
+ if (object.transactions) {
+ if (!Array.isArray(object.transactions))
+ throw TypeError(".query.UnresolvedTransactionsResponse.transactions: array expected");
+ message.transactions = [];
+ for (let i = 0; i < object.transactions.length; ++i) {
+ if (typeof object.transactions[i] !== "object")
+ throw TypeError(".query.UnresolvedTransactionsResponse.transactions: object expected");
+ message.transactions[i] = $root.query.TransactionMetadata.fromObject(object.transactions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UnresolvedTransactionsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {query.UnresolvedTransactionsResponse} message UnresolvedTransactionsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UnresolvedTransactionsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.arrays || options.defaults)
+ object.transactions = [];
+ if (message.transactions && message.transactions.length) {
+ object.transactions = [];
+ for (let j = 0; j < message.transactions.length; ++j)
+ object.transactions[j] = $root.query.TransactionMetadata.toObject(message.transactions[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this UnresolvedTransactionsResponse to JSON.
+ * @function toJSON
+ * @memberof query.UnresolvedTransactionsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UnresolvedTransactionsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UnresolvedTransactionsResponse
+ * @function getTypeUrl
+ * @memberof query.UnresolvedTransactionsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UnresolvedTransactionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/query.UnresolvedTransactionsResponse";
+ };
+
+ return UnresolvedTransactionsResponse;
+ })();
+
query.BeginExecuteRequest = (function() {
/**
@@ -102873,6 +103362,7 @@ export const query = $root.query = (() => {
* @property {Array.|null} [table_schema_changed] RealtimeStats table_schema_changed
* @property {Array.|null} [view_schema_changed] RealtimeStats view_schema_changed
* @property {boolean|null} [udfs_changed] RealtimeStats udfs_changed
+ * @property {boolean|null} [tx_unresolved] RealtimeStats tx_unresolved
*/
/**
@@ -102964,6 +103454,14 @@ export const query = $root.query = (() => {
*/
RealtimeStats.prototype.udfs_changed = false;
+ /**
+ * RealtimeStats tx_unresolved.
+ * @member {boolean} tx_unresolved
+ * @memberof query.RealtimeStats
+ * @instance
+ */
+ RealtimeStats.prototype.tx_unresolved = false;
+
/**
* Creates a new RealtimeStats instance using the specified properties.
* @function create
@@ -103008,6 +103506,8 @@ export const query = $root.query = (() => {
writer.uint32(/* id 8, wireType 2 =*/66).string(message.view_schema_changed[i]);
if (message.udfs_changed != null && Object.hasOwnProperty.call(message, "udfs_changed"))
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.udfs_changed);
+ if (message.tx_unresolved != null && Object.hasOwnProperty.call(message, "tx_unresolved"))
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.tx_unresolved);
return writer;
};
@@ -103082,6 +103582,10 @@ export const query = $root.query = (() => {
message.udfs_changed = reader.bool();
break;
}
+ case 10: {
+ message.tx_unresolved = reader.bool();
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -103152,6 +103656,9 @@ export const query = $root.query = (() => {
if (message.udfs_changed != null && message.hasOwnProperty("udfs_changed"))
if (typeof message.udfs_changed !== "boolean")
return "udfs_changed: boolean expected";
+ if (message.tx_unresolved != null && message.hasOwnProperty("tx_unresolved"))
+ if (typeof message.tx_unresolved !== "boolean")
+ return "tx_unresolved: boolean expected";
return null;
};
@@ -103202,6 +103709,8 @@ export const query = $root.query = (() => {
}
if (object.udfs_changed != null)
message.udfs_changed = Boolean(object.udfs_changed);
+ if (object.tx_unresolved != null)
+ message.tx_unresolved = Boolean(object.tx_unresolved);
return message;
};
@@ -103234,6 +103743,7 @@ export const query = $root.query = (() => {
object.cpu_usage = 0;
object.qps = 0;
object.udfs_changed = false;
+ object.tx_unresolved = false;
}
if (message.health_error != null && message.hasOwnProperty("health_error"))
object.health_error = message.health_error;
@@ -103262,6 +103772,8 @@ export const query = $root.query = (() => {
}
if (message.udfs_changed != null && message.hasOwnProperty("udfs_changed"))
object.udfs_changed = message.udfs_changed;
+ if (message.tx_unresolved != null && message.hasOwnProperty("tx_unresolved"))
+ object.tx_unresolved = message.tx_unresolved;
return object;
};
@@ -103898,15 +104410,15 @@ export const query = $root.query = (() => {
* @enum {number}
* @property {number} UNKNOWN=0 UNKNOWN value
* @property {number} PREPARE=1 PREPARE value
- * @property {number} COMMIT=2 COMMIT value
- * @property {number} ROLLBACK=3 ROLLBACK value
+ * @property {number} ROLLBACK=2 ROLLBACK value
+ * @property {number} COMMIT=3 COMMIT value
*/
query.TransactionState = (function() {
const valuesById = {}, values = Object.create(valuesById);
values[valuesById[0] = "UNKNOWN"] = 0;
values[valuesById[1] = "PREPARE"] = 1;
- values[valuesById[2] = "COMMIT"] = 2;
- values[valuesById[3] = "ROLLBACK"] = 3;
+ values[valuesById[2] = "ROLLBACK"] = 2;
+ values[valuesById[3] = "COMMIT"] = 3;
return values;
})();
@@ -104147,11 +104659,11 @@ export const query = $root.query = (() => {
case 1:
message.state = 1;
break;
- case "COMMIT":
+ case "ROLLBACK":
case 2:
message.state = 2;
break;
- case "ROLLBACK":
+ case "COMMIT":
case 3:
message.state = 3;
break;
@@ -110539,6 +111051,7 @@ export const vschema = $root.vschema = (() => {
* @property {vschema.IRoutingRules|null} [routing_rules] SrvVSchema routing_rules
* @property {vschema.IShardRoutingRules|null} [shard_routing_rules] SrvVSchema shard_routing_rules
* @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] SrvVSchema keyspace_routing_rules
+ * @property {vschema.IMirrorRules|null} [mirror_rules] SrvVSchema mirror_rules
*/
/**
@@ -110589,6 +111102,14 @@ export const vschema = $root.vschema = (() => {
*/
SrvVSchema.prototype.keyspace_routing_rules = null;
+ /**
+ * SrvVSchema mirror_rules.
+ * @member {vschema.IMirrorRules|null|undefined} mirror_rules
+ * @memberof vschema.SrvVSchema
+ * @instance
+ */
+ SrvVSchema.prototype.mirror_rules = null;
+
/**
* Creates a new SrvVSchema instance using the specified properties.
* @function create
@@ -110624,6 +111145,8 @@ export const vschema = $root.vschema = (() => {
$root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
if (message.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules"))
$root.vschema.KeyspaceRoutingRules.encode(message.keyspace_routing_rules, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.mirror_rules != null && Object.hasOwnProperty.call(message, "mirror_rules"))
+ $root.vschema.MirrorRules.encode(message.mirror_rules, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
return writer;
};
@@ -110693,6 +111216,10 @@ export const vschema = $root.vschema = (() => {
message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32());
break;
}
+ case 5: {
+ message.mirror_rules = $root.vschema.MirrorRules.decode(reader, reader.uint32());
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -110753,6 +111280,11 @@ export const vschema = $root.vschema = (() => {
if (error)
return "keyspace_routing_rules." + error;
}
+ if (message.mirror_rules != null && message.hasOwnProperty("mirror_rules")) {
+ let error = $root.vschema.MirrorRules.verify(message.mirror_rules);
+ if (error)
+ return "mirror_rules." + error;
+ }
return null;
};
@@ -110793,6 +111325,11 @@ export const vschema = $root.vschema = (() => {
throw TypeError(".vschema.SrvVSchema.keyspace_routing_rules: object expected");
message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_routing_rules);
}
+ if (object.mirror_rules != null) {
+ if (typeof object.mirror_rules !== "object")
+ throw TypeError(".vschema.SrvVSchema.mirror_rules: object expected");
+ message.mirror_rules = $root.vschema.MirrorRules.fromObject(object.mirror_rules);
+ }
return message;
};
@@ -110815,6 +111352,7 @@ export const vschema = $root.vschema = (() => {
object.routing_rules = null;
object.shard_routing_rules = null;
object.keyspace_routing_rules = null;
+ object.mirror_rules = null;
}
let keys2;
if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) {
@@ -110828,6 +111366,8 @@ export const vschema = $root.vschema = (() => {
object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options);
if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules"))
object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_routing_rules, options);
+ if (message.mirror_rules != null && message.hasOwnProperty("mirror_rules"))
+ object.mirror_rules = $root.vschema.MirrorRules.toObject(message.mirror_rules, options);
return object;
};
@@ -111785,6 +112325,480 @@ export const vschema = $root.vschema = (() => {
return KeyspaceRoutingRule;
})();
+ vschema.MirrorRules = (function() {
+
+ /**
+ * Properties of a MirrorRules.
+ * @memberof vschema
+ * @interface IMirrorRules
+ * @property {Array.|null} [rules] MirrorRules rules
+ */
+
+ /**
+ * Constructs a new MirrorRules.
+ * @memberof vschema
+ * @classdesc Represents a MirrorRules.
+ * @implements IMirrorRules
+ * @constructor
+ * @param {vschema.IMirrorRules=} [properties] Properties to set
+ */
+ function MirrorRules(properties) {
+ this.rules = [];
+ 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]];
+ }
+
+ /**
+ * MirrorRules rules.
+ * @member {Array.} rules
+ * @memberof vschema.MirrorRules
+ * @instance
+ */
+ MirrorRules.prototype.rules = $util.emptyArray;
+
+ /**
+ * Creates a new MirrorRules instance using the specified properties.
+ * @function create
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {vschema.IMirrorRules=} [properties] Properties to set
+ * @returns {vschema.MirrorRules} MirrorRules instance
+ */
+ MirrorRules.create = function create(properties) {
+ return new MirrorRules(properties);
+ };
+
+ /**
+ * Encodes the specified MirrorRules message. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages.
+ * @function encode
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {vschema.IMirrorRules} message MirrorRules message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MirrorRules.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rules != null && message.rules.length)
+ for (let i = 0; i < message.rules.length; ++i)
+ $root.vschema.MirrorRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MirrorRules message, length delimited. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {vschema.IMirrorRules} message MirrorRules message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MirrorRules.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MirrorRules message from the specified reader or buffer.
+ * @function decode
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vschema.MirrorRules} MirrorRules
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MirrorRules.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.vschema.MirrorRules();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.rules && message.rules.length))
+ message.rules = [];
+ message.rules.push($root.vschema.MirrorRule.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MirrorRules message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vschema.MirrorRules} MirrorRules
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MirrorRules.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MirrorRules message.
+ * @function verify
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MirrorRules.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rules != null && message.hasOwnProperty("rules")) {
+ if (!Array.isArray(message.rules))
+ return "rules: array expected";
+ for (let i = 0; i < message.rules.length; ++i) {
+ let error = $root.vschema.MirrorRule.verify(message.rules[i]);
+ if (error)
+ return "rules." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MirrorRules message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vschema.MirrorRules} MirrorRules
+ */
+ MirrorRules.fromObject = function fromObject(object) {
+ if (object instanceof $root.vschema.MirrorRules)
+ return object;
+ let message = new $root.vschema.MirrorRules();
+ if (object.rules) {
+ if (!Array.isArray(object.rules))
+ throw TypeError(".vschema.MirrorRules.rules: array expected");
+ message.rules = [];
+ for (let i = 0; i < object.rules.length; ++i) {
+ if (typeof object.rules[i] !== "object")
+ throw TypeError(".vschema.MirrorRules.rules: object expected");
+ message.rules[i] = $root.vschema.MirrorRule.fromObject(object.rules[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MirrorRules message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {vschema.MirrorRules} message MirrorRules
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MirrorRules.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.arrays || options.defaults)
+ object.rules = [];
+ if (message.rules && message.rules.length) {
+ object.rules = [];
+ for (let j = 0; j < message.rules.length; ++j)
+ object.rules[j] = $root.vschema.MirrorRule.toObject(message.rules[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MirrorRules to JSON.
+ * @function toJSON
+ * @memberof vschema.MirrorRules
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MirrorRules.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MirrorRules
+ * @function getTypeUrl
+ * @memberof vschema.MirrorRules
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MirrorRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vschema.MirrorRules";
+ };
+
+ return MirrorRules;
+ })();
+
+ vschema.MirrorRule = (function() {
+
+ /**
+ * Properties of a MirrorRule.
+ * @memberof vschema
+ * @interface IMirrorRule
+ * @property {string|null} [from_table] MirrorRule from_table
+ * @property {string|null} [to_table] MirrorRule to_table
+ * @property {number|null} [percent] MirrorRule percent
+ */
+
+ /**
+ * Constructs a new MirrorRule.
+ * @memberof vschema
+ * @classdesc Represents a MirrorRule.
+ * @implements IMirrorRule
+ * @constructor
+ * @param {vschema.IMirrorRule=} [properties] Properties to set
+ */
+ function MirrorRule(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]];
+ }
+
+ /**
+ * MirrorRule from_table.
+ * @member {string} from_table
+ * @memberof vschema.MirrorRule
+ * @instance
+ */
+ MirrorRule.prototype.from_table = "";
+
+ /**
+ * MirrorRule to_table.
+ * @member {string} to_table
+ * @memberof vschema.MirrorRule
+ * @instance
+ */
+ MirrorRule.prototype.to_table = "";
+
+ /**
+ * MirrorRule percent.
+ * @member {number} percent
+ * @memberof vschema.MirrorRule
+ * @instance
+ */
+ MirrorRule.prototype.percent = 0;
+
+ /**
+ * Creates a new MirrorRule instance using the specified properties.
+ * @function create
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {vschema.IMirrorRule=} [properties] Properties to set
+ * @returns {vschema.MirrorRule} MirrorRule instance
+ */
+ MirrorRule.create = function create(properties) {
+ return new MirrorRule(properties);
+ };
+
+ /**
+ * Encodes the specified MirrorRule message. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages.
+ * @function encode
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {vschema.IMirrorRule} message MirrorRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MirrorRule.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.from_table != null && Object.hasOwnProperty.call(message, "from_table"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_table);
+ if (message.to_table != null && Object.hasOwnProperty.call(message, "to_table"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_table);
+ if (message.percent != null && Object.hasOwnProperty.call(message, "percent"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.percent);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MirrorRule message, length delimited. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {vschema.IMirrorRule} message MirrorRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MirrorRule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MirrorRule message from the specified reader or buffer.
+ * @function decode
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vschema.MirrorRule} MirrorRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MirrorRule.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.vschema.MirrorRule();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.from_table = reader.string();
+ break;
+ }
+ case 2: {
+ message.to_table = reader.string();
+ break;
+ }
+ case 3: {
+ message.percent = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MirrorRule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vschema.MirrorRule} MirrorRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MirrorRule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MirrorRule message.
+ * @function verify
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MirrorRule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.from_table != null && message.hasOwnProperty("from_table"))
+ if (!$util.isString(message.from_table))
+ return "from_table: string expected";
+ if (message.to_table != null && message.hasOwnProperty("to_table"))
+ if (!$util.isString(message.to_table))
+ return "to_table: string expected";
+ if (message.percent != null && message.hasOwnProperty("percent"))
+ if (typeof message.percent !== "number")
+ return "percent: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a MirrorRule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vschema.MirrorRule} MirrorRule
+ */
+ MirrorRule.fromObject = function fromObject(object) {
+ if (object instanceof $root.vschema.MirrorRule)
+ return object;
+ let message = new $root.vschema.MirrorRule();
+ if (object.from_table != null)
+ message.from_table = String(object.from_table);
+ if (object.to_table != null)
+ message.to_table = String(object.to_table);
+ if (object.percent != null)
+ message.percent = Number(object.percent);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MirrorRule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {vschema.MirrorRule} message MirrorRule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MirrorRule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults) {
+ object.from_table = "";
+ object.to_table = "";
+ object.percent = 0;
+ }
+ if (message.from_table != null && message.hasOwnProperty("from_table"))
+ object.from_table = message.from_table;
+ if (message.to_table != null && message.hasOwnProperty("to_table"))
+ object.to_table = message.to_table;
+ if (message.percent != null && message.hasOwnProperty("percent"))
+ object.percent = options.json && !isFinite(message.percent) ? String(message.percent) : message.percent;
+ return object;
+ };
+
+ /**
+ * Converts this MirrorRule to JSON.
+ * @function toJSON
+ * @memberof vschema.MirrorRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MirrorRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MirrorRule
+ * @function getTypeUrl
+ * @memberof vschema.MirrorRule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MirrorRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vschema.MirrorRule";
+ };
+
+ return MirrorRule;
+ })();
+
return vschema;
})();
@@ -124557,13 +125571,8 @@ export const vtctldata = $root.vtctldata = (() => {
* Properties of a CheckThrottlerResponse.
* @memberof vtctldata
* @interface ICheckThrottlerResponse
- * @property {number|null} [status_code] CheckThrottlerResponse status_code
- * @property {number|null} [value] CheckThrottlerResponse value
- * @property {number|null} [threshold] CheckThrottlerResponse threshold
- * @property {string|null} [error] CheckThrottlerResponse error
- * @property {string|null} [message] CheckThrottlerResponse message
- * @property {boolean|null} [recently_checked] CheckThrottlerResponse recently_checked
- * @property {Object.|null} [metrics] CheckThrottlerResponse metrics
+ * @property {topodata.ITabletAlias|null} [tablet_alias] CheckThrottlerResponse tablet_alias
+ * @property {tabletmanagerdata.ICheckThrottlerResponse|null} [Check] CheckThrottlerResponse Check
*/
/**
@@ -124575,7 +125584,6 @@ export const vtctldata = $root.vtctldata = (() => {
* @param {vtctldata.ICheckThrottlerResponse=} [properties] Properties to set
*/
function CheckThrottlerResponse(properties) {
- this.metrics = {};
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -124583,60 +125591,20 @@ export const vtctldata = $root.vtctldata = (() => {
}
/**
- * CheckThrottlerResponse status_code.
- * @member {number} status_code
- * @memberof vtctldata.CheckThrottlerResponse
- * @instance
- */
- CheckThrottlerResponse.prototype.status_code = 0;
-
- /**
- * CheckThrottlerResponse value.
- * @member {number} value
- * @memberof vtctldata.CheckThrottlerResponse
- * @instance
- */
- CheckThrottlerResponse.prototype.value = 0;
-
- /**
- * CheckThrottlerResponse threshold.
- * @member {number} threshold
- * @memberof vtctldata.CheckThrottlerResponse
- * @instance
- */
- CheckThrottlerResponse.prototype.threshold = 0;
-
- /**
- * CheckThrottlerResponse error.
- * @member {string} error
- * @memberof vtctldata.CheckThrottlerResponse
- * @instance
- */
- CheckThrottlerResponse.prototype.error = "";
-
- /**
- * CheckThrottlerResponse message.
- * @member {string} message
- * @memberof vtctldata.CheckThrottlerResponse
- * @instance
- */
- CheckThrottlerResponse.prototype.message = "";
-
- /**
- * CheckThrottlerResponse recently_checked.
- * @member {boolean} recently_checked
+ * CheckThrottlerResponse tablet_alias.
+ * @member {topodata.ITabletAlias|null|undefined} tablet_alias
* @memberof vtctldata.CheckThrottlerResponse
* @instance
*/
- CheckThrottlerResponse.prototype.recently_checked = false;
+ CheckThrottlerResponse.prototype.tablet_alias = null;
/**
- * CheckThrottlerResponse metrics.
- * @member {Object.} metrics
+ * CheckThrottlerResponse Check.
+ * @member {tabletmanagerdata.ICheckThrottlerResponse|null|undefined} Check
* @memberof vtctldata.CheckThrottlerResponse
* @instance
*/
- CheckThrottlerResponse.prototype.metrics = $util.emptyObject;
+ CheckThrottlerResponse.prototype.Check = null;
/**
* Creates a new CheckThrottlerResponse instance using the specified properties.
@@ -124662,23 +125630,10 @@ export const vtctldata = $root.vtctldata = (() => {
CheckThrottlerResponse.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code"))
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status_code);
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
- writer.uint32(/* id 2, wireType 1 =*/17).double(message.value);
- if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold"))
- writer.uint32(/* id 3, wireType 1 =*/25).double(message.threshold);
- if (message.error != null && Object.hasOwnProperty.call(message, "error"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.error);
- if (message.message != null && Object.hasOwnProperty.call(message, "message"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.message);
- if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked"))
- writer.uint32(/* id 6, wireType 0 =*/48).bool(message.recently_checked);
- if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics"))
- for (let keys = Object.keys(message.metrics), i = 0; i < keys.length; ++i) {
- writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
- $root.vtctldata.CheckThrottlerResponse.Metric.encode(message.metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
- }
+ if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias"))
+ $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.Check != null && Object.hasOwnProperty.call(message, "Check"))
+ $root.tabletmanagerdata.CheckThrottlerResponse.encode(message.Check, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
return writer;
};
@@ -124709,55 +125664,16 @@ export const vtctldata = $root.vtctldata = (() => {
CheckThrottlerResponse.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.CheckThrottlerResponse(), key, value;
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CheckThrottlerResponse();
while (reader.pos < end) {
let tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
- message.status_code = reader.int32();
+ message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32());
break;
}
case 2: {
- message.value = reader.double();
- break;
- }
- case 3: {
- message.threshold = reader.double();
- break;
- }
- case 4: {
- message.error = reader.string();
- break;
- }
- case 5: {
- message.message = reader.string();
- break;
- }
- case 6: {
- message.recently_checked = reader.bool();
- break;
- }
- case 7: {
- if (message.metrics === $util.emptyObject)
- message.metrics = {};
- let end2 = reader.uint32() + reader.pos;
- key = "";
- value = null;
- while (reader.pos < end2) {
- let tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = $root.vtctldata.CheckThrottlerResponse.Metric.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.metrics[key] = value;
+ message.Check = $root.tabletmanagerdata.CheckThrottlerResponse.decode(reader, reader.uint32());
break;
}
default:
@@ -124795,33 +125711,15 @@ export const vtctldata = $root.vtctldata = (() => {
CheckThrottlerResponse.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.status_code != null && message.hasOwnProperty("status_code"))
- if (!$util.isInteger(message.status_code))
- return "status_code: integer expected";
- if (message.value != null && message.hasOwnProperty("value"))
- if (typeof message.value !== "number")
- return "value: number expected";
- if (message.threshold != null && message.hasOwnProperty("threshold"))
- if (typeof message.threshold !== "number")
- return "threshold: number expected";
- if (message.error != null && message.hasOwnProperty("error"))
- if (!$util.isString(message.error))
- return "error: string expected";
- if (message.message != null && message.hasOwnProperty("message"))
- if (!$util.isString(message.message))
- return "message: string expected";
- if (message.recently_checked != null && message.hasOwnProperty("recently_checked"))
- if (typeof message.recently_checked !== "boolean")
- return "recently_checked: boolean expected";
- if (message.metrics != null && message.hasOwnProperty("metrics")) {
- if (!$util.isObject(message.metrics))
- return "metrics: object expected";
- let key = Object.keys(message.metrics);
- for (let i = 0; i < key.length; ++i) {
- let error = $root.vtctldata.CheckThrottlerResponse.Metric.verify(message.metrics[key[i]]);
- if (error)
- return "metrics." + error;
- }
+ if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) {
+ let error = $root.topodata.TabletAlias.verify(message.tablet_alias);
+ if (error)
+ return "tablet_alias." + error;
+ }
+ if (message.Check != null && message.hasOwnProperty("Check")) {
+ let error = $root.tabletmanagerdata.CheckThrottlerResponse.verify(message.Check);
+ if (error)
+ return "Check." + error;
}
return null;
};
@@ -124838,27 +125736,15 @@ export const vtctldata = $root.vtctldata = (() => {
if (object instanceof $root.vtctldata.CheckThrottlerResponse)
return object;
let message = new $root.vtctldata.CheckThrottlerResponse();
- if (object.status_code != null)
- message.status_code = object.status_code | 0;
- if (object.value != null)
- message.value = Number(object.value);
- if (object.threshold != null)
- message.threshold = Number(object.threshold);
- if (object.error != null)
- message.error = String(object.error);
- if (object.message != null)
- message.message = String(object.message);
- if (object.recently_checked != null)
- message.recently_checked = Boolean(object.recently_checked);
- if (object.metrics) {
- if (typeof object.metrics !== "object")
- throw TypeError(".vtctldata.CheckThrottlerResponse.metrics: object expected");
- message.metrics = {};
- for (let keys = Object.keys(object.metrics), i = 0; i < keys.length; ++i) {
- if (typeof object.metrics[keys[i]] !== "object")
- throw TypeError(".vtctldata.CheckThrottlerResponse.metrics: object expected");
- message.metrics[keys[i]] = $root.vtctldata.CheckThrottlerResponse.Metric.fromObject(object.metrics[keys[i]]);
- }
+ if (object.tablet_alias != null) {
+ if (typeof object.tablet_alias !== "object")
+ throw TypeError(".vtctldata.CheckThrottlerResponse.tablet_alias: object expected");
+ message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias);
+ }
+ if (object.Check != null) {
+ if (typeof object.Check !== "object")
+ throw TypeError(".vtctldata.CheckThrottlerResponse.Check: object expected");
+ message.Check = $root.tabletmanagerdata.CheckThrottlerResponse.fromObject(object.Check);
}
return message;
};
@@ -124876,34 +125762,14 @@ export const vtctldata = $root.vtctldata = (() => {
if (!options)
options = {};
let object = {};
- if (options.objects || options.defaults)
- object.metrics = {};
if (options.defaults) {
- object.status_code = 0;
- object.value = 0;
- object.threshold = 0;
- object.error = "";
- object.message = "";
- object.recently_checked = false;
- }
- if (message.status_code != null && message.hasOwnProperty("status_code"))
- object.status_code = message.status_code;
- if (message.value != null && message.hasOwnProperty("value"))
- object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
- if (message.threshold != null && message.hasOwnProperty("threshold"))
- object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold;
- if (message.error != null && message.hasOwnProperty("error"))
- object.error = message.error;
- if (message.message != null && message.hasOwnProperty("message"))
- object.message = message.message;
- if (message.recently_checked != null && message.hasOwnProperty("recently_checked"))
- object.recently_checked = message.recently_checked;
- let keys2;
- if (message.metrics && (keys2 = Object.keys(message.metrics)).length) {
- object.metrics = {};
- for (let j = 0; j < keys2.length; ++j)
- object.metrics[keys2[j]] = $root.vtctldata.CheckThrottlerResponse.Metric.toObject(message.metrics[keys2[j]], options);
+ object.tablet_alias = null;
+ object.Check = null;
}
+ if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias"))
+ object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options);
+ if (message.Check != null && message.hasOwnProperty("Check"))
+ object.Check = $root.tabletmanagerdata.CheckThrottlerResponse.toObject(message.Check, options);
return object;
};
@@ -124933,348 +125799,6 @@ export const vtctldata = $root.vtctldata = (() => {
return typeUrlPrefix + "/vtctldata.CheckThrottlerResponse";
};
- CheckThrottlerResponse.Metric = (function() {
-
- /**
- * Properties of a Metric.
- * @memberof vtctldata.CheckThrottlerResponse
- * @interface IMetric
- * @property {string|null} [name] Metric name
- * @property {number|null} [status_code] Metric status_code
- * @property {number|null} [value] Metric value
- * @property {number|null} [threshold] Metric threshold
- * @property {string|null} [error] Metric error
- * @property {string|null} [message] Metric message
- * @property {string|null} [scope] Metric scope
- */
-
- /**
- * Constructs a new Metric.
- * @memberof vtctldata.CheckThrottlerResponse
- * @classdesc Represents a Metric.
- * @implements IMetric
- * @constructor
- * @param {vtctldata.CheckThrottlerResponse.IMetric=} [properties] Properties to set
- */
- function Metric(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]];
- }
-
- /**
- * Metric name.
- * @member {string} name
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @instance
- */
- Metric.prototype.name = "";
-
- /**
- * Metric status_code.
- * @member {number} status_code
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @instance
- */
- Metric.prototype.status_code = 0;
-
- /**
- * Metric value.
- * @member {number} value
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @instance
- */
- Metric.prototype.value = 0;
-
- /**
- * Metric threshold.
- * @member {number} threshold
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @instance
- */
- Metric.prototype.threshold = 0;
-
- /**
- * Metric error.
- * @member {string} error
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @instance
- */
- Metric.prototype.error = "";
-
- /**
- * Metric message.
- * @member {string} message
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @instance
- */
- Metric.prototype.message = "";
-
- /**
- * Metric scope.
- * @member {string} scope
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @instance
- */
- Metric.prototype.scope = "";
-
- /**
- * Creates a new Metric instance using the specified properties.
- * @function create
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {vtctldata.CheckThrottlerResponse.IMetric=} [properties] Properties to set
- * @returns {vtctldata.CheckThrottlerResponse.Metric} Metric instance
- */
- Metric.create = function create(properties) {
- return new Metric(properties);
- };
-
- /**
- * Encodes the specified Metric message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.Metric.verify|verify} messages.
- * @function encode
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {vtctldata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Metric.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
- if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code"))
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status_code);
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
- writer.uint32(/* id 3, wireType 1 =*/25).double(message.value);
- if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold"))
- writer.uint32(/* id 4, wireType 1 =*/33).double(message.threshold);
- if (message.error != null && Object.hasOwnProperty.call(message, "error"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.error);
- if (message.message != null && Object.hasOwnProperty.call(message, "message"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.message);
- if (message.scope != null && Object.hasOwnProperty.call(message, "scope"))
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.scope);
- return writer;
- };
-
- /**
- * Encodes the specified Metric message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerResponse.Metric.verify|verify} messages.
- * @function encodeDelimited
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {vtctldata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Metric.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a Metric message from the specified reader or buffer.
- * @function decode
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.CheckThrottlerResponse.Metric} Metric
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Metric.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.CheckThrottlerResponse.Metric();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.name = reader.string();
- break;
- }
- case 2: {
- message.status_code = reader.int32();
- break;
- }
- case 3: {
- message.value = reader.double();
- break;
- }
- case 4: {
- message.threshold = reader.double();
- break;
- }
- case 5: {
- message.error = reader.string();
- break;
- }
- case 6: {
- message.message = reader.string();
- break;
- }
- case 7: {
- message.scope = reader.string();
- break;
- }
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a Metric message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.CheckThrottlerResponse.Metric} Metric
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Metric.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a Metric message.
- * @function verify
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- Metric.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
- if (message.status_code != null && message.hasOwnProperty("status_code"))
- if (!$util.isInteger(message.status_code))
- return "status_code: integer expected";
- if (message.value != null && message.hasOwnProperty("value"))
- if (typeof message.value !== "number")
- return "value: number expected";
- if (message.threshold != null && message.hasOwnProperty("threshold"))
- if (typeof message.threshold !== "number")
- return "threshold: number expected";
- if (message.error != null && message.hasOwnProperty("error"))
- if (!$util.isString(message.error))
- return "error: string expected";
- if (message.message != null && message.hasOwnProperty("message"))
- if (!$util.isString(message.message))
- return "message: string expected";
- if (message.scope != null && message.hasOwnProperty("scope"))
- if (!$util.isString(message.scope))
- return "scope: string expected";
- return null;
- };
-
- /**
- * Creates a Metric message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {Object.} object Plain object
- * @returns {vtctldata.CheckThrottlerResponse.Metric} Metric
- */
- Metric.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.CheckThrottlerResponse.Metric)
- return object;
- let message = new $root.vtctldata.CheckThrottlerResponse.Metric();
- if (object.name != null)
- message.name = String(object.name);
- if (object.status_code != null)
- message.status_code = object.status_code | 0;
- if (object.value != null)
- message.value = Number(object.value);
- if (object.threshold != null)
- message.threshold = Number(object.threshold);
- if (object.error != null)
- message.error = String(object.error);
- if (object.message != null)
- message.message = String(object.message);
- if (object.scope != null)
- message.scope = String(object.scope);
- return message;
- };
-
- /**
- * Creates a plain object from a Metric message. Also converts values to other types if specified.
- * @function toObject
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {vtctldata.CheckThrottlerResponse.Metric} message Metric
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- Metric.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.name = "";
- object.status_code = 0;
- object.value = 0;
- object.threshold = 0;
- object.error = "";
- object.message = "";
- object.scope = "";
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.status_code != null && message.hasOwnProperty("status_code"))
- object.status_code = message.status_code;
- if (message.value != null && message.hasOwnProperty("value"))
- object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
- if (message.threshold != null && message.hasOwnProperty("threshold"))
- object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold;
- if (message.error != null && message.hasOwnProperty("error"))
- object.error = message.error;
- if (message.message != null && message.hasOwnProperty("message"))
- object.message = message.message;
- if (message.scope != null && message.hasOwnProperty("scope"))
- object.scope = message.scope;
- return object;
- };
-
- /**
- * Converts this Metric to JSON.
- * @function toJSON
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @instance
- * @returns {Object.} JSON object
- */
- Metric.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for Metric
- * @function getTypeUrl
- * @memberof vtctldata.CheckThrottlerResponse.Metric
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/vtctldata.CheckThrottlerResponse.Metric";
- };
-
- return Metric;
- })();
-
return CheckThrottlerResponse;
})();
@@ -144181,24 +144705,7 @@ export const vtctldata = $root.vtctldata = (() => {
* Properties of a GetThrottlerStatusResponse.
* @memberof vtctldata
* @interface IGetThrottlerStatusResponse
- * @property {string|null} [tablet_alias] GetThrottlerStatusResponse tablet_alias
- * @property {string|null} [keyspace] GetThrottlerStatusResponse keyspace
- * @property {string|null} [shard] GetThrottlerStatusResponse shard
- * @property {boolean|null} [is_leader] GetThrottlerStatusResponse is_leader
- * @property {boolean|null} [is_open] GetThrottlerStatusResponse is_open
- * @property {boolean|null} [is_enabled] GetThrottlerStatusResponse is_enabled
- * @property {boolean|null} [is_dormant] GetThrottlerStatusResponse is_dormant
- * @property {string|null} [lag_metric_query] GetThrottlerStatusResponse lag_metric_query
- * @property {string|null} [custom_metric_query] GetThrottlerStatusResponse custom_metric_query
- * @property {number|null} [default_threshold] GetThrottlerStatusResponse default_threshold
- * @property {string|null} [metric_name_used_as_default] GetThrottlerStatusResponse metric_name_used_as_default
- * @property {Object.|null} [aggregated_metrics] GetThrottlerStatusResponse aggregated_metrics
- * @property {Object.|null} [metric_thresholds] GetThrottlerStatusResponse metric_thresholds
- * @property {Object.|null} [metrics_health] GetThrottlerStatusResponse metrics_health
- * @property {Object.|null} [throttled_apps] GetThrottlerStatusResponse throttled_apps
- * @property {Object.|null} [app_checked_metrics] GetThrottlerStatusResponse app_checked_metrics
- * @property {boolean|null} [recently_checked] GetThrottlerStatusResponse recently_checked
- * @property {Object.|null} [recent_apps] GetThrottlerStatusResponse recent_apps
+ * @property {tabletmanagerdata.IGetThrottlerStatusResponse|null} [status] GetThrottlerStatusResponse status
*/
/**
@@ -144210,12 +144717,6 @@ export const vtctldata = $root.vtctldata = (() => {
* @param {vtctldata.IGetThrottlerStatusResponse=} [properties] Properties to set
*/
function GetThrottlerStatusResponse(properties) {
- this.aggregated_metrics = {};
- this.metric_thresholds = {};
- this.metrics_health = {};
- this.throttled_apps = {};
- this.app_checked_metrics = {};
- this.recent_apps = {};
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -144223,148 +144724,12 @@ export const vtctldata = $root.vtctldata = (() => {
}
/**
- * GetThrottlerStatusResponse tablet_alias.
- * @member {string} tablet_alias
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.tablet_alias = "";
-
- /**
- * GetThrottlerStatusResponse keyspace.
- * @member {string} keyspace
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.keyspace = "";
-
- /**
- * GetThrottlerStatusResponse shard.
- * @member {string} shard
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.shard = "";
-
- /**
- * GetThrottlerStatusResponse is_leader.
- * @member {boolean} is_leader
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.is_leader = false;
-
- /**
- * GetThrottlerStatusResponse is_open.
- * @member {boolean} is_open
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.is_open = false;
-
- /**
- * GetThrottlerStatusResponse is_enabled.
- * @member {boolean} is_enabled
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.is_enabled = false;
-
- /**
- * GetThrottlerStatusResponse is_dormant.
- * @member {boolean} is_dormant
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.is_dormant = false;
-
- /**
- * GetThrottlerStatusResponse lag_metric_query.
- * @member {string} lag_metric_query
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.lag_metric_query = "";
-
- /**
- * GetThrottlerStatusResponse custom_metric_query.
- * @member {string} custom_metric_query
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.custom_metric_query = "";
-
- /**
- * GetThrottlerStatusResponse default_threshold.
- * @member {number} default_threshold
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.default_threshold = 0;
-
- /**
- * GetThrottlerStatusResponse metric_name_used_as_default.
- * @member {string} metric_name_used_as_default
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.metric_name_used_as_default = "";
-
- /**
- * GetThrottlerStatusResponse aggregated_metrics.
- * @member {Object.} aggregated_metrics
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.aggregated_metrics = $util.emptyObject;
-
- /**
- * GetThrottlerStatusResponse metric_thresholds.
- * @member {Object.} metric_thresholds
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.metric_thresholds = $util.emptyObject;
-
- /**
- * GetThrottlerStatusResponse metrics_health.
- * @member {Object.} metrics_health
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.metrics_health = $util.emptyObject;
-
- /**
- * GetThrottlerStatusResponse throttled_apps.
- * @member {Object.} throttled_apps
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.throttled_apps = $util.emptyObject;
-
- /**
- * GetThrottlerStatusResponse app_checked_metrics.
- * @member {Object.} app_checked_metrics
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.app_checked_metrics = $util.emptyObject;
-
- /**
- * GetThrottlerStatusResponse recently_checked.
- * @member {boolean} recently_checked
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @instance
- */
- GetThrottlerStatusResponse.prototype.recently_checked = false;
-
- /**
- * GetThrottlerStatusResponse recent_apps.
- * @member {Object.} recent_apps
+ * GetThrottlerStatusResponse status.
+ * @member {tabletmanagerdata.IGetThrottlerStatusResponse|null|undefined} status
* @memberof vtctldata.GetThrottlerStatusResponse
* @instance
*/
- GetThrottlerStatusResponse.prototype.recent_apps = $util.emptyObject;
+ GetThrottlerStatusResponse.prototype.status = null;
/**
* Creates a new GetThrottlerStatusResponse instance using the specified properties.
@@ -144390,56 +144755,8 @@ export const vtctldata = $root.vtctldata = (() => {
GetThrottlerStatusResponse.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.tablet_alias);
- if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace);
- if (message.shard != null && Object.hasOwnProperty.call(message, "shard"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard);
- if (message.is_leader != null && Object.hasOwnProperty.call(message, "is_leader"))
- writer.uint32(/* id 4, wireType 0 =*/32).bool(message.is_leader);
- if (message.is_open != null && Object.hasOwnProperty.call(message, "is_open"))
- writer.uint32(/* id 5, wireType 0 =*/40).bool(message.is_open);
- if (message.is_enabled != null && Object.hasOwnProperty.call(message, "is_enabled"))
- writer.uint32(/* id 6, wireType 0 =*/48).bool(message.is_enabled);
- if (message.is_dormant != null && Object.hasOwnProperty.call(message, "is_dormant"))
- writer.uint32(/* id 7, wireType 0 =*/56).bool(message.is_dormant);
- if (message.lag_metric_query != null && Object.hasOwnProperty.call(message, "lag_metric_query"))
- writer.uint32(/* id 8, wireType 2 =*/66).string(message.lag_metric_query);
- if (message.custom_metric_query != null && Object.hasOwnProperty.call(message, "custom_metric_query"))
- writer.uint32(/* id 9, wireType 2 =*/74).string(message.custom_metric_query);
- if (message.default_threshold != null && Object.hasOwnProperty.call(message, "default_threshold"))
- writer.uint32(/* id 10, wireType 1 =*/81).double(message.default_threshold);
- if (message.metric_name_used_as_default != null && Object.hasOwnProperty.call(message, "metric_name_used_as_default"))
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.metric_name_used_as_default);
- if (message.aggregated_metrics != null && Object.hasOwnProperty.call(message, "aggregated_metrics"))
- for (let keys = Object.keys(message.aggregated_metrics), i = 0; i < keys.length; ++i) {
- writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
- $root.vtctldata.GetThrottlerStatusResponse.MetricResult.encode(message.aggregated_metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
- }
- if (message.metric_thresholds != null && Object.hasOwnProperty.call(message, "metric_thresholds"))
- for (let keys = Object.keys(message.metric_thresholds), i = 0; i < keys.length; ++i)
- writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 1 =*/17).double(message.metric_thresholds[keys[i]]).ldelim();
- if (message.metrics_health != null && Object.hasOwnProperty.call(message, "metrics_health"))
- for (let keys = Object.keys(message.metrics_health), i = 0; i < keys.length; ++i) {
- writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
- $root.vtctldata.GetThrottlerStatusResponse.MetricHealth.encode(message.metrics_health[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
- }
- if (message.throttled_apps != null && Object.hasOwnProperty.call(message, "throttled_apps"))
- for (let keys = Object.keys(message.throttled_apps), i = 0; i < keys.length; ++i) {
- writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
- $root.topodata.ThrottledAppRule.encode(message.throttled_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
- }
- if (message.app_checked_metrics != null && Object.hasOwnProperty.call(message, "app_checked_metrics"))
- for (let keys = Object.keys(message.app_checked_metrics), i = 0; i < keys.length; ++i)
- writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.app_checked_metrics[keys[i]]).ldelim();
- if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked"))
- writer.uint32(/* id 17, wireType 0 =*/136).bool(message.recently_checked);
- if (message.recent_apps != null && Object.hasOwnProperty.call(message, "recent_apps"))
- for (let keys = Object.keys(message.recent_apps), i = 0; i < keys.length; ++i) {
- writer.uint32(/* id 18, wireType 2 =*/146).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
- $root.vtctldata.GetThrottlerStatusResponse.RecentApp.encode(message.recent_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
- }
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ $root.tabletmanagerdata.GetThrottlerStatusResponse.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
return writer;
};
@@ -144470,194 +144787,12 @@ export const vtctldata = $root.vtctldata = (() => {
GetThrottlerStatusResponse.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.GetThrottlerStatusResponse(), key, value;
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetThrottlerStatusResponse();
while (reader.pos < end) {
let tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
- message.tablet_alias = reader.string();
- break;
- }
- case 2: {
- message.keyspace = reader.string();
- break;
- }
- case 3: {
- message.shard = reader.string();
- break;
- }
- case 4: {
- message.is_leader = reader.bool();
- break;
- }
- case 5: {
- message.is_open = reader.bool();
- break;
- }
- case 6: {
- message.is_enabled = reader.bool();
- break;
- }
- case 7: {
- message.is_dormant = reader.bool();
- break;
- }
- case 8: {
- message.lag_metric_query = reader.string();
- break;
- }
- case 9: {
- message.custom_metric_query = reader.string();
- break;
- }
- case 10: {
- message.default_threshold = reader.double();
- break;
- }
- case 11: {
- message.metric_name_used_as_default = reader.string();
- break;
- }
- case 12: {
- if (message.aggregated_metrics === $util.emptyObject)
- message.aggregated_metrics = {};
- let end2 = reader.uint32() + reader.pos;
- key = "";
- value = null;
- while (reader.pos < end2) {
- let tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = $root.vtctldata.GetThrottlerStatusResponse.MetricResult.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.aggregated_metrics[key] = value;
- break;
- }
- case 13: {
- if (message.metric_thresholds === $util.emptyObject)
- message.metric_thresholds = {};
- let end2 = reader.uint32() + reader.pos;
- key = "";
- value = 0;
- while (reader.pos < end2) {
- let tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = reader.double();
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.metric_thresholds[key] = value;
- break;
- }
- case 14: {
- if (message.metrics_health === $util.emptyObject)
- message.metrics_health = {};
- let end2 = reader.uint32() + reader.pos;
- key = "";
- value = null;
- while (reader.pos < end2) {
- let tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = $root.vtctldata.GetThrottlerStatusResponse.MetricHealth.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.metrics_health[key] = value;
- break;
- }
- case 15: {
- if (message.throttled_apps === $util.emptyObject)
- message.throttled_apps = {};
- let end2 = reader.uint32() + reader.pos;
- key = "";
- value = null;
- while (reader.pos < end2) {
- let tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.throttled_apps[key] = value;
- break;
- }
- case 16: {
- if (message.app_checked_metrics === $util.emptyObject)
- message.app_checked_metrics = {};
- let end2 = reader.uint32() + reader.pos;
- key = "";
- value = "";
- while (reader.pos < end2) {
- let tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = reader.string();
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.app_checked_metrics[key] = value;
- break;
- }
- case 17: {
- message.recently_checked = reader.bool();
- break;
- }
- case 18: {
- if (message.recent_apps === $util.emptyObject)
- message.recent_apps = {};
- let end2 = reader.uint32() + reader.pos;
- key = "";
- value = null;
- while (reader.pos < end2) {
- let tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = $root.vtctldata.GetThrottlerStatusResponse.RecentApp.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.recent_apps[key] = value;
+ message.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.decode(reader, reader.uint32());
break;
}
default:
@@ -144695,97 +144830,10 @@ export const vtctldata = $root.vtctldata = (() => {
GetThrottlerStatusResponse.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias"))
- if (!$util.isString(message.tablet_alias))
- return "tablet_alias: string expected";
- if (message.keyspace != null && message.hasOwnProperty("keyspace"))
- if (!$util.isString(message.keyspace))
- return "keyspace: string expected";
- if (message.shard != null && message.hasOwnProperty("shard"))
- if (!$util.isString(message.shard))
- return "shard: string expected";
- if (message.is_leader != null && message.hasOwnProperty("is_leader"))
- if (typeof message.is_leader !== "boolean")
- return "is_leader: boolean expected";
- if (message.is_open != null && message.hasOwnProperty("is_open"))
- if (typeof message.is_open !== "boolean")
- return "is_open: boolean expected";
- if (message.is_enabled != null && message.hasOwnProperty("is_enabled"))
- if (typeof message.is_enabled !== "boolean")
- return "is_enabled: boolean expected";
- if (message.is_dormant != null && message.hasOwnProperty("is_dormant"))
- if (typeof message.is_dormant !== "boolean")
- return "is_dormant: boolean expected";
- if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query"))
- if (!$util.isString(message.lag_metric_query))
- return "lag_metric_query: string expected";
- if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query"))
- if (!$util.isString(message.custom_metric_query))
- return "custom_metric_query: string expected";
- if (message.default_threshold != null && message.hasOwnProperty("default_threshold"))
- if (typeof message.default_threshold !== "number")
- return "default_threshold: number expected";
- if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default"))
- if (!$util.isString(message.metric_name_used_as_default))
- return "metric_name_used_as_default: string expected";
- if (message.aggregated_metrics != null && message.hasOwnProperty("aggregated_metrics")) {
- if (!$util.isObject(message.aggregated_metrics))
- return "aggregated_metrics: object expected";
- let key = Object.keys(message.aggregated_metrics);
- for (let i = 0; i < key.length; ++i) {
- let error = $root.vtctldata.GetThrottlerStatusResponse.MetricResult.verify(message.aggregated_metrics[key[i]]);
- if (error)
- return "aggregated_metrics." + error;
- }
- }
- if (message.metric_thresholds != null && message.hasOwnProperty("metric_thresholds")) {
- if (!$util.isObject(message.metric_thresholds))
- return "metric_thresholds: object expected";
- let key = Object.keys(message.metric_thresholds);
- for (let i = 0; i < key.length; ++i)
- if (typeof message.metric_thresholds[key[i]] !== "number")
- return "metric_thresholds: number{k:string} expected";
- }
- if (message.metrics_health != null && message.hasOwnProperty("metrics_health")) {
- if (!$util.isObject(message.metrics_health))
- return "metrics_health: object expected";
- let key = Object.keys(message.metrics_health);
- for (let i = 0; i < key.length; ++i) {
- let error = $root.vtctldata.GetThrottlerStatusResponse.MetricHealth.verify(message.metrics_health[key[i]]);
- if (error)
- return "metrics_health." + error;
- }
- }
- if (message.throttled_apps != null && message.hasOwnProperty("throttled_apps")) {
- if (!$util.isObject(message.throttled_apps))
- return "throttled_apps: object expected";
- let key = Object.keys(message.throttled_apps);
- for (let i = 0; i < key.length; ++i) {
- let error = $root.topodata.ThrottledAppRule.verify(message.throttled_apps[key[i]]);
- if (error)
- return "throttled_apps." + error;
- }
- }
- if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) {
- if (!$util.isObject(message.app_checked_metrics))
- return "app_checked_metrics: object expected";
- let key = Object.keys(message.app_checked_metrics);
- for (let i = 0; i < key.length; ++i)
- if (!$util.isString(message.app_checked_metrics[key[i]]))
- return "app_checked_metrics: string{k:string} expected";
- }
- if (message.recently_checked != null && message.hasOwnProperty("recently_checked"))
- if (typeof message.recently_checked !== "boolean")
- return "recently_checked: boolean expected";
- if (message.recent_apps != null && message.hasOwnProperty("recent_apps")) {
- if (!$util.isObject(message.recent_apps))
- return "recent_apps: object expected";
- let key = Object.keys(message.recent_apps);
- for (let i = 0; i < key.length; ++i) {
- let error = $root.vtctldata.GetThrottlerStatusResponse.RecentApp.verify(message.recent_apps[key[i]]);
- if (error)
- return "recent_apps." + error;
- }
+ if (message.status != null && message.hasOwnProperty("status")) {
+ let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.verify(message.status);
+ if (error)
+ return "status." + error;
}
return null;
};
@@ -144802,83 +144850,10 @@ export const vtctldata = $root.vtctldata = (() => {
if (object instanceof $root.vtctldata.GetThrottlerStatusResponse)
return object;
let message = new $root.vtctldata.GetThrottlerStatusResponse();
- if (object.tablet_alias != null)
- message.tablet_alias = String(object.tablet_alias);
- if (object.keyspace != null)
- message.keyspace = String(object.keyspace);
- if (object.shard != null)
- message.shard = String(object.shard);
- if (object.is_leader != null)
- message.is_leader = Boolean(object.is_leader);
- if (object.is_open != null)
- message.is_open = Boolean(object.is_open);
- if (object.is_enabled != null)
- message.is_enabled = Boolean(object.is_enabled);
- if (object.is_dormant != null)
- message.is_dormant = Boolean(object.is_dormant);
- if (object.lag_metric_query != null)
- message.lag_metric_query = String(object.lag_metric_query);
- if (object.custom_metric_query != null)
- message.custom_metric_query = String(object.custom_metric_query);
- if (object.default_threshold != null)
- message.default_threshold = Number(object.default_threshold);
- if (object.metric_name_used_as_default != null)
- message.metric_name_used_as_default = String(object.metric_name_used_as_default);
- if (object.aggregated_metrics) {
- if (typeof object.aggregated_metrics !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.aggregated_metrics: object expected");
- message.aggregated_metrics = {};
- for (let keys = Object.keys(object.aggregated_metrics), i = 0; i < keys.length; ++i) {
- if (typeof object.aggregated_metrics[keys[i]] !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.aggregated_metrics: object expected");
- message.aggregated_metrics[keys[i]] = $root.vtctldata.GetThrottlerStatusResponse.MetricResult.fromObject(object.aggregated_metrics[keys[i]]);
- }
- }
- if (object.metric_thresholds) {
- if (typeof object.metric_thresholds !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.metric_thresholds: object expected");
- message.metric_thresholds = {};
- for (let keys = Object.keys(object.metric_thresholds), i = 0; i < keys.length; ++i)
- message.metric_thresholds[keys[i]] = Number(object.metric_thresholds[keys[i]]);
- }
- if (object.metrics_health) {
- if (typeof object.metrics_health !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.metrics_health: object expected");
- message.metrics_health = {};
- for (let keys = Object.keys(object.metrics_health), i = 0; i < keys.length; ++i) {
- if (typeof object.metrics_health[keys[i]] !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.metrics_health: object expected");
- message.metrics_health[keys[i]] = $root.vtctldata.GetThrottlerStatusResponse.MetricHealth.fromObject(object.metrics_health[keys[i]]);
- }
- }
- if (object.throttled_apps) {
- if (typeof object.throttled_apps !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.throttled_apps: object expected");
- message.throttled_apps = {};
- for (let keys = Object.keys(object.throttled_apps), i = 0; i < keys.length; ++i) {
- if (typeof object.throttled_apps[keys[i]] !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.throttled_apps: object expected");
- message.throttled_apps[keys[i]] = $root.topodata.ThrottledAppRule.fromObject(object.throttled_apps[keys[i]]);
- }
- }
- if (object.app_checked_metrics) {
- if (typeof object.app_checked_metrics !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.app_checked_metrics: object expected");
- message.app_checked_metrics = {};
- for (let keys = Object.keys(object.app_checked_metrics), i = 0; i < keys.length; ++i)
- message.app_checked_metrics[keys[i]] = String(object.app_checked_metrics[keys[i]]);
- }
- if (object.recently_checked != null)
- message.recently_checked = Boolean(object.recently_checked);
- if (object.recent_apps) {
- if (typeof object.recent_apps !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.recent_apps: object expected");
- message.recent_apps = {};
- for (let keys = Object.keys(object.recent_apps), i = 0; i < keys.length; ++i) {
- if (typeof object.recent_apps[keys[i]] !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.recent_apps: object expected");
- message.recent_apps[keys[i]] = $root.vtctldata.GetThrottlerStatusResponse.RecentApp.fromObject(object.recent_apps[keys[i]]);
- }
+ if (object.status != null) {
+ if (typeof object.status !== "object")
+ throw TypeError(".vtctldata.GetThrottlerStatusResponse.status: object expected");
+ message.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.fromObject(object.status);
}
return message;
};
@@ -144896,83 +144871,10 @@ export const vtctldata = $root.vtctldata = (() => {
if (!options)
options = {};
let object = {};
- if (options.objects || options.defaults) {
- object.aggregated_metrics = {};
- object.metric_thresholds = {};
- object.metrics_health = {};
- object.throttled_apps = {};
- object.app_checked_metrics = {};
- object.recent_apps = {};
- }
- if (options.defaults) {
- object.tablet_alias = "";
- object.keyspace = "";
- object.shard = "";
- object.is_leader = false;
- object.is_open = false;
- object.is_enabled = false;
- object.is_dormant = false;
- object.lag_metric_query = "";
- object.custom_metric_query = "";
- object.default_threshold = 0;
- object.metric_name_used_as_default = "";
- object.recently_checked = false;
- }
- if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias"))
- object.tablet_alias = message.tablet_alias;
- if (message.keyspace != null && message.hasOwnProperty("keyspace"))
- object.keyspace = message.keyspace;
- if (message.shard != null && message.hasOwnProperty("shard"))
- object.shard = message.shard;
- if (message.is_leader != null && message.hasOwnProperty("is_leader"))
- object.is_leader = message.is_leader;
- if (message.is_open != null && message.hasOwnProperty("is_open"))
- object.is_open = message.is_open;
- if (message.is_enabled != null && message.hasOwnProperty("is_enabled"))
- object.is_enabled = message.is_enabled;
- if (message.is_dormant != null && message.hasOwnProperty("is_dormant"))
- object.is_dormant = message.is_dormant;
- if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query"))
- object.lag_metric_query = message.lag_metric_query;
- if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query"))
- object.custom_metric_query = message.custom_metric_query;
- if (message.default_threshold != null && message.hasOwnProperty("default_threshold"))
- object.default_threshold = options.json && !isFinite(message.default_threshold) ? String(message.default_threshold) : message.default_threshold;
- if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default"))
- object.metric_name_used_as_default = message.metric_name_used_as_default;
- let keys2;
- if (message.aggregated_metrics && (keys2 = Object.keys(message.aggregated_metrics)).length) {
- object.aggregated_metrics = {};
- for (let j = 0; j < keys2.length; ++j)
- object.aggregated_metrics[keys2[j]] = $root.vtctldata.GetThrottlerStatusResponse.MetricResult.toObject(message.aggregated_metrics[keys2[j]], options);
- }
- if (message.metric_thresholds && (keys2 = Object.keys(message.metric_thresholds)).length) {
- object.metric_thresholds = {};
- for (let j = 0; j < keys2.length; ++j)
- object.metric_thresholds[keys2[j]] = options.json && !isFinite(message.metric_thresholds[keys2[j]]) ? String(message.metric_thresholds[keys2[j]]) : message.metric_thresholds[keys2[j]];
- }
- if (message.metrics_health && (keys2 = Object.keys(message.metrics_health)).length) {
- object.metrics_health = {};
- for (let j = 0; j < keys2.length; ++j)
- object.metrics_health[keys2[j]] = $root.vtctldata.GetThrottlerStatusResponse.MetricHealth.toObject(message.metrics_health[keys2[j]], options);
- }
- if (message.throttled_apps && (keys2 = Object.keys(message.throttled_apps)).length) {
- object.throttled_apps = {};
- for (let j = 0; j < keys2.length; ++j)
- object.throttled_apps[keys2[j]] = $root.topodata.ThrottledAppRule.toObject(message.throttled_apps[keys2[j]], options);
- }
- if (message.app_checked_metrics && (keys2 = Object.keys(message.app_checked_metrics)).length) {
- object.app_checked_metrics = {};
- for (let j = 0; j < keys2.length; ++j)
- object.app_checked_metrics[keys2[j]] = message.app_checked_metrics[keys2[j]];
- }
- if (message.recently_checked != null && message.hasOwnProperty("recently_checked"))
- object.recently_checked = message.recently_checked;
- if (message.recent_apps && (keys2 = Object.keys(message.recent_apps)).length) {
- object.recent_apps = {};
- for (let j = 0; j < keys2.length; ++j)
- object.recent_apps[keys2[j]] = $root.vtctldata.GetThrottlerStatusResponse.RecentApp.toObject(message.recent_apps[keys2[j]], options);
- }
+ if (options.defaults)
+ object.status = null;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.toObject(message.status, options);
return object;
};
@@ -145002,734 +144904,291 @@ export const vtctldata = $root.vtctldata = (() => {
return typeUrlPrefix + "/vtctldata.GetThrottlerStatusResponse";
};
- GetThrottlerStatusResponse.MetricResult = (function() {
+ return GetThrottlerStatusResponse;
+ })();
- /**
- * Properties of a MetricResult.
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @interface IMetricResult
- * @property {number|null} [value] MetricResult value
- * @property {string|null} [error] MetricResult error
- */
+ vtctldata.GetTopologyPathRequest = (function() {
- /**
- * Constructs a new MetricResult.
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @classdesc Represents a MetricResult.
- * @implements IMetricResult
- * @constructor
- * @param {vtctldata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set
- */
- function MetricResult(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]];
- }
+ /**
+ * Properties of a GetTopologyPathRequest.
+ * @memberof vtctldata
+ * @interface IGetTopologyPathRequest
+ * @property {string|null} [path] GetTopologyPathRequest path
+ * @property {number|Long|null} [version] GetTopologyPathRequest version
+ * @property {boolean|null} [as_json] GetTopologyPathRequest as_json
+ */
- /**
- * MetricResult value.
- * @member {number} value
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @instance
- */
- MetricResult.prototype.value = 0;
+ /**
+ * Constructs a new GetTopologyPathRequest.
+ * @memberof vtctldata
+ * @classdesc Represents a GetTopologyPathRequest.
+ * @implements IGetTopologyPathRequest
+ * @constructor
+ * @param {vtctldata.IGetTopologyPathRequest=} [properties] Properties to set
+ */
+ function GetTopologyPathRequest(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]];
+ }
- /**
- * MetricResult error.
- * @member {string} error
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @instance
- */
- MetricResult.prototype.error = "";
+ /**
+ * GetTopologyPathRequest path.
+ * @member {string} path
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @instance
+ */
+ GetTopologyPathRequest.prototype.path = "";
- /**
- * Creates a new MetricResult instance using the specified properties.
- * @function create
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set
- * @returns {vtctldata.GetThrottlerStatusResponse.MetricResult} MetricResult instance
- */
- MetricResult.create = function create(properties) {
- return new MetricResult(properties);
- };
+ /**
+ * GetTopologyPathRequest version.
+ * @member {number|Long} version
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @instance
+ */
+ GetTopologyPathRequest.prototype.version = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Encodes the specified MetricResult message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages.
- * @function encode
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- MetricResult.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
- writer.uint32(/* id 1, wireType 1 =*/9).double(message.value);
- if (message.error != null && Object.hasOwnProperty.call(message, "error"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.error);
- return writer;
- };
+ /**
+ * GetTopologyPathRequest as_json.
+ * @member {boolean} as_json
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @instance
+ */
+ GetTopologyPathRequest.prototype.as_json = false;
- /**
- * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages.
- * @function encodeDelimited
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- MetricResult.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
+ /**
+ * Creates a new GetTopologyPathRequest instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {vtctldata.IGetTopologyPathRequest=} [properties] Properties to set
+ * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest instance
+ */
+ GetTopologyPathRequest.create = function create(properties) {
+ return new GetTopologyPathRequest(properties);
+ };
- /**
- * Decodes a MetricResult message from the specified reader or buffer.
- * @function decode
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.GetThrottlerStatusResponse.MetricResult} MetricResult
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- MetricResult.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.GetThrottlerStatusResponse.MetricResult();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.value = reader.double();
- break;
- }
- case 2: {
- message.error = reader.string();
- break;
- }
- default:
- reader.skipType(tag & 7);
+ /**
+ * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {vtctldata.IGetTopologyPathRequest} message GetTopologyPathRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetTopologyPathRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.version);
+ if (message.as_json != null && Object.hasOwnProperty.call(message, "as_json"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.as_json);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetTopologyPathRequest message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {vtctldata.IGetTopologyPathRequest} message GetTopologyPathRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetTopologyPathRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetTopologyPathRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetTopologyPathRequest.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.GetTopologyPathRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.path = reader.string();
+ break;
+ }
+ case 2: {
+ message.version = reader.int64();
+ break;
+ }
+ case 3: {
+ message.as_json = reader.bool();
break;
}
+ default:
+ reader.skipType(tag & 7);
+ break;
}
- return message;
- };
-
- /**
- * Decodes a MetricResult message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.GetThrottlerStatusResponse.MetricResult} MetricResult
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- MetricResult.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
+ }
+ return message;
+ };
- /**
- * Verifies a MetricResult message.
- * @function verify
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- MetricResult.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.value != null && message.hasOwnProperty("value"))
- if (typeof message.value !== "number")
- return "value: number expected";
- if (message.error != null && message.hasOwnProperty("error"))
- if (!$util.isString(message.error))
- return "error: string expected";
- return null;
- };
+ /**
+ * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetTopologyPathRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
- /**
- * Creates a MetricResult message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {Object.} object Plain object
- * @returns {vtctldata.GetThrottlerStatusResponse.MetricResult} MetricResult
- */
- MetricResult.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.GetThrottlerStatusResponse.MetricResult)
- return object;
- let message = new $root.vtctldata.GetThrottlerStatusResponse.MetricResult();
- if (object.value != null)
- message.value = Number(object.value);
- if (object.error != null)
- message.error = String(object.error);
- return message;
- };
+ /**
+ * Verifies a GetTopologyPathRequest message.
+ * @function verify
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetTopologyPathRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
+ return "version: integer|Long expected";
+ if (message.as_json != null && message.hasOwnProperty("as_json"))
+ if (typeof message.as_json !== "boolean")
+ return "as_json: boolean expected";
+ return null;
+ };
- /**
- * Creates a plain object from a MetricResult message. Also converts values to other types if specified.
- * @function toObject
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.MetricResult} message MetricResult
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- MetricResult.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.value = 0;
- object.error = "";
- }
- if (message.value != null && message.hasOwnProperty("value"))
- object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
- if (message.error != null && message.hasOwnProperty("error"))
- object.error = message.error;
+ /**
+ * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest
+ */
+ GetTopologyPathRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.GetTopologyPathRequest)
return object;
- };
-
- /**
- * Converts this MetricResult to JSON.
- * @function toJSON
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @instance
- * @returns {Object.} JSON object
- */
- MetricResult.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for MetricResult
- * @function getTypeUrl
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricResult
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- MetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/vtctldata.GetThrottlerStatusResponse.MetricResult";
- };
-
- return MetricResult;
- })();
+ let message = new $root.vtctldata.GetTopologyPathRequest();
+ if (object.path != null)
+ message.path = String(object.path);
+ if (object.version != null)
+ if ($util.Long)
+ (message.version = $util.Long.fromValue(object.version)).unsigned = false;
+ else if (typeof object.version === "string")
+ message.version = parseInt(object.version, 10);
+ else if (typeof object.version === "number")
+ message.version = object.version;
+ else if (typeof object.version === "object")
+ message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber();
+ if (object.as_json != null)
+ message.as_json = Boolean(object.as_json);
+ return message;
+ };
- GetThrottlerStatusResponse.MetricHealth = (function() {
+ /**
+ * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {vtctldata.GetTopologyPathRequest} message GetTopologyPathRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetTopologyPathRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults) {
+ object.path = "";
+ if ($util.Long) {
+ let long = new $util.Long(0, 0, false);
+ object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.version = options.longs === String ? "0" : 0;
+ object.as_json = false;
+ }
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (typeof message.version === "number")
+ object.version = options.longs === String ? String(message.version) : message.version;
+ else
+ object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber() : message.version;
+ if (message.as_json != null && message.hasOwnProperty("as_json"))
+ object.as_json = message.as_json;
+ return object;
+ };
- /**
- * Properties of a MetricHealth.
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @interface IMetricHealth
- * @property {vttime.ITime|null} [last_healthy_at] MetricHealth last_healthy_at
- * @property {number|Long|null} [seconds_since_last_healthy] MetricHealth seconds_since_last_healthy
- */
-
- /**
- * Constructs a new MetricHealth.
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @classdesc Represents a MetricHealth.
- * @implements IMetricHealth
- * @constructor
- * @param {vtctldata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set
- */
- function MetricHealth(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]];
- }
-
- /**
- * MetricHealth last_healthy_at.
- * @member {vttime.ITime|null|undefined} last_healthy_at
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @instance
- */
- MetricHealth.prototype.last_healthy_at = null;
-
- /**
- * MetricHealth seconds_since_last_healthy.
- * @member {number|Long} seconds_since_last_healthy
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @instance
- */
- MetricHealth.prototype.seconds_since_last_healthy = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
-
- /**
- * Creates a new MetricHealth instance using the specified properties.
- * @function create
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set
- * @returns {vtctldata.GetThrottlerStatusResponse.MetricHealth} MetricHealth instance
- */
- MetricHealth.create = function create(properties) {
- return new MetricHealth(properties);
- };
-
- /**
- * Encodes the specified MetricHealth message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages.
- * @function encode
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- MetricHealth.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.last_healthy_at != null && Object.hasOwnProperty.call(message, "last_healthy_at"))
- $root.vttime.Time.encode(message.last_healthy_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.seconds_since_last_healthy != null && Object.hasOwnProperty.call(message, "seconds_since_last_healthy"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.seconds_since_last_healthy);
- return writer;
- };
-
- /**
- * Encodes the specified MetricHealth message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages.
- * @function encodeDelimited
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- MetricHealth.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a MetricHealth message from the specified reader or buffer.
- * @function decode
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.GetThrottlerStatusResponse.MetricHealth} MetricHealth
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- MetricHealth.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.GetThrottlerStatusResponse.MetricHealth();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.last_healthy_at = $root.vttime.Time.decode(reader, reader.uint32());
- break;
- }
- case 2: {
- message.seconds_since_last_healthy = reader.int64();
- break;
- }
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a MetricHealth message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.GetThrottlerStatusResponse.MetricHealth} MetricHealth
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- MetricHealth.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a MetricHealth message.
- * @function verify
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- MetricHealth.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) {
- let error = $root.vttime.Time.verify(message.last_healthy_at);
- if (error)
- return "last_healthy_at." + error;
- }
- if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy"))
- if (!$util.isInteger(message.seconds_since_last_healthy) && !(message.seconds_since_last_healthy && $util.isInteger(message.seconds_since_last_healthy.low) && $util.isInteger(message.seconds_since_last_healthy.high)))
- return "seconds_since_last_healthy: integer|Long expected";
- return null;
- };
-
- /**
- * Creates a MetricHealth message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {Object.} object Plain object
- * @returns {vtctldata.GetThrottlerStatusResponse.MetricHealth} MetricHealth
- */
- MetricHealth.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.GetThrottlerStatusResponse.MetricHealth)
- return object;
- let message = new $root.vtctldata.GetThrottlerStatusResponse.MetricHealth();
- if (object.last_healthy_at != null) {
- if (typeof object.last_healthy_at !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.MetricHealth.last_healthy_at: object expected");
- message.last_healthy_at = $root.vttime.Time.fromObject(object.last_healthy_at);
- }
- if (object.seconds_since_last_healthy != null)
- if ($util.Long)
- (message.seconds_since_last_healthy = $util.Long.fromValue(object.seconds_since_last_healthy)).unsigned = false;
- else if (typeof object.seconds_since_last_healthy === "string")
- message.seconds_since_last_healthy = parseInt(object.seconds_since_last_healthy, 10);
- else if (typeof object.seconds_since_last_healthy === "number")
- message.seconds_since_last_healthy = object.seconds_since_last_healthy;
- else if (typeof object.seconds_since_last_healthy === "object")
- message.seconds_since_last_healthy = new $util.LongBits(object.seconds_since_last_healthy.low >>> 0, object.seconds_since_last_healthy.high >>> 0).toNumber();
- return message;
- };
-
- /**
- * Creates a plain object from a MetricHealth message. Also converts values to other types if specified.
- * @function toObject
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.MetricHealth} message MetricHealth
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- MetricHealth.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.last_healthy_at = null;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.seconds_since_last_healthy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.seconds_since_last_healthy = options.longs === String ? "0" : 0;
- }
- if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at"))
- object.last_healthy_at = $root.vttime.Time.toObject(message.last_healthy_at, options);
- if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy"))
- if (typeof message.seconds_since_last_healthy === "number")
- object.seconds_since_last_healthy = options.longs === String ? String(message.seconds_since_last_healthy) : message.seconds_since_last_healthy;
- else
- object.seconds_since_last_healthy = options.longs === String ? $util.Long.prototype.toString.call(message.seconds_since_last_healthy) : options.longs === Number ? new $util.LongBits(message.seconds_since_last_healthy.low >>> 0, message.seconds_since_last_healthy.high >>> 0).toNumber() : message.seconds_since_last_healthy;
- return object;
- };
-
- /**
- * Converts this MetricHealth to JSON.
- * @function toJSON
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @instance
- * @returns {Object.} JSON object
- */
- MetricHealth.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for MetricHealth
- * @function getTypeUrl
- * @memberof vtctldata.GetThrottlerStatusResponse.MetricHealth
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- MetricHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/vtctldata.GetThrottlerStatusResponse.MetricHealth";
- };
-
- return MetricHealth;
- })();
-
- GetThrottlerStatusResponse.RecentApp = (function() {
-
- /**
- * Properties of a RecentApp.
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @interface IRecentApp
- * @property {vttime.ITime|null} [checked_at] RecentApp checked_at
- * @property {number|null} [status_code] RecentApp status_code
- */
+ /**
+ * Converts this GetTopologyPathRequest to JSON.
+ * @function toJSON
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetTopologyPathRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Constructs a new RecentApp.
- * @memberof vtctldata.GetThrottlerStatusResponse
- * @classdesc Represents a RecentApp.
- * @implements IRecentApp
- * @constructor
- * @param {vtctldata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set
- */
- function RecentApp(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]];
+ /**
+ * Gets the default type url for GetTopologyPathRequest
+ * @function getTypeUrl
+ * @memberof vtctldata.GetTopologyPathRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetTopologyPathRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
}
+ return typeUrlPrefix + "/vtctldata.GetTopologyPathRequest";
+ };
- /**
- * RecentApp checked_at.
- * @member {vttime.ITime|null|undefined} checked_at
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @instance
- */
- RecentApp.prototype.checked_at = null;
-
- /**
- * RecentApp status_code.
- * @member {number} status_code
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @instance
- */
- RecentApp.prototype.status_code = 0;
-
- /**
- * Creates a new RecentApp instance using the specified properties.
- * @function create
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set
- * @returns {vtctldata.GetThrottlerStatusResponse.RecentApp} RecentApp instance
- */
- RecentApp.create = function create(properties) {
- return new RecentApp(properties);
- };
-
- /**
- * Encodes the specified RecentApp message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages.
- * @function encode
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- RecentApp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.checked_at != null && Object.hasOwnProperty.call(message, "checked_at"))
- $root.vttime.Time.encode(message.checked_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code"))
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status_code);
- return writer;
- };
-
- /**
- * Encodes the specified RecentApp message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- RecentApp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a RecentApp message from the specified reader or buffer.
- * @function decode
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.GetThrottlerStatusResponse.RecentApp} RecentApp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- RecentApp.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.GetThrottlerStatusResponse.RecentApp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.checked_at = $root.vttime.Time.decode(reader, reader.uint32());
- break;
- }
- case 2: {
- message.status_code = reader.int32();
- break;
- }
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a RecentApp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.GetThrottlerStatusResponse.RecentApp} RecentApp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- RecentApp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a RecentApp message.
- * @function verify
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- RecentApp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.checked_at != null && message.hasOwnProperty("checked_at")) {
- let error = $root.vttime.Time.verify(message.checked_at);
- if (error)
- return "checked_at." + error;
- }
- if (message.status_code != null && message.hasOwnProperty("status_code"))
- if (!$util.isInteger(message.status_code))
- return "status_code: integer expected";
- return null;
- };
-
- /**
- * Creates a RecentApp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {Object.} object Plain object
- * @returns {vtctldata.GetThrottlerStatusResponse.RecentApp} RecentApp
- */
- RecentApp.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.GetThrottlerStatusResponse.RecentApp)
- return object;
- let message = new $root.vtctldata.GetThrottlerStatusResponse.RecentApp();
- if (object.checked_at != null) {
- if (typeof object.checked_at !== "object")
- throw TypeError(".vtctldata.GetThrottlerStatusResponse.RecentApp.checked_at: object expected");
- message.checked_at = $root.vttime.Time.fromObject(object.checked_at);
- }
- if (object.status_code != null)
- message.status_code = object.status_code | 0;
- return message;
- };
-
- /**
- * Creates a plain object from a RecentApp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {vtctldata.GetThrottlerStatusResponse.RecentApp} message RecentApp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- RecentApp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.checked_at = null;
- object.status_code = 0;
- }
- if (message.checked_at != null && message.hasOwnProperty("checked_at"))
- object.checked_at = $root.vttime.Time.toObject(message.checked_at, options);
- if (message.status_code != null && message.hasOwnProperty("status_code"))
- object.status_code = message.status_code;
- return object;
- };
-
- /**
- * Converts this RecentApp to JSON.
- * @function toJSON
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @instance
- * @returns {Object.} JSON object
- */
- RecentApp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for RecentApp
- * @function getTypeUrl
- * @memberof vtctldata.GetThrottlerStatusResponse.RecentApp
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- RecentApp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/vtctldata.GetThrottlerStatusResponse.RecentApp";
- };
-
- return RecentApp;
- })();
-
- return GetThrottlerStatusResponse;
+ return GetTopologyPathRequest;
})();
- vtctldata.GetTopologyPathRequest = (function() {
+ vtctldata.GetTopologyPathResponse = (function() {
/**
- * Properties of a GetTopologyPathRequest.
+ * Properties of a GetTopologyPathResponse.
* @memberof vtctldata
- * @interface IGetTopologyPathRequest
- * @property {string|null} [path] GetTopologyPathRequest path
- * @property {number|Long|null} [version] GetTopologyPathRequest version
- * @property {boolean|null} [as_json] GetTopologyPathRequest as_json
+ * @interface IGetTopologyPathResponse
+ * @property {vtctldata.ITopologyCell|null} [cell] GetTopologyPathResponse cell
*/
/**
- * Constructs a new GetTopologyPathRequest.
+ * Constructs a new GetTopologyPathResponse.
* @memberof vtctldata
- * @classdesc Represents a GetTopologyPathRequest.
- * @implements IGetTopologyPathRequest
+ * @classdesc Represents a GetTopologyPathResponse.
+ * @implements IGetTopologyPathResponse
* @constructor
- * @param {vtctldata.IGetTopologyPathRequest=} [properties] Properties to set
+ * @param {vtctldata.IGetTopologyPathResponse=} [properties] Properties to set
*/
- function GetTopologyPathRequest(properties) {
+ function GetTopologyPathResponse(properties) {
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -145737,306 +145196,44 @@ export const vtctldata = $root.vtctldata = (() => {
}
/**
- * GetTopologyPathRequest path.
- * @member {string} path
- * @memberof vtctldata.GetTopologyPathRequest
- * @instance
- */
- GetTopologyPathRequest.prototype.path = "";
-
- /**
- * GetTopologyPathRequest version.
- * @member {number|Long} version
- * @memberof vtctldata.GetTopologyPathRequest
- * @instance
- */
- GetTopologyPathRequest.prototype.version = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
-
- /**
- * GetTopologyPathRequest as_json.
- * @member {boolean} as_json
- * @memberof vtctldata.GetTopologyPathRequest
+ * GetTopologyPathResponse cell.
+ * @member {vtctldata.ITopologyCell|null|undefined} cell
+ * @memberof vtctldata.GetTopologyPathResponse
* @instance
*/
- GetTopologyPathRequest.prototype.as_json = false;
+ GetTopologyPathResponse.prototype.cell = null;
/**
- * Creates a new GetTopologyPathRequest instance using the specified properties.
+ * Creates a new GetTopologyPathResponse instance using the specified properties.
* @function create
- * @memberof vtctldata.GetTopologyPathRequest
+ * @memberof vtctldata.GetTopologyPathResponse
* @static
- * @param {vtctldata.IGetTopologyPathRequest=} [properties] Properties to set
- * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest instance
+ * @param {vtctldata.IGetTopologyPathResponse=} [properties] Properties to set
+ * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse instance
*/
- GetTopologyPathRequest.create = function create(properties) {
- return new GetTopologyPathRequest(properties);
+ GetTopologyPathResponse.create = function create(properties) {
+ return new GetTopologyPathResponse(properties);
};
/**
- * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages.
+ * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages.
* @function encode
- * @memberof vtctldata.GetTopologyPathRequest
+ * @memberof vtctldata.GetTopologyPathResponse
* @static
- * @param {vtctldata.IGetTopologyPathRequest} message GetTopologyPathRequest message or plain object to encode
+ * @param {vtctldata.IGetTopologyPathResponse} message GetTopologyPathResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- GetTopologyPathRequest.encode = function encode(message, writer) {
+ GetTopologyPathResponse.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.path != null && Object.hasOwnProperty.call(message, "path"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
- if (message.version != null && Object.hasOwnProperty.call(message, "version"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.version);
- if (message.as_json != null && Object.hasOwnProperty.call(message, "as_json"))
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.as_json);
+ if (message.cell != null && Object.hasOwnProperty.call(message, "cell"))
+ $root.vtctldata.TopologyCell.encode(message.cell, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
return writer;
};
/**
- * Encodes the specified GetTopologyPathRequest message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages.
- * @function encodeDelimited
- * @memberof vtctldata.GetTopologyPathRequest
- * @static
- * @param {vtctldata.IGetTopologyPathRequest} message GetTopologyPathRequest message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GetTopologyPathRequest.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a GetTopologyPathRequest message from the specified reader or buffer.
- * @function decode
- * @memberof vtctldata.GetTopologyPathRequest
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GetTopologyPathRequest.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.GetTopologyPathRequest();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.path = reader.string();
- break;
- }
- case 2: {
- message.version = reader.int64();
- break;
- }
- case 3: {
- message.as_json = reader.bool();
- break;
- }
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof vtctldata.GetTopologyPathRequest
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GetTopologyPathRequest.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a GetTopologyPathRequest message.
- * @function verify
- * @memberof vtctldata.GetTopologyPathRequest
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GetTopologyPathRequest.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.path != null && message.hasOwnProperty("path"))
- if (!$util.isString(message.path))
- return "path: string expected";
- if (message.version != null && message.hasOwnProperty("version"))
- if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
- return "version: integer|Long expected";
- if (message.as_json != null && message.hasOwnProperty("as_json"))
- if (typeof message.as_json !== "boolean")
- return "as_json: boolean expected";
- return null;
- };
-
- /**
- * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof vtctldata.GetTopologyPathRequest
- * @static
- * @param {Object.} object Plain object
- * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest
- */
- GetTopologyPathRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.GetTopologyPathRequest)
- return object;
- let message = new $root.vtctldata.GetTopologyPathRequest();
- if (object.path != null)
- message.path = String(object.path);
- if (object.version != null)
- if ($util.Long)
- (message.version = $util.Long.fromValue(object.version)).unsigned = false;
- else if (typeof object.version === "string")
- message.version = parseInt(object.version, 10);
- else if (typeof object.version === "number")
- message.version = object.version;
- else if (typeof object.version === "object")
- message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber();
- if (object.as_json != null)
- message.as_json = Boolean(object.as_json);
- return message;
- };
-
- /**
- * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified.
- * @function toObject
- * @memberof vtctldata.GetTopologyPathRequest
- * @static
- * @param {vtctldata.GetTopologyPathRequest} message GetTopologyPathRequest
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- GetTopologyPathRequest.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.path = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.version = options.longs === String ? "0" : 0;
- object.as_json = false;
- }
- if (message.path != null && message.hasOwnProperty("path"))
- object.path = message.path;
- if (message.version != null && message.hasOwnProperty("version"))
- if (typeof message.version === "number")
- object.version = options.longs === String ? String(message.version) : message.version;
- else
- object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber() : message.version;
- if (message.as_json != null && message.hasOwnProperty("as_json"))
- object.as_json = message.as_json;
- return object;
- };
-
- /**
- * Converts this GetTopologyPathRequest to JSON.
- * @function toJSON
- * @memberof vtctldata.GetTopologyPathRequest
- * @instance
- * @returns {Object.} JSON object
- */
- GetTopologyPathRequest.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for GetTopologyPathRequest
- * @function getTypeUrl
- * @memberof vtctldata.GetTopologyPathRequest
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- GetTopologyPathRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/vtctldata.GetTopologyPathRequest";
- };
-
- return GetTopologyPathRequest;
- })();
-
- vtctldata.GetTopologyPathResponse = (function() {
-
- /**
- * Properties of a GetTopologyPathResponse.
- * @memberof vtctldata
- * @interface IGetTopologyPathResponse
- * @property {vtctldata.ITopologyCell|null} [cell] GetTopologyPathResponse cell
- */
-
- /**
- * Constructs a new GetTopologyPathResponse.
- * @memberof vtctldata
- * @classdesc Represents a GetTopologyPathResponse.
- * @implements IGetTopologyPathResponse
- * @constructor
- * @param {vtctldata.IGetTopologyPathResponse=} [properties] Properties to set
- */
- function GetTopologyPathResponse(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]];
- }
-
- /**
- * GetTopologyPathResponse cell.
- * @member {vtctldata.ITopologyCell|null|undefined} cell
- * @memberof vtctldata.GetTopologyPathResponse
- * @instance
- */
- GetTopologyPathResponse.prototype.cell = null;
-
- /**
- * Creates a new GetTopologyPathResponse instance using the specified properties.
- * @function create
- * @memberof vtctldata.GetTopologyPathResponse
- * @static
- * @param {vtctldata.IGetTopologyPathResponse=} [properties] Properties to set
- * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse instance
- */
- GetTopologyPathResponse.create = function create(properties) {
- return new GetTopologyPathResponse(properties);
- };
-
- /**
- * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages.
- * @function encode
- * @memberof vtctldata.GetTopologyPathResponse
- * @static
- * @param {vtctldata.IGetTopologyPathResponse} message GetTopologyPathResponse message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GetTopologyPathResponse.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.cell != null && Object.hasOwnProperty.call(message, "cell"))
- $root.vtctldata.TopologyCell.encode(message.cell, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
-
- /**
- * Encodes the specified GetTopologyPathResponse message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages.
+ * Encodes the specified GetTopologyPathResponse message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages.
* @function encodeDelimited
* @memberof vtctldata.GetTopologyPathResponse
* @static
@@ -179651,90 +178848,1650 @@ export const vtctldata = $root.vtctldata = (() => {
return message;
};
- /**
- * Creates a plain object from a ShardStreamState message. Also converts values to other types if specified.
- * @function toObject
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreamState
- * @static
- * @param {vtctldata.WorkflowStatusResponse.ShardStreamState} message ShardStreamState
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- ShardStreamState.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.id = 0;
- object.tablet = null;
- object.source_shard = "";
- object.position = "";
- object.status = "";
- object.info = "";
+ /**
+ * Creates a plain object from a ShardStreamState message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreamState
+ * @static
+ * @param {vtctldata.WorkflowStatusResponse.ShardStreamState} message ShardStreamState
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ShardStreamState.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults) {
+ object.id = 0;
+ object.tablet = null;
+ object.source_shard = "";
+ object.position = "";
+ object.status = "";
+ object.info = "";
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.tablet != null && message.hasOwnProperty("tablet"))
+ object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options);
+ if (message.source_shard != null && message.hasOwnProperty("source_shard"))
+ object.source_shard = message.source_shard;
+ if (message.position != null && message.hasOwnProperty("position"))
+ object.position = message.position;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = message.status;
+ if (message.info != null && message.hasOwnProperty("info"))
+ object.info = message.info;
+ return object;
+ };
+
+ /**
+ * Converts this ShardStreamState to JSON.
+ * @function toJSON
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreamState
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ShardStreamState.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ShardStreamState
+ * @function getTypeUrl
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreamState
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ShardStreamState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.WorkflowStatusResponse.ShardStreamState";
+ };
+
+ return ShardStreamState;
+ })();
+
+ WorkflowStatusResponse.ShardStreams = (function() {
+
+ /**
+ * Properties of a ShardStreams.
+ * @memberof vtctldata.WorkflowStatusResponse
+ * @interface IShardStreams
+ * @property {Array.|null} [streams] ShardStreams streams
+ */
+
+ /**
+ * Constructs a new ShardStreams.
+ * @memberof vtctldata.WorkflowStatusResponse
+ * @classdesc Represents a ShardStreams.
+ * @implements IShardStreams
+ * @constructor
+ * @param {vtctldata.WorkflowStatusResponse.IShardStreams=} [properties] Properties to set
+ */
+ function ShardStreams(properties) {
+ this.streams = [];
+ 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]];
+ }
+
+ /**
+ * ShardStreams streams.
+ * @member {Array.} streams
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @instance
+ */
+ ShardStreams.prototype.streams = $util.emptyArray;
+
+ /**
+ * Creates a new ShardStreams instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {vtctldata.WorkflowStatusResponse.IShardStreams=} [properties] Properties to set
+ * @returns {vtctldata.WorkflowStatusResponse.ShardStreams} ShardStreams instance
+ */
+ ShardStreams.create = function create(properties) {
+ return new ShardStreams(properties);
+ };
+
+ /**
+ * Encodes the specified ShardStreams message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {vtctldata.WorkflowStatusResponse.IShardStreams} message ShardStreams message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ShardStreams.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.streams != null && message.streams.length)
+ for (let i = 0; i < message.streams.length; ++i)
+ $root.vtctldata.WorkflowStatusResponse.ShardStreamState.encode(message.streams[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ShardStreams message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {vtctldata.WorkflowStatusResponse.IShardStreams} message ShardStreams message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ShardStreams.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ShardStreams message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.WorkflowStatusResponse.ShardStreams} ShardStreams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ShardStreams.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.WorkflowStatusResponse.ShardStreams();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ if (!(message.streams && message.streams.length))
+ message.streams = [];
+ message.streams.push($root.vtctldata.WorkflowStatusResponse.ShardStreamState.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ShardStreams message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.WorkflowStatusResponse.ShardStreams} ShardStreams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ShardStreams.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ShardStreams message.
+ * @function verify
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ShardStreams.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.streams != null && message.hasOwnProperty("streams")) {
+ if (!Array.isArray(message.streams))
+ return "streams: array expected";
+ for (let i = 0; i < message.streams.length; ++i) {
+ let error = $root.vtctldata.WorkflowStatusResponse.ShardStreamState.verify(message.streams[i]);
+ if (error)
+ return "streams." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ShardStreams message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.WorkflowStatusResponse.ShardStreams} ShardStreams
+ */
+ ShardStreams.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.WorkflowStatusResponse.ShardStreams)
+ return object;
+ let message = new $root.vtctldata.WorkflowStatusResponse.ShardStreams();
+ if (object.streams) {
+ if (!Array.isArray(object.streams))
+ throw TypeError(".vtctldata.WorkflowStatusResponse.ShardStreams.streams: array expected");
+ message.streams = [];
+ for (let i = 0; i < object.streams.length; ++i) {
+ if (typeof object.streams[i] !== "object")
+ throw TypeError(".vtctldata.WorkflowStatusResponse.ShardStreams.streams: object expected");
+ message.streams[i] = $root.vtctldata.WorkflowStatusResponse.ShardStreamState.fromObject(object.streams[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ShardStreams message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {vtctldata.WorkflowStatusResponse.ShardStreams} message ShardStreams
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ShardStreams.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.arrays || options.defaults)
+ object.streams = [];
+ if (message.streams && message.streams.length) {
+ object.streams = [];
+ for (let j = 0; j < message.streams.length; ++j)
+ object.streams[j] = $root.vtctldata.WorkflowStatusResponse.ShardStreamState.toObject(message.streams[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ShardStreams to JSON.
+ * @function toJSON
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ShardStreams.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ShardStreams
+ * @function getTypeUrl
+ * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ShardStreams.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.WorkflowStatusResponse.ShardStreams";
+ };
+
+ return ShardStreams;
+ })();
+
+ return WorkflowStatusResponse;
+ })();
+
+ vtctldata.WorkflowSwitchTrafficRequest = (function() {
+
+ /**
+ * Properties of a WorkflowSwitchTrafficRequest.
+ * @memberof vtctldata
+ * @interface IWorkflowSwitchTrafficRequest
+ * @property {string|null} [keyspace] WorkflowSwitchTrafficRequest keyspace
+ * @property {string|null} [workflow] WorkflowSwitchTrafficRequest workflow
+ * @property {Array.|null} [cells] WorkflowSwitchTrafficRequest cells
+ * @property {Array.|null} [tablet_types] WorkflowSwitchTrafficRequest tablet_types
+ * @property {vttime.IDuration|null} [max_replication_lag_allowed] WorkflowSwitchTrafficRequest max_replication_lag_allowed
+ * @property {boolean|null} [enable_reverse_replication] WorkflowSwitchTrafficRequest enable_reverse_replication
+ * @property {number|null} [direction] WorkflowSwitchTrafficRequest direction
+ * @property {vttime.IDuration|null} [timeout] WorkflowSwitchTrafficRequest timeout
+ * @property {boolean|null} [dry_run] WorkflowSwitchTrafficRequest dry_run
+ * @property {boolean|null} [initialize_target_sequences] WorkflowSwitchTrafficRequest initialize_target_sequences
+ * @property {Array.|null} [shards] WorkflowSwitchTrafficRequest shards
+ */
+
+ /**
+ * Constructs a new WorkflowSwitchTrafficRequest.
+ * @memberof vtctldata
+ * @classdesc Represents a WorkflowSwitchTrafficRequest.
+ * @implements IWorkflowSwitchTrafficRequest
+ * @constructor
+ * @param {vtctldata.IWorkflowSwitchTrafficRequest=} [properties] Properties to set
+ */
+ function WorkflowSwitchTrafficRequest(properties) {
+ this.cells = [];
+ this.tablet_types = [];
+ 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]];
+ }
+
+ /**
+ * WorkflowSwitchTrafficRequest keyspace.
+ * @member {string} keyspace
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.keyspace = "";
+
+ /**
+ * WorkflowSwitchTrafficRequest workflow.
+ * @member {string} workflow
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.workflow = "";
+
+ /**
+ * WorkflowSwitchTrafficRequest cells.
+ * @member {Array.} cells
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.cells = $util.emptyArray;
+
+ /**
+ * WorkflowSwitchTrafficRequest tablet_types.
+ * @member {Array.} tablet_types
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.tablet_types = $util.emptyArray;
+
+ /**
+ * WorkflowSwitchTrafficRequest max_replication_lag_allowed.
+ * @member {vttime.IDuration|null|undefined} max_replication_lag_allowed
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.max_replication_lag_allowed = null;
+
+ /**
+ * WorkflowSwitchTrafficRequest enable_reverse_replication.
+ * @member {boolean} enable_reverse_replication
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.enable_reverse_replication = false;
+
+ /**
+ * WorkflowSwitchTrafficRequest direction.
+ * @member {number} direction
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.direction = 0;
+
+ /**
+ * WorkflowSwitchTrafficRequest timeout.
+ * @member {vttime.IDuration|null|undefined} timeout
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.timeout = null;
+
+ /**
+ * WorkflowSwitchTrafficRequest dry_run.
+ * @member {boolean} dry_run
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.dry_run = false;
+
+ /**
+ * WorkflowSwitchTrafficRequest initialize_target_sequences.
+ * @member {boolean} initialize_target_sequences
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.initialize_target_sequences = false;
+
+ /**
+ * WorkflowSwitchTrafficRequest shards.
+ * @member {Array.} shards
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ */
+ WorkflowSwitchTrafficRequest.prototype.shards = $util.emptyArray;
+
+ /**
+ * Creates a new WorkflowSwitchTrafficRequest instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {vtctldata.IWorkflowSwitchTrafficRequest=} [properties] Properties to set
+ * @returns {vtctldata.WorkflowSwitchTrafficRequest} WorkflowSwitchTrafficRequest instance
+ */
+ WorkflowSwitchTrafficRequest.create = function create(properties) {
+ return new WorkflowSwitchTrafficRequest(properties);
+ };
+
+ /**
+ * Encodes the specified WorkflowSwitchTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {vtctldata.IWorkflowSwitchTrafficRequest} message WorkflowSwitchTrafficRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkflowSwitchTrafficRequest.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.workflow != null && Object.hasOwnProperty.call(message, "workflow"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow);
+ if (message.cells != null && message.cells.length)
+ for (let i = 0; i < message.cells.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]);
+ if (message.tablet_types != null && message.tablet_types.length) {
+ writer.uint32(/* id 4, wireType 2 =*/34).fork();
+ for (let i = 0; i < message.tablet_types.length; ++i)
+ writer.int32(message.tablet_types[i]);
+ writer.ldelim();
+ }
+ if (message.max_replication_lag_allowed != null && Object.hasOwnProperty.call(message, "max_replication_lag_allowed"))
+ $root.vttime.Duration.encode(message.max_replication_lag_allowed, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.enable_reverse_replication != null && Object.hasOwnProperty.call(message, "enable_reverse_replication"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.enable_reverse_replication);
+ if (message.direction != null && Object.hasOwnProperty.call(message, "direction"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.direction);
+ if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout"))
+ $root.vttime.Duration.encode(message.timeout, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run"))
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.dry_run);
+ if (message.initialize_target_sequences != null && Object.hasOwnProperty.call(message, "initialize_target_sequences"))
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.initialize_target_sequences);
+ if (message.shards != null && message.shards.length)
+ for (let i = 0; i < message.shards.length; ++i)
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.shards[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WorkflowSwitchTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {vtctldata.IWorkflowSwitchTrafficRequest} message WorkflowSwitchTrafficRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkflowSwitchTrafficRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.WorkflowSwitchTrafficRequest} WorkflowSwitchTrafficRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkflowSwitchTrafficRequest.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.WorkflowSwitchTrafficRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.keyspace = reader.string();
+ break;
+ }
+ case 2: {
+ message.workflow = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.cells && message.cells.length))
+ message.cells = [];
+ message.cells.push(reader.string());
+ break;
+ }
+ case 4: {
+ if (!(message.tablet_types && message.tablet_types.length))
+ message.tablet_types = [];
+ if ((tag & 7) === 2) {
+ let end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.tablet_types.push(reader.int32());
+ } else
+ message.tablet_types.push(reader.int32());
+ break;
+ }
+ case 5: {
+ message.max_replication_lag_allowed = $root.vttime.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.enable_reverse_replication = reader.bool();
+ break;
+ }
+ case 7: {
+ message.direction = reader.int32();
+ break;
+ }
+ case 8: {
+ message.timeout = $root.vttime.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.dry_run = reader.bool();
+ break;
+ }
+ case 10: {
+ message.initialize_target_sequences = reader.bool();
+ break;
+ }
+ case 11: {
+ if (!(message.shards && message.shards.length))
+ message.shards = [];
+ message.shards.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.WorkflowSwitchTrafficRequest} WorkflowSwitchTrafficRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkflowSwitchTrafficRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WorkflowSwitchTrafficRequest message.
+ * @function verify
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WorkflowSwitchTrafficRequest.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.workflow != null && message.hasOwnProperty("workflow"))
+ if (!$util.isString(message.workflow))
+ return "workflow: string expected";
+ if (message.cells != null && message.hasOwnProperty("cells")) {
+ if (!Array.isArray(message.cells))
+ return "cells: array expected";
+ for (let i = 0; i < message.cells.length; ++i)
+ if (!$util.isString(message.cells[i]))
+ return "cells: string[] expected";
+ }
+ if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) {
+ if (!Array.isArray(message.tablet_types))
+ return "tablet_types: array expected";
+ for (let i = 0; i < message.tablet_types.length; ++i)
+ switch (message.tablet_types[i]) {
+ default:
+ return "tablet_types: enum value[] expected";
+ case 0:
+ case 1:
+ case 1:
+ case 2:
+ case 3:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ break;
+ }
+ }
+ if (message.max_replication_lag_allowed != null && message.hasOwnProperty("max_replication_lag_allowed")) {
+ let error = $root.vttime.Duration.verify(message.max_replication_lag_allowed);
+ if (error)
+ return "max_replication_lag_allowed." + error;
+ }
+ if (message.enable_reverse_replication != null && message.hasOwnProperty("enable_reverse_replication"))
+ if (typeof message.enable_reverse_replication !== "boolean")
+ return "enable_reverse_replication: boolean expected";
+ if (message.direction != null && message.hasOwnProperty("direction"))
+ if (!$util.isInteger(message.direction))
+ return "direction: integer expected";
+ if (message.timeout != null && message.hasOwnProperty("timeout")) {
+ let error = $root.vttime.Duration.verify(message.timeout);
+ if (error)
+ return "timeout." + error;
+ }
+ if (message.dry_run != null && message.hasOwnProperty("dry_run"))
+ if (typeof message.dry_run !== "boolean")
+ return "dry_run: boolean expected";
+ if (message.initialize_target_sequences != null && message.hasOwnProperty("initialize_target_sequences"))
+ if (typeof message.initialize_target_sequences !== "boolean")
+ return "initialize_target_sequences: 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;
+ };
+
+ /**
+ * Creates a WorkflowSwitchTrafficRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.WorkflowSwitchTrafficRequest} WorkflowSwitchTrafficRequest
+ */
+ WorkflowSwitchTrafficRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.WorkflowSwitchTrafficRequest)
+ return object;
+ let message = new $root.vtctldata.WorkflowSwitchTrafficRequest();
+ if (object.keyspace != null)
+ message.keyspace = String(object.keyspace);
+ if (object.workflow != null)
+ message.workflow = String(object.workflow);
+ if (object.cells) {
+ if (!Array.isArray(object.cells))
+ throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.cells: array expected");
+ message.cells = [];
+ for (let i = 0; i < object.cells.length; ++i)
+ message.cells[i] = String(object.cells[i]);
+ }
+ if (object.tablet_types) {
+ if (!Array.isArray(object.tablet_types))
+ throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.tablet_types: array expected");
+ message.tablet_types = [];
+ for (let i = 0; i < object.tablet_types.length; ++i)
+ switch (object.tablet_types[i]) {
+ default:
+ if (typeof object.tablet_types[i] === "number") {
+ message.tablet_types[i] = object.tablet_types[i];
+ break;
+ }
+ case "UNKNOWN":
+ case 0:
+ message.tablet_types[i] = 0;
+ break;
+ case "PRIMARY":
+ case 1:
+ message.tablet_types[i] = 1;
+ break;
+ case "MASTER":
+ case 1:
+ message.tablet_types[i] = 1;
+ break;
+ case "REPLICA":
+ case 2:
+ message.tablet_types[i] = 2;
+ break;
+ case "RDONLY":
+ case 3:
+ message.tablet_types[i] = 3;
+ break;
+ case "BATCH":
+ case 3:
+ message.tablet_types[i] = 3;
+ break;
+ case "SPARE":
+ case 4:
+ message.tablet_types[i] = 4;
+ break;
+ case "EXPERIMENTAL":
+ case 5:
+ message.tablet_types[i] = 5;
+ break;
+ case "BACKUP":
+ case 6:
+ message.tablet_types[i] = 6;
+ break;
+ case "RESTORE":
+ case 7:
+ message.tablet_types[i] = 7;
+ break;
+ case "DRAINED":
+ case 8:
+ message.tablet_types[i] = 8;
+ break;
+ }
+ }
+ if (object.max_replication_lag_allowed != null) {
+ if (typeof object.max_replication_lag_allowed !== "object")
+ throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.max_replication_lag_allowed: object expected");
+ message.max_replication_lag_allowed = $root.vttime.Duration.fromObject(object.max_replication_lag_allowed);
+ }
+ if (object.enable_reverse_replication != null)
+ message.enable_reverse_replication = Boolean(object.enable_reverse_replication);
+ if (object.direction != null)
+ message.direction = object.direction | 0;
+ if (object.timeout != null) {
+ if (typeof object.timeout !== "object")
+ throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.timeout: object expected");
+ message.timeout = $root.vttime.Duration.fromObject(object.timeout);
+ }
+ if (object.dry_run != null)
+ message.dry_run = Boolean(object.dry_run);
+ if (object.initialize_target_sequences != null)
+ message.initialize_target_sequences = Boolean(object.initialize_target_sequences);
+ if (object.shards) {
+ if (!Array.isArray(object.shards))
+ throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.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 WorkflowSwitchTrafficRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {vtctldata.WorkflowSwitchTrafficRequest} message WorkflowSwitchTrafficRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WorkflowSwitchTrafficRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.arrays || options.defaults) {
+ object.cells = [];
+ object.tablet_types = [];
+ object.shards = [];
+ }
+ if (options.defaults) {
+ object.keyspace = "";
+ object.workflow = "";
+ object.max_replication_lag_allowed = null;
+ object.enable_reverse_replication = false;
+ object.direction = 0;
+ object.timeout = null;
+ object.dry_run = false;
+ object.initialize_target_sequences = false;
+ }
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ object.keyspace = message.keyspace;
+ if (message.workflow != null && message.hasOwnProperty("workflow"))
+ object.workflow = message.workflow;
+ if (message.cells && message.cells.length) {
+ object.cells = [];
+ for (let j = 0; j < message.cells.length; ++j)
+ object.cells[j] = message.cells[j];
+ }
+ if (message.tablet_types && message.tablet_types.length) {
+ object.tablet_types = [];
+ for (let j = 0; j < message.tablet_types.length; ++j)
+ object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j];
+ }
+ if (message.max_replication_lag_allowed != null && message.hasOwnProperty("max_replication_lag_allowed"))
+ object.max_replication_lag_allowed = $root.vttime.Duration.toObject(message.max_replication_lag_allowed, options);
+ if (message.enable_reverse_replication != null && message.hasOwnProperty("enable_reverse_replication"))
+ object.enable_reverse_replication = message.enable_reverse_replication;
+ if (message.direction != null && message.hasOwnProperty("direction"))
+ object.direction = message.direction;
+ if (message.timeout != null && message.hasOwnProperty("timeout"))
+ object.timeout = $root.vttime.Duration.toObject(message.timeout, options);
+ if (message.dry_run != null && message.hasOwnProperty("dry_run"))
+ object.dry_run = message.dry_run;
+ if (message.initialize_target_sequences != null && message.hasOwnProperty("initialize_target_sequences"))
+ object.initialize_target_sequences = message.initialize_target_sequences;
+ 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 WorkflowSwitchTrafficRequest to JSON.
+ * @function toJSON
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WorkflowSwitchTrafficRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WorkflowSwitchTrafficRequest
+ * @function getTypeUrl
+ * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WorkflowSwitchTrafficRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.WorkflowSwitchTrafficRequest";
+ };
+
+ return WorkflowSwitchTrafficRequest;
+ })();
+
+ vtctldata.WorkflowSwitchTrafficResponse = (function() {
+
+ /**
+ * Properties of a WorkflowSwitchTrafficResponse.
+ * @memberof vtctldata
+ * @interface IWorkflowSwitchTrafficResponse
+ * @property {string|null} [summary] WorkflowSwitchTrafficResponse summary
+ * @property {string|null} [start_state] WorkflowSwitchTrafficResponse start_state
+ * @property {string|null} [current_state] WorkflowSwitchTrafficResponse current_state
+ * @property {Array.|null} [dry_run_results] WorkflowSwitchTrafficResponse dry_run_results
+ */
+
+ /**
+ * Constructs a new WorkflowSwitchTrafficResponse.
+ * @memberof vtctldata
+ * @classdesc Represents a WorkflowSwitchTrafficResponse.
+ * @implements IWorkflowSwitchTrafficResponse
+ * @constructor
+ * @param {vtctldata.IWorkflowSwitchTrafficResponse=} [properties] Properties to set
+ */
+ function WorkflowSwitchTrafficResponse(properties) {
+ this.dry_run_results = [];
+ 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]];
+ }
+
+ /**
+ * WorkflowSwitchTrafficResponse summary.
+ * @member {string} summary
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @instance
+ */
+ WorkflowSwitchTrafficResponse.prototype.summary = "";
+
+ /**
+ * WorkflowSwitchTrafficResponse start_state.
+ * @member {string} start_state
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @instance
+ */
+ WorkflowSwitchTrafficResponse.prototype.start_state = "";
+
+ /**
+ * WorkflowSwitchTrafficResponse current_state.
+ * @member {string} current_state
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @instance
+ */
+ WorkflowSwitchTrafficResponse.prototype.current_state = "";
+
+ /**
+ * WorkflowSwitchTrafficResponse dry_run_results.
+ * @member {Array.} dry_run_results
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @instance
+ */
+ WorkflowSwitchTrafficResponse.prototype.dry_run_results = $util.emptyArray;
+
+ /**
+ * Creates a new WorkflowSwitchTrafficResponse instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {vtctldata.IWorkflowSwitchTrafficResponse=} [properties] Properties to set
+ * @returns {vtctldata.WorkflowSwitchTrafficResponse} WorkflowSwitchTrafficResponse instance
+ */
+ WorkflowSwitchTrafficResponse.create = function create(properties) {
+ return new WorkflowSwitchTrafficResponse(properties);
+ };
+
+ /**
+ * Encodes the specified WorkflowSwitchTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {vtctldata.IWorkflowSwitchTrafficResponse} message WorkflowSwitchTrafficResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkflowSwitchTrafficResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.summary != null && Object.hasOwnProperty.call(message, "summary"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary);
+ if (message.start_state != null && Object.hasOwnProperty.call(message, "start_state"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.start_state);
+ if (message.current_state != null && Object.hasOwnProperty.call(message, "current_state"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.current_state);
+ if (message.dry_run_results != null && message.dry_run_results.length)
+ for (let i = 0; i < message.dry_run_results.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.dry_run_results[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WorkflowSwitchTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {vtctldata.IWorkflowSwitchTrafficResponse} message WorkflowSwitchTrafficResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkflowSwitchTrafficResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.WorkflowSwitchTrafficResponse} WorkflowSwitchTrafficResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkflowSwitchTrafficResponse.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.WorkflowSwitchTrafficResponse();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.summary = reader.string();
+ break;
+ }
+ case 2: {
+ message.start_state = reader.string();
+ break;
+ }
+ case 3: {
+ message.current_state = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.dry_run_results && message.dry_run_results.length))
+ message.dry_run_results = [];
+ message.dry_run_results.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.WorkflowSwitchTrafficResponse} WorkflowSwitchTrafficResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkflowSwitchTrafficResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WorkflowSwitchTrafficResponse message.
+ * @function verify
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WorkflowSwitchTrafficResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.summary != null && message.hasOwnProperty("summary"))
+ if (!$util.isString(message.summary))
+ return "summary: string expected";
+ if (message.start_state != null && message.hasOwnProperty("start_state"))
+ if (!$util.isString(message.start_state))
+ return "start_state: string expected";
+ if (message.current_state != null && message.hasOwnProperty("current_state"))
+ if (!$util.isString(message.current_state))
+ return "current_state: string expected";
+ if (message.dry_run_results != null && message.hasOwnProperty("dry_run_results")) {
+ if (!Array.isArray(message.dry_run_results))
+ return "dry_run_results: array expected";
+ for (let i = 0; i < message.dry_run_results.length; ++i)
+ if (!$util.isString(message.dry_run_results[i]))
+ return "dry_run_results: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a WorkflowSwitchTrafficResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.WorkflowSwitchTrafficResponse} WorkflowSwitchTrafficResponse
+ */
+ WorkflowSwitchTrafficResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.WorkflowSwitchTrafficResponse)
+ return object;
+ let message = new $root.vtctldata.WorkflowSwitchTrafficResponse();
+ if (object.summary != null)
+ message.summary = String(object.summary);
+ if (object.start_state != null)
+ message.start_state = String(object.start_state);
+ if (object.current_state != null)
+ message.current_state = String(object.current_state);
+ if (object.dry_run_results) {
+ if (!Array.isArray(object.dry_run_results))
+ throw TypeError(".vtctldata.WorkflowSwitchTrafficResponse.dry_run_results: array expected");
+ message.dry_run_results = [];
+ for (let i = 0; i < object.dry_run_results.length; ++i)
+ message.dry_run_results[i] = String(object.dry_run_results[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WorkflowSwitchTrafficResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {vtctldata.WorkflowSwitchTrafficResponse} message WorkflowSwitchTrafficResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WorkflowSwitchTrafficResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.arrays || options.defaults)
+ object.dry_run_results = [];
+ if (options.defaults) {
+ object.summary = "";
+ object.start_state = "";
+ object.current_state = "";
+ }
+ if (message.summary != null && message.hasOwnProperty("summary"))
+ object.summary = message.summary;
+ if (message.start_state != null && message.hasOwnProperty("start_state"))
+ object.start_state = message.start_state;
+ if (message.current_state != null && message.hasOwnProperty("current_state"))
+ object.current_state = message.current_state;
+ if (message.dry_run_results && message.dry_run_results.length) {
+ object.dry_run_results = [];
+ for (let j = 0; j < message.dry_run_results.length; ++j)
+ object.dry_run_results[j] = message.dry_run_results[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this WorkflowSwitchTrafficResponse to JSON.
+ * @function toJSON
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WorkflowSwitchTrafficResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WorkflowSwitchTrafficResponse
+ * @function getTypeUrl
+ * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WorkflowSwitchTrafficResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.WorkflowSwitchTrafficResponse";
+ };
+
+ return WorkflowSwitchTrafficResponse;
+ })();
+
+ vtctldata.WorkflowUpdateRequest = (function() {
+
+ /**
+ * Properties of a WorkflowUpdateRequest.
+ * @memberof vtctldata
+ * @interface IWorkflowUpdateRequest
+ * @property {string|null} [keyspace] WorkflowUpdateRequest keyspace
+ * @property {tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null} [tablet_request] WorkflowUpdateRequest tablet_request
+ */
+
+ /**
+ * Constructs a new WorkflowUpdateRequest.
+ * @memberof vtctldata
+ * @classdesc Represents a WorkflowUpdateRequest.
+ * @implements IWorkflowUpdateRequest
+ * @constructor
+ * @param {vtctldata.IWorkflowUpdateRequest=} [properties] Properties to set
+ */
+ function WorkflowUpdateRequest(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]];
+ }
+
+ /**
+ * WorkflowUpdateRequest keyspace.
+ * @member {string} keyspace
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @instance
+ */
+ WorkflowUpdateRequest.prototype.keyspace = "";
+
+ /**
+ * WorkflowUpdateRequest tablet_request.
+ * @member {tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null|undefined} tablet_request
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @instance
+ */
+ WorkflowUpdateRequest.prototype.tablet_request = null;
+
+ /**
+ * Creates a new WorkflowUpdateRequest instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {vtctldata.IWorkflowUpdateRequest=} [properties] Properties to set
+ * @returns {vtctldata.WorkflowUpdateRequest} WorkflowUpdateRequest instance
+ */
+ WorkflowUpdateRequest.create = function create(properties) {
+ return new WorkflowUpdateRequest(properties);
+ };
+
+ /**
+ * Encodes the specified WorkflowUpdateRequest message. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {vtctldata.IWorkflowUpdateRequest} message WorkflowUpdateRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkflowUpdateRequest.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.tablet_request != null && Object.hasOwnProperty.call(message, "tablet_request"))
+ $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.encode(message.tablet_request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WorkflowUpdateRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {vtctldata.IWorkflowUpdateRequest} message WorkflowUpdateRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkflowUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WorkflowUpdateRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.WorkflowUpdateRequest} WorkflowUpdateRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkflowUpdateRequest.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.WorkflowUpdateRequest();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.keyspace = reader.string();
+ break;
+ }
+ case 2: {
+ message.tablet_request = $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WorkflowUpdateRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.WorkflowUpdateRequest} WorkflowUpdateRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkflowUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WorkflowUpdateRequest message.
+ * @function verify
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WorkflowUpdateRequest.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.tablet_request != null && message.hasOwnProperty("tablet_request")) {
+ let error = $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify(message.tablet_request);
+ if (error)
+ return "tablet_request." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a WorkflowUpdateRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.WorkflowUpdateRequest} WorkflowUpdateRequest
+ */
+ WorkflowUpdateRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.WorkflowUpdateRequest)
+ return object;
+ let message = new $root.vtctldata.WorkflowUpdateRequest();
+ if (object.keyspace != null)
+ message.keyspace = String(object.keyspace);
+ if (object.tablet_request != null) {
+ if (typeof object.tablet_request !== "object")
+ throw TypeError(".vtctldata.WorkflowUpdateRequest.tablet_request: object expected");
+ message.tablet_request = $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.fromObject(object.tablet_request);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WorkflowUpdateRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {vtctldata.WorkflowUpdateRequest} message WorkflowUpdateRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WorkflowUpdateRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.defaults) {
+ object.keyspace = "";
+ object.tablet_request = null;
+ }
+ if (message.keyspace != null && message.hasOwnProperty("keyspace"))
+ object.keyspace = message.keyspace;
+ if (message.tablet_request != null && message.hasOwnProperty("tablet_request"))
+ object.tablet_request = $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.toObject(message.tablet_request, options);
+ return object;
+ };
+
+ /**
+ * Converts this WorkflowUpdateRequest to JSON.
+ * @function toJSON
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WorkflowUpdateRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WorkflowUpdateRequest
+ * @function getTypeUrl
+ * @memberof vtctldata.WorkflowUpdateRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WorkflowUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.WorkflowUpdateRequest";
+ };
+
+ return WorkflowUpdateRequest;
+ })();
+
+ vtctldata.WorkflowUpdateResponse = (function() {
+
+ /**
+ * Properties of a WorkflowUpdateResponse.
+ * @memberof vtctldata
+ * @interface IWorkflowUpdateResponse
+ * @property {string|null} [summary] WorkflowUpdateResponse summary
+ * @property {Array.|null} [details] WorkflowUpdateResponse details
+ */
+
+ /**
+ * Constructs a new WorkflowUpdateResponse.
+ * @memberof vtctldata
+ * @classdesc Represents a WorkflowUpdateResponse.
+ * @implements IWorkflowUpdateResponse
+ * @constructor
+ * @param {vtctldata.IWorkflowUpdateResponse=} [properties] Properties to set
+ */
+ function WorkflowUpdateResponse(properties) {
+ this.details = [];
+ 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]];
+ }
+
+ /**
+ * WorkflowUpdateResponse summary.
+ * @member {string} summary
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @instance
+ */
+ WorkflowUpdateResponse.prototype.summary = "";
+
+ /**
+ * WorkflowUpdateResponse details.
+ * @member {Array.} details
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @instance
+ */
+ WorkflowUpdateResponse.prototype.details = $util.emptyArray;
+
+ /**
+ * Creates a new WorkflowUpdateResponse instance using the specified properties.
+ * @function create
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {vtctldata.IWorkflowUpdateResponse=} [properties] Properties to set
+ * @returns {vtctldata.WorkflowUpdateResponse} WorkflowUpdateResponse instance
+ */
+ WorkflowUpdateResponse.create = function create(properties) {
+ return new WorkflowUpdateResponse(properties);
+ };
+
+ /**
+ * Encodes the specified WorkflowUpdateResponse message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {vtctldata.IWorkflowUpdateResponse} message WorkflowUpdateResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkflowUpdateResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.summary != null && Object.hasOwnProperty.call(message, "summary"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary);
+ if (message.details != null && message.details.length)
+ for (let i = 0; i < message.details.length; ++i)
+ $root.vtctldata.WorkflowUpdateResponse.TabletInfo.encode(message.details[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WorkflowUpdateResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {vtctldata.IWorkflowUpdateResponse} message WorkflowUpdateResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkflowUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WorkflowUpdateResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {vtctldata.WorkflowUpdateResponse} WorkflowUpdateResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkflowUpdateResponse.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.WorkflowUpdateResponse();
+ while (reader.pos < end) {
+ let tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.summary = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.details && message.details.length))
+ message.details = [];
+ message.details.push($root.vtctldata.WorkflowUpdateResponse.TabletInfo.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WorkflowUpdateResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {vtctldata.WorkflowUpdateResponse} WorkflowUpdateResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkflowUpdateResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WorkflowUpdateResponse message.
+ * @function verify
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WorkflowUpdateResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.summary != null && message.hasOwnProperty("summary"))
+ if (!$util.isString(message.summary))
+ return "summary: string expected";
+ if (message.details != null && message.hasOwnProperty("details")) {
+ if (!Array.isArray(message.details))
+ return "details: array expected";
+ for (let i = 0; i < message.details.length; ++i) {
+ let error = $root.vtctldata.WorkflowUpdateResponse.TabletInfo.verify(message.details[i]);
+ if (error)
+ return "details." + error;
}
- if (message.id != null && message.hasOwnProperty("id"))
- object.id = message.id;
- if (message.tablet != null && message.hasOwnProperty("tablet"))
- object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options);
- if (message.source_shard != null && message.hasOwnProperty("source_shard"))
- object.source_shard = message.source_shard;
- if (message.position != null && message.hasOwnProperty("position"))
- object.position = message.position;
- if (message.status != null && message.hasOwnProperty("status"))
- object.status = message.status;
- if (message.info != null && message.hasOwnProperty("info"))
- object.info = message.info;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a WorkflowUpdateResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {vtctldata.WorkflowUpdateResponse} WorkflowUpdateResponse
+ */
+ WorkflowUpdateResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.WorkflowUpdateResponse)
return object;
- };
+ let message = new $root.vtctldata.WorkflowUpdateResponse();
+ if (object.summary != null)
+ message.summary = String(object.summary);
+ if (object.details) {
+ if (!Array.isArray(object.details))
+ throw TypeError(".vtctldata.WorkflowUpdateResponse.details: array expected");
+ message.details = [];
+ for (let i = 0; i < object.details.length; ++i) {
+ if (typeof object.details[i] !== "object")
+ throw TypeError(".vtctldata.WorkflowUpdateResponse.details: object expected");
+ message.details[i] = $root.vtctldata.WorkflowUpdateResponse.TabletInfo.fromObject(object.details[i]);
+ }
+ }
+ return message;
+ };
- /**
- * Converts this ShardStreamState to JSON.
- * @function toJSON
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreamState
- * @instance
- * @returns {Object.} JSON object
- */
- ShardStreamState.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Creates a plain object from a WorkflowUpdateResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {vtctldata.WorkflowUpdateResponse} message WorkflowUpdateResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WorkflowUpdateResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ let object = {};
+ if (options.arrays || options.defaults)
+ object.details = [];
+ if (options.defaults)
+ object.summary = "";
+ if (message.summary != null && message.hasOwnProperty("summary"))
+ object.summary = message.summary;
+ if (message.details && message.details.length) {
+ object.details = [];
+ for (let j = 0; j < message.details.length; ++j)
+ object.details[j] = $root.vtctldata.WorkflowUpdateResponse.TabletInfo.toObject(message.details[j], options);
+ }
+ return object;
+ };
- /**
- * Gets the default type url for ShardStreamState
- * @function getTypeUrl
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreamState
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- ShardStreamState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/vtctldata.WorkflowStatusResponse.ShardStreamState";
- };
+ /**
+ * Converts this WorkflowUpdateResponse to JSON.
+ * @function toJSON
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WorkflowUpdateResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- return ShardStreamState;
- })();
+ /**
+ * Gets the default type url for WorkflowUpdateResponse
+ * @function getTypeUrl
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WorkflowUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/vtctldata.WorkflowUpdateResponse";
+ };
- WorkflowStatusResponse.ShardStreams = (function() {
+ WorkflowUpdateResponse.TabletInfo = (function() {
/**
- * Properties of a ShardStreams.
- * @memberof vtctldata.WorkflowStatusResponse
- * @interface IShardStreams
- * @property {Array.|null} [streams] ShardStreams streams
+ * Properties of a TabletInfo.
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @interface ITabletInfo
+ * @property {topodata.ITabletAlias|null} [tablet] TabletInfo tablet
+ * @property {boolean|null} [changed] TabletInfo changed
*/
/**
- * Constructs a new ShardStreams.
- * @memberof vtctldata.WorkflowStatusResponse
- * @classdesc Represents a ShardStreams.
- * @implements IShardStreams
+ * Constructs a new TabletInfo.
+ * @memberof vtctldata.WorkflowUpdateResponse
+ * @classdesc Represents a TabletInfo.
+ * @implements ITabletInfo
* @constructor
- * @param {vtctldata.WorkflowStatusResponse.IShardStreams=} [properties] Properties to set
+ * @param {vtctldata.WorkflowUpdateResponse.ITabletInfo=} [properties] Properties to set
*/
- function ShardStreams(properties) {
- this.streams = [];
+ function TabletInfo(properties) {
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -179742,78 +180499,89 @@ export const vtctldata = $root.vtctldata = (() => {
}
/**
- * ShardStreams streams.
- * @member {Array.} streams
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * TabletInfo tablet.
+ * @member {topodata.ITabletAlias|null|undefined} tablet
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @instance
*/
- ShardStreams.prototype.streams = $util.emptyArray;
+ TabletInfo.prototype.tablet = null;
/**
- * Creates a new ShardStreams instance using the specified properties.
+ * TabletInfo changed.
+ * @member {boolean} changed
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
+ * @instance
+ */
+ TabletInfo.prototype.changed = false;
+
+ /**
+ * Creates a new TabletInfo instance using the specified properties.
* @function create
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
- * @param {vtctldata.WorkflowStatusResponse.IShardStreams=} [properties] Properties to set
- * @returns {vtctldata.WorkflowStatusResponse.ShardStreams} ShardStreams instance
+ * @param {vtctldata.WorkflowUpdateResponse.ITabletInfo=} [properties] Properties to set
+ * @returns {vtctldata.WorkflowUpdateResponse.TabletInfo} TabletInfo instance
*/
- ShardStreams.create = function create(properties) {
- return new ShardStreams(properties);
+ TabletInfo.create = function create(properties) {
+ return new TabletInfo(properties);
};
/**
- * Encodes the specified ShardStreams message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages.
+ * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages.
* @function encode
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
- * @param {vtctldata.WorkflowStatusResponse.IShardStreams} message ShardStreams message or plain object to encode
+ * @param {vtctldata.WorkflowUpdateResponse.ITabletInfo} message TabletInfo message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- ShardStreams.encode = function encode(message, writer) {
+ TabletInfo.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.streams != null && message.streams.length)
- for (let i = 0; i < message.streams.length; ++i)
- $root.vtctldata.WorkflowStatusResponse.ShardStreamState.encode(message.streams[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet"))
+ $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.changed != null && Object.hasOwnProperty.call(message, "changed"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.changed);
return writer;
};
/**
- * Encodes the specified ShardStreams message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages.
+ * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages.
* @function encodeDelimited
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
- * @param {vtctldata.WorkflowStatusResponse.IShardStreams} message ShardStreams message or plain object to encode
+ * @param {vtctldata.WorkflowUpdateResponse.ITabletInfo} message TabletInfo message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- ShardStreams.encodeDelimited = function encodeDelimited(message, writer) {
+ TabletInfo.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ShardStreams message from the specified reader or buffer.
+ * Decodes a TabletInfo message from the specified reader or buffer.
* @function decode
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.WorkflowStatusResponse.ShardStreams} ShardStreams
+ * @returns {vtctldata.WorkflowUpdateResponse.TabletInfo} TabletInfo
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- ShardStreams.decode = function decode(reader, length) {
+ TabletInfo.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.WorkflowStatusResponse.ShardStreams();
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.WorkflowUpdateResponse.TabletInfo();
while (reader.pos < end) {
let tag = reader.uint32();
switch (tag >>> 3) {
+ case 1: {
+ message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32());
+ break;
+ }
case 2: {
- if (!(message.streams && message.streams.length))
- message.streams = [];
- message.streams.push($root.vtctldata.WorkflowStatusResponse.ShardStreamState.decode(reader, reader.uint32()));
+ message.changed = reader.bool();
break;
}
default:
@@ -179825,155 +180593,138 @@ export const vtctldata = $root.vtctldata = (() => {
};
/**
- * Decodes a ShardStreams message from the specified reader or buffer, length delimited.
+ * Decodes a TabletInfo message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.WorkflowStatusResponse.ShardStreams} ShardStreams
+ * @returns {vtctldata.WorkflowUpdateResponse.TabletInfo} TabletInfo
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- ShardStreams.decodeDelimited = function decodeDelimited(reader) {
+ TabletInfo.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a ShardStreams message.
+ * Verifies a TabletInfo message.
* @function verify
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- ShardStreams.verify = function verify(message) {
+ TabletInfo.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.streams != null && message.hasOwnProperty("streams")) {
- if (!Array.isArray(message.streams))
- return "streams: array expected";
- for (let i = 0; i < message.streams.length; ++i) {
- let error = $root.vtctldata.WorkflowStatusResponse.ShardStreamState.verify(message.streams[i]);
- if (error)
- return "streams." + error;
- }
+ if (message.tablet != null && message.hasOwnProperty("tablet")) {
+ let error = $root.topodata.TabletAlias.verify(message.tablet);
+ if (error)
+ return "tablet." + error;
}
+ if (message.changed != null && message.hasOwnProperty("changed"))
+ if (typeof message.changed !== "boolean")
+ return "changed: boolean expected";
return null;
};
/**
- * Creates a ShardStreams message from a plain object. Also converts values to their respective internal types.
+ * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
* @param {Object.} object Plain object
- * @returns {vtctldata.WorkflowStatusResponse.ShardStreams} ShardStreams
+ * @returns {vtctldata.WorkflowUpdateResponse.TabletInfo} TabletInfo
*/
- ShardStreams.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.WorkflowStatusResponse.ShardStreams)
+ TabletInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.WorkflowUpdateResponse.TabletInfo)
return object;
- let message = new $root.vtctldata.WorkflowStatusResponse.ShardStreams();
- if (object.streams) {
- if (!Array.isArray(object.streams))
- throw TypeError(".vtctldata.WorkflowStatusResponse.ShardStreams.streams: array expected");
- message.streams = [];
- for (let i = 0; i < object.streams.length; ++i) {
- if (typeof object.streams[i] !== "object")
- throw TypeError(".vtctldata.WorkflowStatusResponse.ShardStreams.streams: object expected");
- message.streams[i] = $root.vtctldata.WorkflowStatusResponse.ShardStreamState.fromObject(object.streams[i]);
- }
+ let message = new $root.vtctldata.WorkflowUpdateResponse.TabletInfo();
+ if (object.tablet != null) {
+ if (typeof object.tablet !== "object")
+ throw TypeError(".vtctldata.WorkflowUpdateResponse.TabletInfo.tablet: object expected");
+ message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet);
}
+ if (object.changed != null)
+ message.changed = Boolean(object.changed);
return message;
};
/**
- * Creates a plain object from a ShardStreams message. Also converts values to other types if specified.
+ * Creates a plain object from a TabletInfo message. Also converts values to other types if specified.
* @function toObject
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
- * @param {vtctldata.WorkflowStatusResponse.ShardStreams} message ShardStreams
+ * @param {vtctldata.WorkflowUpdateResponse.TabletInfo} message TabletInfo
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ShardStreams.toObject = function toObject(message, options) {
+ TabletInfo.toObject = function toObject(message, options) {
if (!options)
options = {};
let object = {};
- if (options.arrays || options.defaults)
- object.streams = [];
- if (message.streams && message.streams.length) {
- object.streams = [];
- for (let j = 0; j < message.streams.length; ++j)
- object.streams[j] = $root.vtctldata.WorkflowStatusResponse.ShardStreamState.toObject(message.streams[j], options);
+ if (options.defaults) {
+ object.tablet = null;
+ object.changed = false;
}
+ if (message.tablet != null && message.hasOwnProperty("tablet"))
+ object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options);
+ if (message.changed != null && message.hasOwnProperty("changed"))
+ object.changed = message.changed;
return object;
};
/**
- * Converts this ShardStreams to JSON.
+ * Converts this TabletInfo to JSON.
* @function toJSON
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @instance
* @returns {Object.} JSON object
*/
- ShardStreams.prototype.toJSON = function toJSON() {
+ TabletInfo.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for ShardStreams
+ * Gets the default type url for TabletInfo
* @function getTypeUrl
- * @memberof vtctldata.WorkflowStatusResponse.ShardStreams
+ * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ShardStreams.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ TabletInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/vtctldata.WorkflowStatusResponse.ShardStreams";
+ return typeUrlPrefix + "/vtctldata.WorkflowUpdateResponse.TabletInfo";
};
- return ShardStreams;
+ return TabletInfo;
})();
- return WorkflowStatusResponse;
+ return WorkflowUpdateResponse;
})();
- vtctldata.WorkflowSwitchTrafficRequest = (function() {
+ vtctldata.GetMirrorRulesRequest = (function() {
/**
- * Properties of a WorkflowSwitchTrafficRequest.
+ * Properties of a GetMirrorRulesRequest.
* @memberof vtctldata
- * @interface IWorkflowSwitchTrafficRequest
- * @property {string|null} [keyspace] WorkflowSwitchTrafficRequest keyspace
- * @property {string|null} [workflow] WorkflowSwitchTrafficRequest workflow
- * @property {Array.|null} [cells] WorkflowSwitchTrafficRequest cells
- * @property {Array.|null} [tablet_types] WorkflowSwitchTrafficRequest tablet_types
- * @property {vttime.IDuration|null} [max_replication_lag_allowed] WorkflowSwitchTrafficRequest max_replication_lag_allowed
- * @property {boolean|null} [enable_reverse_replication] WorkflowSwitchTrafficRequest enable_reverse_replication
- * @property {number|null} [direction] WorkflowSwitchTrafficRequest direction
- * @property {vttime.IDuration|null} [timeout] WorkflowSwitchTrafficRequest timeout
- * @property {boolean|null} [dry_run] WorkflowSwitchTrafficRequest dry_run
- * @property {boolean|null} [initialize_target_sequences] WorkflowSwitchTrafficRequest initialize_target_sequences
- * @property {Array.|null} [shards] WorkflowSwitchTrafficRequest shards
+ * @interface IGetMirrorRulesRequest
*/
/**
- * Constructs a new WorkflowSwitchTrafficRequest.
+ * Constructs a new GetMirrorRulesRequest.
* @memberof vtctldata
- * @classdesc Represents a WorkflowSwitchTrafficRequest.
- * @implements IWorkflowSwitchTrafficRequest
+ * @classdesc Represents a GetMirrorRulesRequest.
+ * @implements IGetMirrorRulesRequest
* @constructor
- * @param {vtctldata.IWorkflowSwitchTrafficRequest=} [properties] Properties to set
+ * @param {vtctldata.IGetMirrorRulesRequest=} [properties] Properties to set
*/
- function WorkflowSwitchTrafficRequest(properties) {
- this.cells = [];
- this.tablet_types = [];
- this.shards = [];
+ function GetMirrorRulesRequest(properties) {
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -179981,234 +180732,63 @@ export const vtctldata = $root.vtctldata = (() => {
}
/**
- * WorkflowSwitchTrafficRequest keyspace.
- * @member {string} keyspace
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.keyspace = "";
-
- /**
- * WorkflowSwitchTrafficRequest workflow.
- * @member {string} workflow
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.workflow = "";
-
- /**
- * WorkflowSwitchTrafficRequest cells.
- * @member {Array.} cells
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.cells = $util.emptyArray;
-
- /**
- * WorkflowSwitchTrafficRequest tablet_types.
- * @member {Array.} tablet_types
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.tablet_types = $util.emptyArray;
-
- /**
- * WorkflowSwitchTrafficRequest max_replication_lag_allowed.
- * @member {vttime.IDuration|null|undefined} max_replication_lag_allowed
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.max_replication_lag_allowed = null;
-
- /**
- * WorkflowSwitchTrafficRequest enable_reverse_replication.
- * @member {boolean} enable_reverse_replication
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.enable_reverse_replication = false;
-
- /**
- * WorkflowSwitchTrafficRequest direction.
- * @member {number} direction
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.direction = 0;
-
- /**
- * WorkflowSwitchTrafficRequest timeout.
- * @member {vttime.IDuration|null|undefined} timeout
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.timeout = null;
-
- /**
- * WorkflowSwitchTrafficRequest dry_run.
- * @member {boolean} dry_run
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.dry_run = false;
-
- /**
- * WorkflowSwitchTrafficRequest initialize_target_sequences.
- * @member {boolean} initialize_target_sequences
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.initialize_target_sequences = false;
-
- /**
- * WorkflowSwitchTrafficRequest shards.
- * @member {Array.} shards
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @instance
- */
- WorkflowSwitchTrafficRequest.prototype.shards = $util.emptyArray;
-
- /**
- * Creates a new WorkflowSwitchTrafficRequest instance using the specified properties.
+ * Creates a new GetMirrorRulesRequest instance using the specified properties.
* @function create
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @static
- * @param {vtctldata.IWorkflowSwitchTrafficRequest=} [properties] Properties to set
- * @returns {vtctldata.WorkflowSwitchTrafficRequest} WorkflowSwitchTrafficRequest instance
- */
- WorkflowSwitchTrafficRequest.create = function create(properties) {
- return new WorkflowSwitchTrafficRequest(properties);
- };
-
- /**
- * Encodes the specified WorkflowSwitchTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages.
- * @function encode
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
- * @static
- * @param {vtctldata.IWorkflowSwitchTrafficRequest} message WorkflowSwitchTrafficRequest message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- WorkflowSwitchTrafficRequest.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.workflow != null && Object.hasOwnProperty.call(message, "workflow"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow);
- if (message.cells != null && message.cells.length)
- for (let i = 0; i < message.cells.length; ++i)
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]);
- if (message.tablet_types != null && message.tablet_types.length) {
- writer.uint32(/* id 4, wireType 2 =*/34).fork();
- for (let i = 0; i < message.tablet_types.length; ++i)
- writer.int32(message.tablet_types[i]);
- writer.ldelim();
- }
- if (message.max_replication_lag_allowed != null && Object.hasOwnProperty.call(message, "max_replication_lag_allowed"))
- $root.vttime.Duration.encode(message.max_replication_lag_allowed, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
- if (message.enable_reverse_replication != null && Object.hasOwnProperty.call(message, "enable_reverse_replication"))
- writer.uint32(/* id 6, wireType 0 =*/48).bool(message.enable_reverse_replication);
- if (message.direction != null && Object.hasOwnProperty.call(message, "direction"))
- writer.uint32(/* id 7, wireType 0 =*/56).int32(message.direction);
- if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout"))
- $root.vttime.Duration.encode(message.timeout, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
- if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run"))
- writer.uint32(/* id 9, wireType 0 =*/72).bool(message.dry_run);
- if (message.initialize_target_sequences != null && Object.hasOwnProperty.call(message, "initialize_target_sequences"))
- writer.uint32(/* id 10, wireType 0 =*/80).bool(message.initialize_target_sequences);
- if (message.shards != null && message.shards.length)
- for (let i = 0; i < message.shards.length; ++i)
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.shards[i]);
+ * @memberof vtctldata.GetMirrorRulesRequest
+ * @static
+ * @param {vtctldata.IGetMirrorRulesRequest=} [properties] Properties to set
+ * @returns {vtctldata.GetMirrorRulesRequest} GetMirrorRulesRequest instance
+ */
+ GetMirrorRulesRequest.create = function create(properties) {
+ return new GetMirrorRulesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetMirrorRulesRequest message. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof vtctldata.GetMirrorRulesRequest
+ * @static
+ * @param {vtctldata.IGetMirrorRulesRequest} message GetMirrorRulesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetMirrorRulesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
return writer;
};
/**
- * Encodes the specified WorkflowSwitchTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages.
+ * Encodes the specified GetMirrorRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @memberof vtctldata.GetMirrorRulesRequest
* @static
- * @param {vtctldata.IWorkflowSwitchTrafficRequest} message WorkflowSwitchTrafficRequest message or plain object to encode
+ * @param {vtctldata.IGetMirrorRulesRequest} message GetMirrorRulesRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- WorkflowSwitchTrafficRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ GetMirrorRulesRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer.
+ * Decodes a GetMirrorRulesRequest message from the specified reader or buffer.
* @function decode
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @memberof vtctldata.GetMirrorRulesRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.WorkflowSwitchTrafficRequest} WorkflowSwitchTrafficRequest
+ * @returns {vtctldata.GetMirrorRulesRequest} GetMirrorRulesRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- WorkflowSwitchTrafficRequest.decode = function decode(reader, length) {
+ GetMirrorRulesRequest.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.WorkflowSwitchTrafficRequest();
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetMirrorRulesRequest();
while (reader.pos < end) {
let tag = reader.uint32();
switch (tag >>> 3) {
- case 1: {
- message.keyspace = reader.string();
- break;
- }
- case 2: {
- message.workflow = reader.string();
- break;
- }
- case 3: {
- if (!(message.cells && message.cells.length))
- message.cells = [];
- message.cells.push(reader.string());
- break;
- }
- case 4: {
- if (!(message.tablet_types && message.tablet_types.length))
- message.tablet_types = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.tablet_types.push(reader.int32());
- } else
- message.tablet_types.push(reader.int32());
- break;
- }
- case 5: {
- message.max_replication_lag_allowed = $root.vttime.Duration.decode(reader, reader.uint32());
- break;
- }
- case 6: {
- message.enable_reverse_replication = reader.bool();
- break;
- }
- case 7: {
- message.direction = reader.int32();
- break;
- }
- case 8: {
- message.timeout = $root.vttime.Duration.decode(reader, reader.uint32());
- break;
- }
- case 9: {
- message.dry_run = reader.bool();
- break;
- }
- case 10: {
- message.initialize_target_sequences = reader.bool();
- break;
- }
- case 11: {
- if (!(message.shards && message.shards.length))
- message.shards = [];
- message.shards.push(reader.string());
- break;
- }
default:
reader.skipType(tag & 7);
break;
@@ -180218,319 +180798,109 @@ export const vtctldata = $root.vtctldata = (() => {
};
/**
- * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer, length delimited.
+ * Decodes a GetMirrorRulesRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @memberof vtctldata.GetMirrorRulesRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.WorkflowSwitchTrafficRequest} WorkflowSwitchTrafficRequest
+ * @returns {vtctldata.GetMirrorRulesRequest} GetMirrorRulesRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- WorkflowSwitchTrafficRequest.decodeDelimited = function decodeDelimited(reader) {
+ GetMirrorRulesRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a WorkflowSwitchTrafficRequest message.
+ * Verifies a GetMirrorRulesRequest message.
* @function verify
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @memberof vtctldata.GetMirrorRulesRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- WorkflowSwitchTrafficRequest.verify = function verify(message) {
+ GetMirrorRulesRequest.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.workflow != null && message.hasOwnProperty("workflow"))
- if (!$util.isString(message.workflow))
- return "workflow: string expected";
- if (message.cells != null && message.hasOwnProperty("cells")) {
- if (!Array.isArray(message.cells))
- return "cells: array expected";
- for (let i = 0; i < message.cells.length; ++i)
- if (!$util.isString(message.cells[i]))
- return "cells: string[] expected";
- }
- if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) {
- if (!Array.isArray(message.tablet_types))
- return "tablet_types: array expected";
- for (let i = 0; i < message.tablet_types.length; ++i)
- switch (message.tablet_types[i]) {
- default:
- return "tablet_types: enum value[] expected";
- case 0:
- case 1:
- case 1:
- case 2:
- case 3:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- break;
- }
- }
- if (message.max_replication_lag_allowed != null && message.hasOwnProperty("max_replication_lag_allowed")) {
- let error = $root.vttime.Duration.verify(message.max_replication_lag_allowed);
- if (error)
- return "max_replication_lag_allowed." + error;
- }
- if (message.enable_reverse_replication != null && message.hasOwnProperty("enable_reverse_replication"))
- if (typeof message.enable_reverse_replication !== "boolean")
- return "enable_reverse_replication: boolean expected";
- if (message.direction != null && message.hasOwnProperty("direction"))
- if (!$util.isInteger(message.direction))
- return "direction: integer expected";
- if (message.timeout != null && message.hasOwnProperty("timeout")) {
- let error = $root.vttime.Duration.verify(message.timeout);
- if (error)
- return "timeout." + error;
- }
- if (message.dry_run != null && message.hasOwnProperty("dry_run"))
- if (typeof message.dry_run !== "boolean")
- return "dry_run: boolean expected";
- if (message.initialize_target_sequences != null && message.hasOwnProperty("initialize_target_sequences"))
- if (typeof message.initialize_target_sequences !== "boolean")
- return "initialize_target_sequences: 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;
};
/**
- * Creates a WorkflowSwitchTrafficRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetMirrorRulesRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @memberof vtctldata.GetMirrorRulesRequest
* @static
* @param {Object.} object Plain object
- * @returns {vtctldata.WorkflowSwitchTrafficRequest} WorkflowSwitchTrafficRequest
+ * @returns {vtctldata.GetMirrorRulesRequest} GetMirrorRulesRequest
*/
- WorkflowSwitchTrafficRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.WorkflowSwitchTrafficRequest)
+ GetMirrorRulesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.GetMirrorRulesRequest)
return object;
- let message = new $root.vtctldata.WorkflowSwitchTrafficRequest();
- if (object.keyspace != null)
- message.keyspace = String(object.keyspace);
- if (object.workflow != null)
- message.workflow = String(object.workflow);
- if (object.cells) {
- if (!Array.isArray(object.cells))
- throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.cells: array expected");
- message.cells = [];
- for (let i = 0; i < object.cells.length; ++i)
- message.cells[i] = String(object.cells[i]);
- }
- if (object.tablet_types) {
- if (!Array.isArray(object.tablet_types))
- throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.tablet_types: array expected");
- message.tablet_types = [];
- for (let i = 0; i < object.tablet_types.length; ++i)
- switch (object.tablet_types[i]) {
- default:
- if (typeof object.tablet_types[i] === "number") {
- message.tablet_types[i] = object.tablet_types[i];
- break;
- }
- case "UNKNOWN":
- case 0:
- message.tablet_types[i] = 0;
- break;
- case "PRIMARY":
- case 1:
- message.tablet_types[i] = 1;
- break;
- case "MASTER":
- case 1:
- message.tablet_types[i] = 1;
- break;
- case "REPLICA":
- case 2:
- message.tablet_types[i] = 2;
- break;
- case "RDONLY":
- case 3:
- message.tablet_types[i] = 3;
- break;
- case "BATCH":
- case 3:
- message.tablet_types[i] = 3;
- break;
- case "SPARE":
- case 4:
- message.tablet_types[i] = 4;
- break;
- case "EXPERIMENTAL":
- case 5:
- message.tablet_types[i] = 5;
- break;
- case "BACKUP":
- case 6:
- message.tablet_types[i] = 6;
- break;
- case "RESTORE":
- case 7:
- message.tablet_types[i] = 7;
- break;
- case "DRAINED":
- case 8:
- message.tablet_types[i] = 8;
- break;
- }
- }
- if (object.max_replication_lag_allowed != null) {
- if (typeof object.max_replication_lag_allowed !== "object")
- throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.max_replication_lag_allowed: object expected");
- message.max_replication_lag_allowed = $root.vttime.Duration.fromObject(object.max_replication_lag_allowed);
- }
- if (object.enable_reverse_replication != null)
- message.enable_reverse_replication = Boolean(object.enable_reverse_replication);
- if (object.direction != null)
- message.direction = object.direction | 0;
- if (object.timeout != null) {
- if (typeof object.timeout !== "object")
- throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.timeout: object expected");
- message.timeout = $root.vttime.Duration.fromObject(object.timeout);
- }
- if (object.dry_run != null)
- message.dry_run = Boolean(object.dry_run);
- if (object.initialize_target_sequences != null)
- message.initialize_target_sequences = Boolean(object.initialize_target_sequences);
- if (object.shards) {
- if (!Array.isArray(object.shards))
- throw TypeError(".vtctldata.WorkflowSwitchTrafficRequest.shards: array expected");
- message.shards = [];
- for (let i = 0; i < object.shards.length; ++i)
- message.shards[i] = String(object.shards[i]);
- }
- return message;
+ return new $root.vtctldata.GetMirrorRulesRequest();
};
/**
- * Creates a plain object from a WorkflowSwitchTrafficRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a GetMirrorRulesRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @memberof vtctldata.GetMirrorRulesRequest
* @static
- * @param {vtctldata.WorkflowSwitchTrafficRequest} message WorkflowSwitchTrafficRequest
+ * @param {vtctldata.GetMirrorRulesRequest} message GetMirrorRulesRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- WorkflowSwitchTrafficRequest.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.cells = [];
- object.tablet_types = [];
- object.shards = [];
- }
- if (options.defaults) {
- object.keyspace = "";
- object.workflow = "";
- object.max_replication_lag_allowed = null;
- object.enable_reverse_replication = false;
- object.direction = 0;
- object.timeout = null;
- object.dry_run = false;
- object.initialize_target_sequences = false;
- }
- if (message.keyspace != null && message.hasOwnProperty("keyspace"))
- object.keyspace = message.keyspace;
- if (message.workflow != null && message.hasOwnProperty("workflow"))
- object.workflow = message.workflow;
- if (message.cells && message.cells.length) {
- object.cells = [];
- for (let j = 0; j < message.cells.length; ++j)
- object.cells[j] = message.cells[j];
- }
- if (message.tablet_types && message.tablet_types.length) {
- object.tablet_types = [];
- for (let j = 0; j < message.tablet_types.length; ++j)
- object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j];
- }
- if (message.max_replication_lag_allowed != null && message.hasOwnProperty("max_replication_lag_allowed"))
- object.max_replication_lag_allowed = $root.vttime.Duration.toObject(message.max_replication_lag_allowed, options);
- if (message.enable_reverse_replication != null && message.hasOwnProperty("enable_reverse_replication"))
- object.enable_reverse_replication = message.enable_reverse_replication;
- if (message.direction != null && message.hasOwnProperty("direction"))
- object.direction = message.direction;
- if (message.timeout != null && message.hasOwnProperty("timeout"))
- object.timeout = $root.vttime.Duration.toObject(message.timeout, options);
- if (message.dry_run != null && message.hasOwnProperty("dry_run"))
- object.dry_run = message.dry_run;
- if (message.initialize_target_sequences != null && message.hasOwnProperty("initialize_target_sequences"))
- object.initialize_target_sequences = message.initialize_target_sequences;
- 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;
+ GetMirrorRulesRequest.toObject = function toObject() {
+ return {};
};
/**
- * Converts this WorkflowSwitchTrafficRequest to JSON.
+ * Converts this GetMirrorRulesRequest to JSON.
* @function toJSON
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @memberof vtctldata.GetMirrorRulesRequest
* @instance
* @returns {Object.} JSON object
*/
- WorkflowSwitchTrafficRequest.prototype.toJSON = function toJSON() {
+ GetMirrorRulesRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for WorkflowSwitchTrafficRequest
+ * Gets the default type url for GetMirrorRulesRequest
* @function getTypeUrl
- * @memberof vtctldata.WorkflowSwitchTrafficRequest
+ * @memberof vtctldata.GetMirrorRulesRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- WorkflowSwitchTrafficRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ GetMirrorRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/vtctldata.WorkflowSwitchTrafficRequest";
+ return typeUrlPrefix + "/vtctldata.GetMirrorRulesRequest";
};
- return WorkflowSwitchTrafficRequest;
+ return GetMirrorRulesRequest;
})();
- vtctldata.WorkflowSwitchTrafficResponse = (function() {
+ vtctldata.GetMirrorRulesResponse = (function() {
/**
- * Properties of a WorkflowSwitchTrafficResponse.
+ * Properties of a GetMirrorRulesResponse.
* @memberof vtctldata
- * @interface IWorkflowSwitchTrafficResponse
- * @property {string|null} [summary] WorkflowSwitchTrafficResponse summary
- * @property {string|null} [start_state] WorkflowSwitchTrafficResponse start_state
- * @property {string|null} [current_state] WorkflowSwitchTrafficResponse current_state
- * @property {Array.|null} [dry_run_results] WorkflowSwitchTrafficResponse dry_run_results
+ * @interface IGetMirrorRulesResponse
+ * @property {vschema.IMirrorRules|null} [mirror_rules] GetMirrorRulesResponse mirror_rules
*/
/**
- * Constructs a new WorkflowSwitchTrafficResponse.
+ * Constructs a new GetMirrorRulesResponse.
* @memberof vtctldata
- * @classdesc Represents a WorkflowSwitchTrafficResponse.
- * @implements IWorkflowSwitchTrafficResponse
+ * @classdesc Represents a GetMirrorRulesResponse.
+ * @implements IGetMirrorRulesResponse
* @constructor
- * @param {vtctldata.IWorkflowSwitchTrafficResponse=} [properties] Properties to set
+ * @param {vtctldata.IGetMirrorRulesResponse=} [properties] Properties to set
*/
- function WorkflowSwitchTrafficResponse(properties) {
- this.dry_run_results = [];
+ function GetMirrorRulesResponse(properties) {
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -180538,120 +180908,75 @@ export const vtctldata = $root.vtctldata = (() => {
}
/**
- * WorkflowSwitchTrafficResponse summary.
- * @member {string} summary
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
- * @instance
- */
- WorkflowSwitchTrafficResponse.prototype.summary = "";
-
- /**
- * WorkflowSwitchTrafficResponse start_state.
- * @member {string} start_state
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
- * @instance
- */
- WorkflowSwitchTrafficResponse.prototype.start_state = "";
-
- /**
- * WorkflowSwitchTrafficResponse current_state.
- * @member {string} current_state
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
- * @instance
- */
- WorkflowSwitchTrafficResponse.prototype.current_state = "";
-
- /**
- * WorkflowSwitchTrafficResponse dry_run_results.
- * @member {Array.} dry_run_results
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * GetMirrorRulesResponse mirror_rules.
+ * @member {vschema.IMirrorRules|null|undefined} mirror_rules
+ * @memberof vtctldata.GetMirrorRulesResponse
* @instance
*/
- WorkflowSwitchTrafficResponse.prototype.dry_run_results = $util.emptyArray;
+ GetMirrorRulesResponse.prototype.mirror_rules = null;
/**
- * Creates a new WorkflowSwitchTrafficResponse instance using the specified properties.
+ * Creates a new GetMirrorRulesResponse instance using the specified properties.
* @function create
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
- * @param {vtctldata.IWorkflowSwitchTrafficResponse=} [properties] Properties to set
- * @returns {vtctldata.WorkflowSwitchTrafficResponse} WorkflowSwitchTrafficResponse instance
+ * @param {vtctldata.IGetMirrorRulesResponse=} [properties] Properties to set
+ * @returns {vtctldata.GetMirrorRulesResponse} GetMirrorRulesResponse instance
*/
- WorkflowSwitchTrafficResponse.create = function create(properties) {
- return new WorkflowSwitchTrafficResponse(properties);
+ GetMirrorRulesResponse.create = function create(properties) {
+ return new GetMirrorRulesResponse(properties);
};
/**
- * Encodes the specified WorkflowSwitchTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages.
+ * Encodes the specified GetMirrorRulesResponse message. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages.
* @function encode
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
- * @param {vtctldata.IWorkflowSwitchTrafficResponse} message WorkflowSwitchTrafficResponse message or plain object to encode
+ * @param {vtctldata.IGetMirrorRulesResponse} message GetMirrorRulesResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- WorkflowSwitchTrafficResponse.encode = function encode(message, writer) {
+ GetMirrorRulesResponse.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.summary != null && Object.hasOwnProperty.call(message, "summary"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary);
- if (message.start_state != null && Object.hasOwnProperty.call(message, "start_state"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.start_state);
- if (message.current_state != null && Object.hasOwnProperty.call(message, "current_state"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.current_state);
- if (message.dry_run_results != null && message.dry_run_results.length)
- for (let i = 0; i < message.dry_run_results.length; ++i)
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.dry_run_results[i]);
+ if (message.mirror_rules != null && Object.hasOwnProperty.call(message, "mirror_rules"))
+ $root.vschema.MirrorRules.encode(message.mirror_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
return writer;
};
/**
- * Encodes the specified WorkflowSwitchTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages.
+ * Encodes the specified GetMirrorRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages.
* @function encodeDelimited
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
- * @param {vtctldata.IWorkflowSwitchTrafficResponse} message WorkflowSwitchTrafficResponse message or plain object to encode
+ * @param {vtctldata.IGetMirrorRulesResponse} message GetMirrorRulesResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- WorkflowSwitchTrafficResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ GetMirrorRulesResponse.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer.
+ * Decodes a GetMirrorRulesResponse message from the specified reader or buffer.
* @function decode
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.WorkflowSwitchTrafficResponse} WorkflowSwitchTrafficResponse
+ * @returns {vtctldata.GetMirrorRulesResponse} GetMirrorRulesResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- WorkflowSwitchTrafficResponse.decode = function decode(reader, length) {
+ GetMirrorRulesResponse.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.WorkflowSwitchTrafficResponse();
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetMirrorRulesResponse();
while (reader.pos < end) {
let tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
- message.summary = reader.string();
- break;
- }
- case 2: {
- message.start_state = reader.string();
- break;
- }
- case 3: {
- message.current_state = reader.string();
- break;
- }
- case 4: {
- if (!(message.dry_run_results && message.dry_run_results.length))
- message.dry_run_results = [];
- message.dry_run_results.push(reader.string());
+ message.mirror_rules = $root.vschema.MirrorRules.decode(reader, reader.uint32());
break;
}
default:
@@ -180663,161 +180988,131 @@ export const vtctldata = $root.vtctldata = (() => {
};
/**
- * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer, length delimited.
+ * Decodes a GetMirrorRulesResponse message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.WorkflowSwitchTrafficResponse} WorkflowSwitchTrafficResponse
+ * @returns {vtctldata.GetMirrorRulesResponse} GetMirrorRulesResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- WorkflowSwitchTrafficResponse.decodeDelimited = function decodeDelimited(reader) {
+ GetMirrorRulesResponse.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a WorkflowSwitchTrafficResponse message.
+ * Verifies a GetMirrorRulesResponse message.
* @function verify
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- WorkflowSwitchTrafficResponse.verify = function verify(message) {
+ GetMirrorRulesResponse.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.summary != null && message.hasOwnProperty("summary"))
- if (!$util.isString(message.summary))
- return "summary: string expected";
- if (message.start_state != null && message.hasOwnProperty("start_state"))
- if (!$util.isString(message.start_state))
- return "start_state: string expected";
- if (message.current_state != null && message.hasOwnProperty("current_state"))
- if (!$util.isString(message.current_state))
- return "current_state: string expected";
- if (message.dry_run_results != null && message.hasOwnProperty("dry_run_results")) {
- if (!Array.isArray(message.dry_run_results))
- return "dry_run_results: array expected";
- for (let i = 0; i < message.dry_run_results.length; ++i)
- if (!$util.isString(message.dry_run_results[i]))
- return "dry_run_results: string[] expected";
+ if (message.mirror_rules != null && message.hasOwnProperty("mirror_rules")) {
+ let error = $root.vschema.MirrorRules.verify(message.mirror_rules);
+ if (error)
+ return "mirror_rules." + error;
}
return null;
};
/**
- * Creates a WorkflowSwitchTrafficResponse message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetMirrorRulesResponse message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
* @param {Object.} object Plain object
- * @returns {vtctldata.WorkflowSwitchTrafficResponse} WorkflowSwitchTrafficResponse
+ * @returns {vtctldata.GetMirrorRulesResponse} GetMirrorRulesResponse
*/
- WorkflowSwitchTrafficResponse.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.WorkflowSwitchTrafficResponse)
+ GetMirrorRulesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.GetMirrorRulesResponse)
return object;
- let message = new $root.vtctldata.WorkflowSwitchTrafficResponse();
- if (object.summary != null)
- message.summary = String(object.summary);
- if (object.start_state != null)
- message.start_state = String(object.start_state);
- if (object.current_state != null)
- message.current_state = String(object.current_state);
- if (object.dry_run_results) {
- if (!Array.isArray(object.dry_run_results))
- throw TypeError(".vtctldata.WorkflowSwitchTrafficResponse.dry_run_results: array expected");
- message.dry_run_results = [];
- for (let i = 0; i < object.dry_run_results.length; ++i)
- message.dry_run_results[i] = String(object.dry_run_results[i]);
+ let message = new $root.vtctldata.GetMirrorRulesResponse();
+ if (object.mirror_rules != null) {
+ if (typeof object.mirror_rules !== "object")
+ throw TypeError(".vtctldata.GetMirrorRulesResponse.mirror_rules: object expected");
+ message.mirror_rules = $root.vschema.MirrorRules.fromObject(object.mirror_rules);
}
return message;
};
/**
- * Creates a plain object from a WorkflowSwitchTrafficResponse message. Also converts values to other types if specified.
+ * Creates a plain object from a GetMirrorRulesResponse message. Also converts values to other types if specified.
* @function toObject
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
- * @param {vtctldata.WorkflowSwitchTrafficResponse} message WorkflowSwitchTrafficResponse
+ * @param {vtctldata.GetMirrorRulesResponse} message GetMirrorRulesResponse
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- WorkflowSwitchTrafficResponse.toObject = function toObject(message, options) {
+ GetMirrorRulesResponse.toObject = function toObject(message, options) {
if (!options)
options = {};
let object = {};
- if (options.arrays || options.defaults)
- object.dry_run_results = [];
- if (options.defaults) {
- object.summary = "";
- object.start_state = "";
- object.current_state = "";
- }
- if (message.summary != null && message.hasOwnProperty("summary"))
- object.summary = message.summary;
- if (message.start_state != null && message.hasOwnProperty("start_state"))
- object.start_state = message.start_state;
- if (message.current_state != null && message.hasOwnProperty("current_state"))
- object.current_state = message.current_state;
- if (message.dry_run_results && message.dry_run_results.length) {
- object.dry_run_results = [];
- for (let j = 0; j < message.dry_run_results.length; ++j)
- object.dry_run_results[j] = message.dry_run_results[j];
- }
+ if (options.defaults)
+ object.mirror_rules = null;
+ if (message.mirror_rules != null && message.hasOwnProperty("mirror_rules"))
+ object.mirror_rules = $root.vschema.MirrorRules.toObject(message.mirror_rules, options);
return object;
};
/**
- * Converts this WorkflowSwitchTrafficResponse to JSON.
+ * Converts this GetMirrorRulesResponse to JSON.
* @function toJSON
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @instance
* @returns {Object.} JSON object
*/
- WorkflowSwitchTrafficResponse.prototype.toJSON = function toJSON() {
+ GetMirrorRulesResponse.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for WorkflowSwitchTrafficResponse
+ * Gets the default type url for GetMirrorRulesResponse
* @function getTypeUrl
- * @memberof vtctldata.WorkflowSwitchTrafficResponse
+ * @memberof vtctldata.GetMirrorRulesResponse
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- WorkflowSwitchTrafficResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ GetMirrorRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/vtctldata.WorkflowSwitchTrafficResponse";
+ return typeUrlPrefix + "/vtctldata.GetMirrorRulesResponse";
};
- return WorkflowSwitchTrafficResponse;
+ return GetMirrorRulesResponse;
})();
- vtctldata.WorkflowUpdateRequest = (function() {
+ vtctldata.WorkflowMirrorTrafficRequest = (function() {
/**
- * Properties of a WorkflowUpdateRequest.
+ * Properties of a WorkflowMirrorTrafficRequest.
* @memberof vtctldata
- * @interface IWorkflowUpdateRequest
- * @property {string|null} [keyspace] WorkflowUpdateRequest keyspace
- * @property {tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null} [tablet_request] WorkflowUpdateRequest tablet_request
+ * @interface IWorkflowMirrorTrafficRequest
+ * @property {string|null} [keyspace] WorkflowMirrorTrafficRequest keyspace
+ * @property {string|null} [workflow] WorkflowMirrorTrafficRequest workflow
+ * @property {Array.|null} [tablet_types] WorkflowMirrorTrafficRequest tablet_types
+ * @property {number|null} [percent] WorkflowMirrorTrafficRequest percent
*/
/**
- * Constructs a new WorkflowUpdateRequest.
+ * Constructs a new WorkflowMirrorTrafficRequest.
* @memberof vtctldata
- * @classdesc Represents a WorkflowUpdateRequest.
- * @implements IWorkflowUpdateRequest
+ * @classdesc Represents a WorkflowMirrorTrafficRequest.
+ * @implements IWorkflowMirrorTrafficRequest
* @constructor
- * @param {vtctldata.IWorkflowUpdateRequest=} [properties] Properties to set
+ * @param {vtctldata.IWorkflowMirrorTrafficRequest=} [properties] Properties to set
*/
- function WorkflowUpdateRequest(properties) {
+ function WorkflowMirrorTrafficRequest(properties) {
+ this.tablet_types = [];
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -180825,80 +181120,104 @@ export const vtctldata = $root.vtctldata = (() => {
}
/**
- * WorkflowUpdateRequest keyspace.
+ * WorkflowMirrorTrafficRequest keyspace.
* @member {string} keyspace
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @instance
*/
- WorkflowUpdateRequest.prototype.keyspace = "";
+ WorkflowMirrorTrafficRequest.prototype.keyspace = "";
/**
- * WorkflowUpdateRequest tablet_request.
- * @member {tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null|undefined} tablet_request
- * @memberof vtctldata.WorkflowUpdateRequest
+ * WorkflowMirrorTrafficRequest workflow.
+ * @member {string} workflow
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @instance
*/
- WorkflowUpdateRequest.prototype.tablet_request = null;
+ WorkflowMirrorTrafficRequest.prototype.workflow = "";
/**
- * Creates a new WorkflowUpdateRequest instance using the specified properties.
+ * WorkflowMirrorTrafficRequest tablet_types.
+ * @member {Array.} tablet_types
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
+ * @instance
+ */
+ WorkflowMirrorTrafficRequest.prototype.tablet_types = $util.emptyArray;
+
+ /**
+ * WorkflowMirrorTrafficRequest percent.
+ * @member {number} percent
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
+ * @instance
+ */
+ WorkflowMirrorTrafficRequest.prototype.percent = 0;
+
+ /**
+ * Creates a new WorkflowMirrorTrafficRequest instance using the specified properties.
* @function create
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
- * @param {vtctldata.IWorkflowUpdateRequest=} [properties] Properties to set
- * @returns {vtctldata.WorkflowUpdateRequest} WorkflowUpdateRequest instance
+ * @param {vtctldata.IWorkflowMirrorTrafficRequest=} [properties] Properties to set
+ * @returns {vtctldata.WorkflowMirrorTrafficRequest} WorkflowMirrorTrafficRequest instance
*/
- WorkflowUpdateRequest.create = function create(properties) {
- return new WorkflowUpdateRequest(properties);
+ WorkflowMirrorTrafficRequest.create = function create(properties) {
+ return new WorkflowMirrorTrafficRequest(properties);
};
/**
- * Encodes the specified WorkflowUpdateRequest message. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages.
+ * Encodes the specified WorkflowMirrorTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages.
* @function encode
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
- * @param {vtctldata.IWorkflowUpdateRequest} message WorkflowUpdateRequest message or plain object to encode
+ * @param {vtctldata.IWorkflowMirrorTrafficRequest} message WorkflowMirrorTrafficRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- WorkflowUpdateRequest.encode = function encode(message, writer) {
+ WorkflowMirrorTrafficRequest.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.tablet_request != null && Object.hasOwnProperty.call(message, "tablet_request"))
- $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.encode(message.tablet_request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow);
+ if (message.tablet_types != null && message.tablet_types.length) {
+ writer.uint32(/* id 3, wireType 2 =*/26).fork();
+ for (let i = 0; i < message.tablet_types.length; ++i)
+ writer.int32(message.tablet_types[i]);
+ writer.ldelim();
+ }
+ if (message.percent != null && Object.hasOwnProperty.call(message, "percent"))
+ writer.uint32(/* id 4, wireType 5 =*/37).float(message.percent);
return writer;
};
/**
- * Encodes the specified WorkflowUpdateRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages.
+ * Encodes the specified WorkflowMirrorTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
- * @param {vtctldata.IWorkflowUpdateRequest} message WorkflowUpdateRequest message or plain object to encode
+ * @param {vtctldata.IWorkflowMirrorTrafficRequest} message WorkflowMirrorTrafficRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- WorkflowUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ WorkflowMirrorTrafficRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a WorkflowUpdateRequest message from the specified reader or buffer.
+ * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer.
* @function decode
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.WorkflowUpdateRequest} WorkflowUpdateRequest
+ * @returns {vtctldata.WorkflowMirrorTrafficRequest} WorkflowMirrorTrafficRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- WorkflowUpdateRequest.decode = function decode(reader, length) {
+ WorkflowMirrorTrafficRequest.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.WorkflowUpdateRequest();
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.WorkflowMirrorTrafficRequest();
while (reader.pos < end) {
let tag = reader.uint32();
switch (tag >>> 3) {
@@ -180907,7 +181226,22 @@ export const vtctldata = $root.vtctldata = (() => {
break;
}
case 2: {
- message.tablet_request = $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.decode(reader, reader.uint32());
+ message.workflow = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.tablet_types && message.tablet_types.length))
+ message.tablet_types = [];
+ if ((tag & 7) === 2) {
+ let end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.tablet_types.push(reader.int32());
+ } else
+ message.tablet_types.push(reader.int32());
+ break;
+ }
+ case 4: {
+ message.percent = reader.float();
break;
}
default:
@@ -180919,138 +181253,226 @@ export const vtctldata = $root.vtctldata = (() => {
};
/**
- * Decodes a WorkflowUpdateRequest message from the specified reader or buffer, length delimited.
+ * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.WorkflowUpdateRequest} WorkflowUpdateRequest
+ * @returns {vtctldata.WorkflowMirrorTrafficRequest} WorkflowMirrorTrafficRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- WorkflowUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
+ WorkflowMirrorTrafficRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a WorkflowUpdateRequest message.
+ * Verifies a WorkflowMirrorTrafficRequest message.
* @function verify
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- WorkflowUpdateRequest.verify = function verify(message) {
+ WorkflowMirrorTrafficRequest.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.tablet_request != null && message.hasOwnProperty("tablet_request")) {
- let error = $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify(message.tablet_request);
- if (error)
- return "tablet_request." + error;
+ if (message.workflow != null && message.hasOwnProperty("workflow"))
+ if (!$util.isString(message.workflow))
+ return "workflow: string expected";
+ if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) {
+ if (!Array.isArray(message.tablet_types))
+ return "tablet_types: array expected";
+ for (let i = 0; i < message.tablet_types.length; ++i)
+ switch (message.tablet_types[i]) {
+ default:
+ return "tablet_types: enum value[] expected";
+ case 0:
+ case 1:
+ case 1:
+ case 2:
+ case 3:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ break;
+ }
}
+ if (message.percent != null && message.hasOwnProperty("percent"))
+ if (typeof message.percent !== "number")
+ return "percent: number expected";
return null;
};
/**
- * Creates a WorkflowUpdateRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a WorkflowMirrorTrafficRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
* @param {Object.} object Plain object
- * @returns {vtctldata.WorkflowUpdateRequest} WorkflowUpdateRequest
+ * @returns {vtctldata.WorkflowMirrorTrafficRequest} WorkflowMirrorTrafficRequest
*/
- WorkflowUpdateRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.WorkflowUpdateRequest)
+ WorkflowMirrorTrafficRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.WorkflowMirrorTrafficRequest)
return object;
- let message = new $root.vtctldata.WorkflowUpdateRequest();
+ let message = new $root.vtctldata.WorkflowMirrorTrafficRequest();
if (object.keyspace != null)
message.keyspace = String(object.keyspace);
- if (object.tablet_request != null) {
- if (typeof object.tablet_request !== "object")
- throw TypeError(".vtctldata.WorkflowUpdateRequest.tablet_request: object expected");
- message.tablet_request = $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.fromObject(object.tablet_request);
+ if (object.workflow != null)
+ message.workflow = String(object.workflow);
+ if (object.tablet_types) {
+ if (!Array.isArray(object.tablet_types))
+ throw TypeError(".vtctldata.WorkflowMirrorTrafficRequest.tablet_types: array expected");
+ message.tablet_types = [];
+ for (let i = 0; i < object.tablet_types.length; ++i)
+ switch (object.tablet_types[i]) {
+ default:
+ if (typeof object.tablet_types[i] === "number") {
+ message.tablet_types[i] = object.tablet_types[i];
+ break;
+ }
+ case "UNKNOWN":
+ case 0:
+ message.tablet_types[i] = 0;
+ break;
+ case "PRIMARY":
+ case 1:
+ message.tablet_types[i] = 1;
+ break;
+ case "MASTER":
+ case 1:
+ message.tablet_types[i] = 1;
+ break;
+ case "REPLICA":
+ case 2:
+ message.tablet_types[i] = 2;
+ break;
+ case "RDONLY":
+ case 3:
+ message.tablet_types[i] = 3;
+ break;
+ case "BATCH":
+ case 3:
+ message.tablet_types[i] = 3;
+ break;
+ case "SPARE":
+ case 4:
+ message.tablet_types[i] = 4;
+ break;
+ case "EXPERIMENTAL":
+ case 5:
+ message.tablet_types[i] = 5;
+ break;
+ case "BACKUP":
+ case 6:
+ message.tablet_types[i] = 6;
+ break;
+ case "RESTORE":
+ case 7:
+ message.tablet_types[i] = 7;
+ break;
+ case "DRAINED":
+ case 8:
+ message.tablet_types[i] = 8;
+ break;
+ }
}
+ if (object.percent != null)
+ message.percent = Number(object.percent);
return message;
};
/**
- * Creates a plain object from a WorkflowUpdateRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a WorkflowMirrorTrafficRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
- * @param {vtctldata.WorkflowUpdateRequest} message WorkflowUpdateRequest
+ * @param {vtctldata.WorkflowMirrorTrafficRequest} message WorkflowMirrorTrafficRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- WorkflowUpdateRequest.toObject = function toObject(message, options) {
+ WorkflowMirrorTrafficRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
let object = {};
+ if (options.arrays || options.defaults)
+ object.tablet_types = [];
if (options.defaults) {
object.keyspace = "";
- object.tablet_request = null;
+ object.workflow = "";
+ object.percent = 0;
}
if (message.keyspace != null && message.hasOwnProperty("keyspace"))
object.keyspace = message.keyspace;
- if (message.tablet_request != null && message.hasOwnProperty("tablet_request"))
- object.tablet_request = $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest.toObject(message.tablet_request, options);
+ if (message.workflow != null && message.hasOwnProperty("workflow"))
+ object.workflow = message.workflow;
+ if (message.tablet_types && message.tablet_types.length) {
+ object.tablet_types = [];
+ for (let j = 0; j < message.tablet_types.length; ++j)
+ object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j];
+ }
+ if (message.percent != null && message.hasOwnProperty("percent"))
+ object.percent = options.json && !isFinite(message.percent) ? String(message.percent) : message.percent;
return object;
};
/**
- * Converts this WorkflowUpdateRequest to JSON.
+ * Converts this WorkflowMirrorTrafficRequest to JSON.
* @function toJSON
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @instance
* @returns {Object.} JSON object
*/
- WorkflowUpdateRequest.prototype.toJSON = function toJSON() {
+ WorkflowMirrorTrafficRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for WorkflowUpdateRequest
+ * Gets the default type url for WorkflowMirrorTrafficRequest
* @function getTypeUrl
- * @memberof vtctldata.WorkflowUpdateRequest
+ * @memberof vtctldata.WorkflowMirrorTrafficRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- WorkflowUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ WorkflowMirrorTrafficRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/vtctldata.WorkflowUpdateRequest";
+ return typeUrlPrefix + "/vtctldata.WorkflowMirrorTrafficRequest";
};
- return WorkflowUpdateRequest;
+ return WorkflowMirrorTrafficRequest;
})();
- vtctldata.WorkflowUpdateResponse = (function() {
+ vtctldata.WorkflowMirrorTrafficResponse = (function() {
/**
- * Properties of a WorkflowUpdateResponse.
+ * Properties of a WorkflowMirrorTrafficResponse.
* @memberof vtctldata
- * @interface IWorkflowUpdateResponse
- * @property {string|null} [summary] WorkflowUpdateResponse summary
- * @property {Array.|null} [details] WorkflowUpdateResponse details
+ * @interface IWorkflowMirrorTrafficResponse
+ * @property {string|null} [summary] WorkflowMirrorTrafficResponse summary
+ * @property {string|null} [start_state] WorkflowMirrorTrafficResponse start_state
+ * @property {string|null} [current_state] WorkflowMirrorTrafficResponse current_state
*/
/**
- * Constructs a new WorkflowUpdateResponse.
+ * Constructs a new WorkflowMirrorTrafficResponse.
* @memberof vtctldata
- * @classdesc Represents a WorkflowUpdateResponse.
- * @implements IWorkflowUpdateResponse
+ * @classdesc Represents a WorkflowMirrorTrafficResponse.
+ * @implements IWorkflowMirrorTrafficResponse
* @constructor
- * @param {vtctldata.IWorkflowUpdateResponse=} [properties] Properties to set
+ * @param {vtctldata.IWorkflowMirrorTrafficResponse=} [properties] Properties to set
*/
- function WorkflowUpdateResponse(properties) {
- this.details = [];
+ function WorkflowMirrorTrafficResponse(properties) {
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -181058,81 +181480,90 @@ export const vtctldata = $root.vtctldata = (() => {
}
/**
- * WorkflowUpdateResponse summary.
+ * WorkflowMirrorTrafficResponse summary.
* @member {string} summary
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @instance
*/
- WorkflowUpdateResponse.prototype.summary = "";
+ WorkflowMirrorTrafficResponse.prototype.summary = "";
/**
- * WorkflowUpdateResponse details.
- * @member {Array.} details
- * @memberof vtctldata.WorkflowUpdateResponse
+ * WorkflowMirrorTrafficResponse start_state.
+ * @member {string} start_state
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @instance
*/
- WorkflowUpdateResponse.prototype.details = $util.emptyArray;
+ WorkflowMirrorTrafficResponse.prototype.start_state = "";
/**
- * Creates a new WorkflowUpdateResponse instance using the specified properties.
+ * WorkflowMirrorTrafficResponse current_state.
+ * @member {string} current_state
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
+ * @instance
+ */
+ WorkflowMirrorTrafficResponse.prototype.current_state = "";
+
+ /**
+ * Creates a new WorkflowMirrorTrafficResponse instance using the specified properties.
* @function create
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
- * @param {vtctldata.IWorkflowUpdateResponse=} [properties] Properties to set
- * @returns {vtctldata.WorkflowUpdateResponse} WorkflowUpdateResponse instance
+ * @param {vtctldata.IWorkflowMirrorTrafficResponse=} [properties] Properties to set
+ * @returns {vtctldata.WorkflowMirrorTrafficResponse} WorkflowMirrorTrafficResponse instance
*/
- WorkflowUpdateResponse.create = function create(properties) {
- return new WorkflowUpdateResponse(properties);
+ WorkflowMirrorTrafficResponse.create = function create(properties) {
+ return new WorkflowMirrorTrafficResponse(properties);
};
/**
- * Encodes the specified WorkflowUpdateResponse message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages.
+ * Encodes the specified WorkflowMirrorTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages.
* @function encode
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
- * @param {vtctldata.IWorkflowUpdateResponse} message WorkflowUpdateResponse message or plain object to encode
+ * @param {vtctldata.IWorkflowMirrorTrafficResponse} message WorkflowMirrorTrafficResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- WorkflowUpdateResponse.encode = function encode(message, writer) {
+ WorkflowMirrorTrafficResponse.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.summary != null && Object.hasOwnProperty.call(message, "summary"))
writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary);
- if (message.details != null && message.details.length)
- for (let i = 0; i < message.details.length; ++i)
- $root.vtctldata.WorkflowUpdateResponse.TabletInfo.encode(message.details[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.start_state != null && Object.hasOwnProperty.call(message, "start_state"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.start_state);
+ if (message.current_state != null && Object.hasOwnProperty.call(message, "current_state"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.current_state);
return writer;
};
/**
- * Encodes the specified WorkflowUpdateResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages.
+ * Encodes the specified WorkflowMirrorTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages.
* @function encodeDelimited
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
- * @param {vtctldata.IWorkflowUpdateResponse} message WorkflowUpdateResponse message or plain object to encode
+ * @param {vtctldata.IWorkflowMirrorTrafficResponse} message WorkflowMirrorTrafficResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- WorkflowUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ WorkflowMirrorTrafficResponse.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a WorkflowUpdateResponse message from the specified reader or buffer.
+ * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer.
* @function decode
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.WorkflowUpdateResponse} WorkflowUpdateResponse
+ * @returns {vtctldata.WorkflowMirrorTrafficResponse} WorkflowMirrorTrafficResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- WorkflowUpdateResponse.decode = function decode(reader, length) {
+ WorkflowMirrorTrafficResponse.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.WorkflowUpdateResponse();
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.WorkflowMirrorTrafficResponse();
while (reader.pos < end) {
let tag = reader.uint32();
switch (tag >>> 3) {
@@ -181141,9 +181572,11 @@ export const vtctldata = $root.vtctldata = (() => {
break;
}
case 2: {
- if (!(message.details && message.details.length))
- message.details = [];
- message.details.push($root.vtctldata.WorkflowUpdateResponse.TabletInfo.decode(reader, reader.uint32()));
+ message.start_state = reader.string();
+ break;
+ }
+ case 3: {
+ message.current_state = reader.string();
break;
}
default:
@@ -181155,360 +181588,119 @@ export const vtctldata = $root.vtctldata = (() => {
};
/**
- * Decodes a WorkflowUpdateResponse message from the specified reader or buffer, length delimited.
+ * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.WorkflowUpdateResponse} WorkflowUpdateResponse
+ * @returns {vtctldata.WorkflowMirrorTrafficResponse} WorkflowMirrorTrafficResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- WorkflowUpdateResponse.decodeDelimited = function decodeDelimited(reader) {
+ WorkflowMirrorTrafficResponse.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a WorkflowUpdateResponse message.
+ * Verifies a WorkflowMirrorTrafficResponse message.
* @function verify
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- WorkflowUpdateResponse.verify = function verify(message) {
+ WorkflowMirrorTrafficResponse.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.summary != null && message.hasOwnProperty("summary"))
if (!$util.isString(message.summary))
return "summary: string expected";
- if (message.details != null && message.hasOwnProperty("details")) {
- if (!Array.isArray(message.details))
- return "details: array expected";
- for (let i = 0; i < message.details.length; ++i) {
- let error = $root.vtctldata.WorkflowUpdateResponse.TabletInfo.verify(message.details[i]);
- if (error)
- return "details." + error;
- }
- }
+ if (message.start_state != null && message.hasOwnProperty("start_state"))
+ if (!$util.isString(message.start_state))
+ return "start_state: string expected";
+ if (message.current_state != null && message.hasOwnProperty("current_state"))
+ if (!$util.isString(message.current_state))
+ return "current_state: string expected";
return null;
};
/**
- * Creates a WorkflowUpdateResponse message from a plain object. Also converts values to their respective internal types.
+ * Creates a WorkflowMirrorTrafficResponse message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
* @param {Object.} object Plain object
- * @returns {vtctldata.WorkflowUpdateResponse} WorkflowUpdateResponse
+ * @returns {vtctldata.WorkflowMirrorTrafficResponse} WorkflowMirrorTrafficResponse
*/
- WorkflowUpdateResponse.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.WorkflowUpdateResponse)
+ WorkflowMirrorTrafficResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.vtctldata.WorkflowMirrorTrafficResponse)
return object;
- let message = new $root.vtctldata.WorkflowUpdateResponse();
+ let message = new $root.vtctldata.WorkflowMirrorTrafficResponse();
if (object.summary != null)
message.summary = String(object.summary);
- if (object.details) {
- if (!Array.isArray(object.details))
- throw TypeError(".vtctldata.WorkflowUpdateResponse.details: array expected");
- message.details = [];
- for (let i = 0; i < object.details.length; ++i) {
- if (typeof object.details[i] !== "object")
- throw TypeError(".vtctldata.WorkflowUpdateResponse.details: object expected");
- message.details[i] = $root.vtctldata.WorkflowUpdateResponse.TabletInfo.fromObject(object.details[i]);
- }
- }
+ if (object.start_state != null)
+ message.start_state = String(object.start_state);
+ if (object.current_state != null)
+ message.current_state = String(object.current_state);
return message;
};
/**
- * Creates a plain object from a WorkflowUpdateResponse message. Also converts values to other types if specified.
+ * Creates a plain object from a WorkflowMirrorTrafficResponse message. Also converts values to other types if specified.
* @function toObject
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
- * @param {vtctldata.WorkflowUpdateResponse} message WorkflowUpdateResponse
+ * @param {vtctldata.WorkflowMirrorTrafficResponse} message WorkflowMirrorTrafficResponse
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- WorkflowUpdateResponse.toObject = function toObject(message, options) {
+ WorkflowMirrorTrafficResponse.toObject = function toObject(message, options) {
if (!options)
options = {};
let object = {};
- if (options.arrays || options.defaults)
- object.details = [];
- if (options.defaults)
+ if (options.defaults) {
object.summary = "";
+ object.start_state = "";
+ object.current_state = "";
+ }
if (message.summary != null && message.hasOwnProperty("summary"))
object.summary = message.summary;
- if (message.details && message.details.length) {
- object.details = [];
- for (let j = 0; j < message.details.length; ++j)
- object.details[j] = $root.vtctldata.WorkflowUpdateResponse.TabletInfo.toObject(message.details[j], options);
- }
+ if (message.start_state != null && message.hasOwnProperty("start_state"))
+ object.start_state = message.start_state;
+ if (message.current_state != null && message.hasOwnProperty("current_state"))
+ object.current_state = message.current_state;
return object;
};
/**
- * Converts this WorkflowUpdateResponse to JSON.
+ * Converts this WorkflowMirrorTrafficResponse to JSON.
* @function toJSON
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @instance
* @returns {Object.} JSON object
*/
- WorkflowUpdateResponse.prototype.toJSON = function toJSON() {
+ WorkflowMirrorTrafficResponse.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for WorkflowUpdateResponse
+ * Gets the default type url for WorkflowMirrorTrafficResponse
* @function getTypeUrl
- * @memberof vtctldata.WorkflowUpdateResponse
+ * @memberof vtctldata.WorkflowMirrorTrafficResponse
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- WorkflowUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ WorkflowMirrorTrafficResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/vtctldata.WorkflowUpdateResponse";
+ return typeUrlPrefix + "/vtctldata.WorkflowMirrorTrafficResponse";
};
- WorkflowUpdateResponse.TabletInfo = (function() {
-
- /**
- * Properties of a TabletInfo.
- * @memberof vtctldata.WorkflowUpdateResponse
- * @interface ITabletInfo
- * @property {topodata.ITabletAlias|null} [tablet] TabletInfo tablet
- * @property {boolean|null} [changed] TabletInfo changed
- */
-
- /**
- * Constructs a new TabletInfo.
- * @memberof vtctldata.WorkflowUpdateResponse
- * @classdesc Represents a TabletInfo.
- * @implements ITabletInfo
- * @constructor
- * @param {vtctldata.WorkflowUpdateResponse.ITabletInfo=} [properties] Properties to set
- */
- function TabletInfo(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]];
- }
-
- /**
- * TabletInfo tablet.
- * @member {topodata.ITabletAlias|null|undefined} tablet
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @instance
- */
- TabletInfo.prototype.tablet = null;
-
- /**
- * TabletInfo changed.
- * @member {boolean} changed
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @instance
- */
- TabletInfo.prototype.changed = false;
-
- /**
- * Creates a new TabletInfo instance using the specified properties.
- * @function create
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {vtctldata.WorkflowUpdateResponse.ITabletInfo=} [properties] Properties to set
- * @returns {vtctldata.WorkflowUpdateResponse.TabletInfo} TabletInfo instance
- */
- TabletInfo.create = function create(properties) {
- return new TabletInfo(properties);
- };
-
- /**
- * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages.
- * @function encode
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {vtctldata.WorkflowUpdateResponse.ITabletInfo} message TabletInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- TabletInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet"))
- $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.changed != null && Object.hasOwnProperty.call(message, "changed"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.changed);
- return writer;
- };
-
- /**
- * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {vtctldata.WorkflowUpdateResponse.ITabletInfo} message TabletInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- TabletInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a TabletInfo message from the specified reader or buffer.
- * @function decode
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {vtctldata.WorkflowUpdateResponse.TabletInfo} TabletInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- TabletInfo.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.WorkflowUpdateResponse.TabletInfo();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32());
- break;
- }
- case 2: {
- message.changed = reader.bool();
- break;
- }
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a TabletInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {vtctldata.WorkflowUpdateResponse.TabletInfo} TabletInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- TabletInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a TabletInfo message.
- * @function verify
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- TabletInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.tablet != null && message.hasOwnProperty("tablet")) {
- let error = $root.topodata.TabletAlias.verify(message.tablet);
- if (error)
- return "tablet." + error;
- }
- if (message.changed != null && message.hasOwnProperty("changed"))
- if (typeof message.changed !== "boolean")
- return "changed: boolean expected";
- return null;
- };
-
- /**
- * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {Object.} object Plain object
- * @returns {vtctldata.WorkflowUpdateResponse.TabletInfo} TabletInfo
- */
- TabletInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.vtctldata.WorkflowUpdateResponse.TabletInfo)
- return object;
- let message = new $root.vtctldata.WorkflowUpdateResponse.TabletInfo();
- if (object.tablet != null) {
- if (typeof object.tablet !== "object")
- throw TypeError(".vtctldata.WorkflowUpdateResponse.TabletInfo.tablet: object expected");
- message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet);
- }
- if (object.changed != null)
- message.changed = Boolean(object.changed);
- return message;
- };
-
- /**
- * Creates a plain object from a TabletInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {vtctldata.WorkflowUpdateResponse.TabletInfo} message TabletInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- TabletInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.tablet = null;
- object.changed = false;
- }
- if (message.tablet != null && message.hasOwnProperty("tablet"))
- object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options);
- if (message.changed != null && message.hasOwnProperty("changed"))
- object.changed = message.changed;
- return object;
- };
-
- /**
- * Converts this TabletInfo to JSON.
- * @function toJSON
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @instance
- * @returns {Object.} JSON object
- */
- TabletInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for TabletInfo
- * @function getTypeUrl
- * @memberof vtctldata.WorkflowUpdateResponse.TabletInfo
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- TabletInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/vtctldata.WorkflowUpdateResponse.TabletInfo";
- };
-
- return TabletInfo;
- })();
-
- return WorkflowUpdateResponse;
+ return WorkflowMirrorTrafficResponse;
})();
return vtctldata;