UNPKG

@google-cloud/bigquery-migration

Version:
896 lines (722 loc) 1.02 MB
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace cloud. */ namespace cloud { /** Namespace bigquery. */ namespace bigquery { /** Namespace migration. */ namespace migration { /** Namespace v2. */ namespace v2 { /** Properties of a MigrationWorkflow. */ interface IMigrationWorkflow { /** MigrationWorkflow name */ name?: (string|null); /** MigrationWorkflow displayName */ displayName?: (string|null); /** MigrationWorkflow tasks */ tasks?: ({ [k: string]: google.cloud.bigquery.migration.v2.IMigrationTask }|null); /** MigrationWorkflow state */ state?: (google.cloud.bigquery.migration.v2.MigrationWorkflow.State|keyof typeof google.cloud.bigquery.migration.v2.MigrationWorkflow.State|null); /** MigrationWorkflow createTime */ createTime?: (google.protobuf.ITimestamp|null); /** MigrationWorkflow lastUpdateTime */ lastUpdateTime?: (google.protobuf.ITimestamp|null); } /** Represents a MigrationWorkflow. */ class MigrationWorkflow implements IMigrationWorkflow { /** * Constructs a new MigrationWorkflow. * @param [properties] Properties to set */ constructor(properties?: google.cloud.bigquery.migration.v2.IMigrationWorkflow); /** MigrationWorkflow name. */ public name: string; /** MigrationWorkflow displayName. */ public displayName: string; /** MigrationWorkflow tasks. */ public tasks: { [k: string]: google.cloud.bigquery.migration.v2.IMigrationTask }; /** MigrationWorkflow state. */ public state: (google.cloud.bigquery.migration.v2.MigrationWorkflow.State|keyof typeof google.cloud.bigquery.migration.v2.MigrationWorkflow.State); /** MigrationWorkflow createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** MigrationWorkflow lastUpdateTime. */ public lastUpdateTime?: (google.protobuf.ITimestamp|null); /** * Creates a new MigrationWorkflow instance using the specified properties. * @param [properties] Properties to set * @returns MigrationWorkflow instance */ public static create(properties?: google.cloud.bigquery.migration.v2.IMigrationWorkflow): google.cloud.bigquery.migration.v2.MigrationWorkflow; /** * Encodes the specified MigrationWorkflow message. Does not implicitly {@link google.cloud.bigquery.migration.v2.MigrationWorkflow.verify|verify} messages. * @param message MigrationWorkflow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.bigquery.migration.v2.IMigrationWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified MigrationWorkflow message, length delimited. Does not implicitly {@link google.cloud.bigquery.migration.v2.MigrationWorkflow.verify|verify} messages. * @param message MigrationWorkflow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.bigquery.migration.v2.IMigrationWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MigrationWorkflow message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns MigrationWorkflow * @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): google.cloud.bigquery.migration.v2.MigrationWorkflow; /** * Decodes a MigrationWorkflow message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns MigrationWorkflow * @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)): google.cloud.bigquery.migration.v2.MigrationWorkflow; /** * Verifies a MigrationWorkflow 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 MigrationWorkflow message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns MigrationWorkflow */ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.migration.v2.MigrationWorkflow; /** * Creates a plain object from a MigrationWorkflow message. Also converts values to other types if specified. * @param message MigrationWorkflow * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.bigquery.migration.v2.MigrationWorkflow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MigrationWorkflow to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for MigrationWorkflow * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace MigrationWorkflow { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, DRAFT = 1, RUNNING = 2, PAUSED = 3, COMPLETED = 4 } } /** Properties of a MigrationTask. */ interface IMigrationTask { /** MigrationTask translationConfigDetails */ translationConfigDetails?: (google.cloud.bigquery.migration.v2.ITranslationConfigDetails|null); /** MigrationTask translationDetails */ translationDetails?: (google.cloud.bigquery.migration.v2.ITranslationDetails|null); /** MigrationTask id */ id?: (string|null); /** MigrationTask type */ type?: (string|null); /** MigrationTask state */ state?: (google.cloud.bigquery.migration.v2.MigrationTask.State|keyof typeof google.cloud.bigquery.migration.v2.MigrationTask.State|null); /** MigrationTask processingError */ processingError?: (google.rpc.IErrorInfo|null); /** MigrationTask createTime */ createTime?: (google.protobuf.ITimestamp|null); /** MigrationTask lastUpdateTime */ lastUpdateTime?: (google.protobuf.ITimestamp|null); /** MigrationTask resourceErrorDetails */ resourceErrorDetails?: (google.cloud.bigquery.migration.v2.IResourceErrorDetail[]|null); /** MigrationTask resourceErrorCount */ resourceErrorCount?: (number|null); /** MigrationTask metrics */ metrics?: (google.cloud.bigquery.migration.v2.ITimeSeries[]|null); /** MigrationTask taskResult */ taskResult?: (google.cloud.bigquery.migration.v2.IMigrationTaskResult|null); /** MigrationTask totalProcessingErrorCount */ totalProcessingErrorCount?: (number|null); /** MigrationTask totalResourceErrorCount */ totalResourceErrorCount?: (number|null); } /** Represents a MigrationTask. */ class MigrationTask implements IMigrationTask { /** * Constructs a new MigrationTask. * @param [properties] Properties to set */ constructor(properties?: google.cloud.bigquery.migration.v2.IMigrationTask); /** MigrationTask translationConfigDetails. */ public translationConfigDetails?: (google.cloud.bigquery.migration.v2.ITranslationConfigDetails|null); /** MigrationTask translationDetails. */ public translationDetails?: (google.cloud.bigquery.migration.v2.ITranslationDetails|null); /** MigrationTask id. */ public id: string; /** MigrationTask type. */ public type: string; /** MigrationTask state. */ public state: (google.cloud.bigquery.migration.v2.MigrationTask.State|keyof typeof google.cloud.bigquery.migration.v2.MigrationTask.State); /** MigrationTask processingError. */ public processingError?: (google.rpc.IErrorInfo|null); /** MigrationTask createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** MigrationTask lastUpdateTime. */ public lastUpdateTime?: (google.protobuf.ITimestamp|null); /** MigrationTask resourceErrorDetails. */ public resourceErrorDetails: google.cloud.bigquery.migration.v2.IResourceErrorDetail[]; /** MigrationTask resourceErrorCount. */ public resourceErrorCount: number; /** MigrationTask metrics. */ public metrics: google.cloud.bigquery.migration.v2.ITimeSeries[]; /** MigrationTask taskResult. */ public taskResult?: (google.cloud.bigquery.migration.v2.IMigrationTaskResult|null); /** MigrationTask totalProcessingErrorCount. */ public totalProcessingErrorCount: number; /** MigrationTask totalResourceErrorCount. */ public totalResourceErrorCount: number; /** MigrationTask taskDetails. */ public taskDetails?: ("translationConfigDetails"|"translationDetails"); /** * Creates a new MigrationTask instance using the specified properties. * @param [properties] Properties to set * @returns MigrationTask instance */ public static create(properties?: google.cloud.bigquery.migration.v2.IMigrationTask): google.cloud.bigquery.migration.v2.MigrationTask; /** * Encodes the specified MigrationTask message. Does not implicitly {@link google.cloud.bigquery.migration.v2.MigrationTask.verify|verify} messages. * @param message MigrationTask message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.bigquery.migration.v2.IMigrationTask, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified MigrationTask message, length delimited. Does not implicitly {@link google.cloud.bigquery.migration.v2.MigrationTask.verify|verify} messages. * @param message MigrationTask message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.bigquery.migration.v2.IMigrationTask, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MigrationTask message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns MigrationTask * @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): google.cloud.bigquery.migration.v2.MigrationTask; /** * Decodes a MigrationTask message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns MigrationTask * @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)): google.cloud.bigquery.migration.v2.MigrationTask; /** * Verifies a MigrationTask 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 MigrationTask message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns MigrationTask */ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.migration.v2.MigrationTask; /** * Creates a plain object from a MigrationTask message. Also converts values to other types if specified. * @param message MigrationTask * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.bigquery.migration.v2.MigrationTask, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MigrationTask to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for MigrationTask * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace MigrationTask { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, PENDING = 1, ORCHESTRATING = 2, RUNNING = 3, PAUSED = 4, SUCCEEDED = 5, FAILED = 6 } } /** Properties of a MigrationSubtask. */ interface IMigrationSubtask { /** MigrationSubtask name */ name?: (string|null); /** MigrationSubtask taskId */ taskId?: (string|null); /** MigrationSubtask type */ type?: (string|null); /** MigrationSubtask state */ state?: (google.cloud.bigquery.migration.v2.MigrationSubtask.State|keyof typeof google.cloud.bigquery.migration.v2.MigrationSubtask.State|null); /** MigrationSubtask processingError */ processingError?: (google.rpc.IErrorInfo|null); /** MigrationSubtask resourceErrorDetails */ resourceErrorDetails?: (google.cloud.bigquery.migration.v2.IResourceErrorDetail[]|null); /** MigrationSubtask resourceErrorCount */ resourceErrorCount?: (number|null); /** MigrationSubtask createTime */ createTime?: (google.protobuf.ITimestamp|null); /** MigrationSubtask lastUpdateTime */ lastUpdateTime?: (google.protobuf.ITimestamp|null); /** MigrationSubtask metrics */ metrics?: (google.cloud.bigquery.migration.v2.ITimeSeries[]|null); } /** Represents a MigrationSubtask. */ class MigrationSubtask implements IMigrationSubtask { /** * Constructs a new MigrationSubtask. * @param [properties] Properties to set */ constructor(properties?: google.cloud.bigquery.migration.v2.IMigrationSubtask); /** MigrationSubtask name. */ public name: string; /** MigrationSubtask taskId. */ public taskId: string; /** MigrationSubtask type. */ public type: string; /** MigrationSubtask state. */ public state: (google.cloud.bigquery.migration.v2.MigrationSubtask.State|keyof typeof google.cloud.bigquery.migration.v2.MigrationSubtask.State); /** MigrationSubtask processingError. */ public processingError?: (google.rpc.IErrorInfo|null); /** MigrationSubtask resourceErrorDetails. */ public resourceErrorDetails: google.cloud.bigquery.migration.v2.IResourceErrorDetail[]; /** MigrationSubtask resourceErrorCount. */ public resourceErrorCount: number; /** MigrationSubtask createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** MigrationSubtask lastUpdateTime. */ public lastUpdateTime?: (google.protobuf.ITimestamp|null); /** MigrationSubtask metrics. */ public metrics: google.cloud.bigquery.migration.v2.ITimeSeries[]; /** * Creates a new MigrationSubtask instance using the specified properties. * @param [properties] Properties to set * @returns MigrationSubtask instance */ public static create(properties?: google.cloud.bigquery.migration.v2.IMigrationSubtask): google.cloud.bigquery.migration.v2.MigrationSubtask; /** * Encodes the specified MigrationSubtask message. Does not implicitly {@link google.cloud.bigquery.migration.v2.MigrationSubtask.verify|verify} messages. * @param message MigrationSubtask message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.bigquery.migration.v2.IMigrationSubtask, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified MigrationSubtask message, length delimited. Does not implicitly {@link google.cloud.bigquery.migration.v2.MigrationSubtask.verify|verify} messages. * @param message MigrationSubtask message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.bigquery.migration.v2.IMigrationSubtask, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MigrationSubtask message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns MigrationSubtask * @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): google.cloud.bigquery.migration.v2.MigrationSubtask; /** * Decodes a MigrationSubtask message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns MigrationSubtask * @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)): google.cloud.bigquery.migration.v2.MigrationSubtask; /** * Verifies a MigrationSubtask 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 MigrationSubtask message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns MigrationSubtask */ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.migration.v2.MigrationSubtask; /** * Creates a plain object from a MigrationSubtask message. Also converts values to other types if specified. * @param message MigrationSubtask * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.bigquery.migration.v2.MigrationSubtask, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MigrationSubtask to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for MigrationSubtask * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace MigrationSubtask { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, ACTIVE = 1, RUNNING = 2, SUCCEEDED = 3, FAILED = 4, PAUSED = 5, PENDING_DEPENDENCY = 6 } } /** Properties of a MigrationTaskResult. */ interface IMigrationTaskResult { /** MigrationTaskResult translationTaskResult */ translationTaskResult?: (google.cloud.bigquery.migration.v2.ITranslationTaskResult|null); } /** Represents a MigrationTaskResult. */ class MigrationTaskResult implements IMigrationTaskResult { /** * Constructs a new MigrationTaskResult. * @param [properties] Properties to set */ constructor(properties?: google.cloud.bigquery.migration.v2.IMigrationTaskResult); /** MigrationTaskResult translationTaskResult. */ public translationTaskResult?: (google.cloud.bigquery.migration.v2.ITranslationTaskResult|null); /** MigrationTaskResult details. */ public details?: "translationTaskResult"; /** * Creates a new MigrationTaskResult instance using the specified properties. * @param [properties] Properties to set * @returns MigrationTaskResult instance */ public static create(properties?: google.cloud.bigquery.migration.v2.IMigrationTaskResult): google.cloud.bigquery.migration.v2.MigrationTaskResult; /** * Encodes the specified MigrationTaskResult message. Does not implicitly {@link google.cloud.bigquery.migration.v2.MigrationTaskResult.verify|verify} messages. * @param message MigrationTaskResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.bigquery.migration.v2.IMigrationTaskResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified MigrationTaskResult message, length delimited. Does not implicitly {@link google.cloud.bigquery.migration.v2.MigrationTaskResult.verify|verify} messages. * @param message MigrationTaskResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.bigquery.migration.v2.IMigrationTaskResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MigrationTaskResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns MigrationTaskResult * @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): google.cloud.bigquery.migration.v2.MigrationTaskResult; /** * Decodes a MigrationTaskResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns MigrationTaskResult * @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)): google.cloud.bigquery.migration.v2.MigrationTaskResult; /** * Verifies a MigrationTaskResult 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 MigrationTaskResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns MigrationTaskResult */ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.migration.v2.MigrationTaskResult; /** * Creates a plain object from a MigrationTaskResult message. Also converts values to other types if specified. * @param message MigrationTaskResult * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.bigquery.migration.v2.MigrationTaskResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MigrationTaskResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for MigrationTaskResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a TranslationTaskResult. */ interface ITranslationTaskResult { /** TranslationTaskResult translatedLiterals */ translatedLiterals?: (google.cloud.bigquery.migration.v2.ILiteral[]|null); /** TranslationTaskResult reportLogMessages */ reportLogMessages?: (google.cloud.bigquery.migration.v2.IGcsReportLogMessage[]|null); } /** Represents a TranslationTaskResult. */ class TranslationTaskResult implements ITranslationTaskResult { /** * Constructs a new TranslationTaskResult. * @param [properties] Properties to set */ constructor(properties?: google.cloud.bigquery.migration.v2.ITranslationTaskResult); /** TranslationTaskResult translatedLiterals. */ public translatedLiterals: google.cloud.bigquery.migration.v2.ILiteral[]; /** TranslationTaskResult reportLogMessages. */ public reportLogMessages: google.cloud.bigquery.migration.v2.IGcsReportLogMessage[]; /** * Creates a new TranslationTaskResult instance using the specified properties. * @param [properties] Properties to set * @returns TranslationTaskResult instance */ public static create(properties?: google.cloud.bigquery.migration.v2.ITranslationTaskResult): google.cloud.bigquery.migration.v2.TranslationTaskResult; /** * Encodes the specified TranslationTaskResult message. Does not implicitly {@link google.cloud.bigquery.migration.v2.TranslationTaskResult.verify|verify} messages. * @param message TranslationTaskResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.bigquery.migration.v2.ITranslationTaskResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified TranslationTaskResult message, length delimited. Does not implicitly {@link google.cloud.bigquery.migration.v2.TranslationTaskResult.verify|verify} messages. * @param message TranslationTaskResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.bigquery.migration.v2.ITranslationTaskResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TranslationTaskResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns TranslationTaskResult * @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): google.cloud.bigquery.migration.v2.TranslationTaskResult; /** * Decodes a TranslationTaskResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns TranslationTaskResult * @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)): google.cloud.bigquery.migration.v2.TranslationTaskResult; /** * Verifies a TranslationTaskResult 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 TranslationTaskResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns TranslationTaskResult */ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.migration.v2.TranslationTaskResult; /** * Creates a plain object from a TranslationTaskResult message. Also converts values to other types if specified. * @param message TranslationTaskResult * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.bigquery.migration.v2.TranslationTaskResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TranslationTaskResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for TranslationTaskResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ResourceErrorDetail. */ interface IResourceErrorDetail { /** ResourceErrorDetail resourceInfo */ resourceInfo?: (google.rpc.IResourceInfo|null); /** ResourceErrorDetail errorDetails */ errorDetails?: (google.cloud.bigquery.migration.v2.IErrorDetail[]|null); /** ResourceErrorDetail errorCount */ errorCount?: (number|null); } /** Represents a ResourceErrorDetail. */ class ResourceErrorDetail implements IResourceErrorDetail { /** * Constructs a new ResourceErrorDetail. * @param [properties] Properties to set */ constructor(properties?: google.cloud.bigquery.migration.v2.IResourceErrorDetail); /** ResourceErrorDetail resourceInfo. */ public resourceInfo?: (google.rpc.IResourceInfo|null); /** ResourceErrorDetail errorDetails. */ public errorDetails: google.cloud.bigquery.migration.v2.IErrorDetail[]; /** ResourceErrorDetail errorCount. */ public errorCount: number; /** * Creates a new ResourceErrorDetail instance using the specified properties. * @param [properties] Properties to set * @returns ResourceErrorDetail instance */ public static create(properties?: google.cloud.bigquery.migration.v2.IResourceErrorDetail): google.cloud.bigquery.migration.v2.ResourceErrorDetail; /** * Encodes the specified ResourceErrorDetail message. Does not implicitly {@link google.cloud.bigquery.migration.v2.ResourceErrorDetail.verify|verify} messages. * @param message ResourceErrorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.bigquery.migration.v2.IResourceErrorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ResourceErrorDetail message, length delimited. Does not implicitly {@link google.cloud.bigquery.migration.v2.ResourceErrorDetail.verify|verify} messages. * @param message ResourceErrorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.bigquery.migration.v2.IResourceErrorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ResourceErrorDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ResourceErrorDetail * @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): google.cloud.bigquery.migration.v2.ResourceErrorDetail; /** * Decodes a ResourceErrorDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ResourceErrorDetail * @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)): google.cloud.bigquery.migration.v2.ResourceErrorDetail; /** * Verifies a ResourceErrorDetail 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 ResourceErrorDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ResourceErrorDetail */ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.migration.v2.ResourceErrorDetail; /** * Creates a plain object from a ResourceErrorDetail message. Also converts values to other types if specified. * @param message ResourceErrorDetail * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.bigquery.migration.v2.ResourceErrorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ResourceErrorDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ResourceErrorDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ErrorDetail. */ interface IErrorDetail { /** ErrorDetail location */ location?: (google.cloud.bigquery.migration.v2.IErrorLocation|null); /** ErrorDetail errorInfo */ errorInfo?: (google.rpc.IErrorInfo|null); } /** Represents an ErrorDetail. */ class ErrorDetail implements IErrorDetail { /** * Constructs a new ErrorDetail. * @param [properties] Properties to set */ constructor(properties?: google.cloud.bigquery.migration.v2.IErrorDetail); /** ErrorDetail location. */ public location?: (google.cloud.bigquery.migration.v2.IErrorLocation|null); /** ErrorDetail errorInfo. */ public errorInfo?: (google.rpc.IErrorInfo|null); /** * Creates a new ErrorDetail instance using the specified properties. * @param [properties] Properties to set * @returns ErrorDetail instance */ public static create(properties?: google.cloud.bigquery.migration.v2.IErrorDetail): google.cloud.bigquery.migration.v2.ErrorDetail; /** * Encodes the specified ErrorDetail message. Does not implicitly {@link google.cloud.bigquery.migration.v2.ErrorDetail.verify|verify} messages. * @param message ErrorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.bigquery.migration.v2.IErrorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ErrorDetail message, length delimited. Does not implicitly {@link google.cloud.bigquery.migration.v2.ErrorDetail.verify|verify} messages. * @param message ErrorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.bigquery.migration.v2.IErrorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ErrorDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ErrorDetail * @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): g