@google-cloud/video-transcoder
Version:
Transcoder client for Node.js
964 lines (775 loc) • 774 kB
TypeScript
// 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 video. */
namespace video {
/** Namespace transcoder. */
namespace transcoder {
/** Namespace v1. */
namespace v1 {
/** Properties of a Job. */
interface IJob {
/** Job name */
name?: (string|null);
/** Job inputUri */
inputUri?: (string|null);
/** Job outputUri */
outputUri?: (string|null);
/** Job templateId */
templateId?: (string|null);
/** Job config */
config?: (google.cloud.video.transcoder.v1.IJobConfig|null);
/** Job state */
state?: (google.cloud.video.transcoder.v1.Job.ProcessingState|keyof typeof google.cloud.video.transcoder.v1.Job.ProcessingState|null);
/** Job createTime */
createTime?: (google.protobuf.ITimestamp|null);
/** Job startTime */
startTime?: (google.protobuf.ITimestamp|null);
/** Job endTime */
endTime?: (google.protobuf.ITimestamp|null);
/** Job ttlAfterCompletionDays */
ttlAfterCompletionDays?: (number|null);
/** Job labels */
labels?: ({ [k: string]: string }|null);
/** Job error */
error?: (google.rpc.IStatus|null);
/** Job mode */
mode?: (google.cloud.video.transcoder.v1.Job.ProcessingMode|keyof typeof google.cloud.video.transcoder.v1.Job.ProcessingMode|null);
/** Job batchModePriority */
batchModePriority?: (number|null);
/** Job optimization */
optimization?: (google.cloud.video.transcoder.v1.Job.OptimizationStrategy|keyof typeof google.cloud.video.transcoder.v1.Job.OptimizationStrategy|null);
/** Job fillContentGaps */
fillContentGaps?: (boolean|null);
}
/** Represents a Job. */
class Job implements IJob {
/**
* Constructs a new Job.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.video.transcoder.v1.IJob);
/** Job name. */
public name: string;
/** Job inputUri. */
public inputUri: string;
/** Job outputUri. */
public outputUri: string;
/** Job templateId. */
public templateId?: (string|null);
/** Job config. */
public config?: (google.cloud.video.transcoder.v1.IJobConfig|null);
/** Job state. */
public state: (google.cloud.video.transcoder.v1.Job.ProcessingState|keyof typeof google.cloud.video.transcoder.v1.Job.ProcessingState);
/** Job createTime. */
public createTime?: (google.protobuf.ITimestamp|null);
/** Job startTime. */
public startTime?: (google.protobuf.ITimestamp|null);
/** Job endTime. */
public endTime?: (google.protobuf.ITimestamp|null);
/** Job ttlAfterCompletionDays. */
public ttlAfterCompletionDays: number;
/** Job labels. */
public labels: { [k: string]: string };
/** Job error. */
public error?: (google.rpc.IStatus|null);
/** Job mode. */
public mode: (google.cloud.video.transcoder.v1.Job.ProcessingMode|keyof typeof google.cloud.video.transcoder.v1.Job.ProcessingMode);
/** Job batchModePriority. */
public batchModePriority: number;
/** Job optimization. */
public optimization: (google.cloud.video.transcoder.v1.Job.OptimizationStrategy|keyof typeof google.cloud.video.transcoder.v1.Job.OptimizationStrategy);
/** Job fillContentGaps. */
public fillContentGaps: boolean;
/** Job jobConfig. */
public jobConfig?: ("templateId"|"config");
/**
* Creates a new Job instance using the specified properties.
* @param [properties] Properties to set
* @returns Job instance
*/
public static create(properties?: google.cloud.video.transcoder.v1.IJob): google.cloud.video.transcoder.v1.Job;
/**
* Encodes the specified Job message. Does not implicitly {@link google.cloud.video.transcoder.v1.Job.verify|verify} messages.
* @param message Job message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.video.transcoder.v1.IJob, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.video.transcoder.v1.Job.verify|verify} messages.
* @param message Job message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.video.transcoder.v1.IJob, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Job message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Job
* @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.video.transcoder.v1.Job;
/**
* Decodes a Job message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Job
* @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.video.transcoder.v1.Job;
/**
* Verifies a Job 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 Job message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Job
*/
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.Job;
/**
* Creates a plain object from a Job message. Also converts values to other types if specified.
* @param message Job
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.video.transcoder.v1.Job, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Job to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Job
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace Job {
/** ProcessingState enum. */
enum ProcessingState {
PROCESSING_STATE_UNSPECIFIED = 0,
PENDING = 1,
RUNNING = 2,
SUCCEEDED = 3,
FAILED = 4
}
/** ProcessingMode enum. */
enum ProcessingMode {
PROCESSING_MODE_UNSPECIFIED = 0,
PROCESSING_MODE_INTERACTIVE = 1,
PROCESSING_MODE_BATCH = 2
}
/** OptimizationStrategy enum. */
enum OptimizationStrategy {
OPTIMIZATION_STRATEGY_UNSPECIFIED = 0,
AUTODETECT = 1,
DISABLED = 2
}
}
/** Properties of a JobTemplate. */
interface IJobTemplate {
/** JobTemplate name */
name?: (string|null);
/** JobTemplate config */
config?: (google.cloud.video.transcoder.v1.IJobConfig|null);
/** JobTemplate labels */
labels?: ({ [k: string]: string }|null);
}
/** Represents a JobTemplate. */
class JobTemplate implements IJobTemplate {
/**
* Constructs a new JobTemplate.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.video.transcoder.v1.IJobTemplate);
/** JobTemplate name. */
public name: string;
/** JobTemplate config. */
public config?: (google.cloud.video.transcoder.v1.IJobConfig|null);
/** JobTemplate labels. */
public labels: { [k: string]: string };
/**
* Creates a new JobTemplate instance using the specified properties.
* @param [properties] Properties to set
* @returns JobTemplate instance
*/
public static create(properties?: google.cloud.video.transcoder.v1.IJobTemplate): google.cloud.video.transcoder.v1.JobTemplate;
/**
* Encodes the specified JobTemplate message. Does not implicitly {@link google.cloud.video.transcoder.v1.JobTemplate.verify|verify} messages.
* @param message JobTemplate message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.video.transcoder.v1.IJobTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified JobTemplate message, length delimited. Does not implicitly {@link google.cloud.video.transcoder.v1.JobTemplate.verify|verify} messages.
* @param message JobTemplate message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.video.transcoder.v1.IJobTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a JobTemplate message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns JobTemplate
* @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.video.transcoder.v1.JobTemplate;
/**
* Decodes a JobTemplate message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns JobTemplate
* @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.video.transcoder.v1.JobTemplate;
/**
* Verifies a JobTemplate 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 JobTemplate message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns JobTemplate
*/
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.JobTemplate;
/**
* Creates a plain object from a JobTemplate message. Also converts values to other types if specified.
* @param message JobTemplate
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.video.transcoder.v1.JobTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this JobTemplate to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for JobTemplate
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a JobConfig. */
interface IJobConfig {
/** JobConfig inputs */
inputs?: (google.cloud.video.transcoder.v1.IInput[]|null);
/** JobConfig editList */
editList?: (google.cloud.video.transcoder.v1.IEditAtom[]|null);
/** JobConfig elementaryStreams */
elementaryStreams?: (google.cloud.video.transcoder.v1.IElementaryStream[]|null);
/** JobConfig muxStreams */
muxStreams?: (google.cloud.video.transcoder.v1.IMuxStream[]|null);
/** JobConfig manifests */
manifests?: (google.cloud.video.transcoder.v1.IManifest[]|null);
/** JobConfig output */
output?: (google.cloud.video.transcoder.v1.IOutput|null);
/** JobConfig adBreaks */
adBreaks?: (google.cloud.video.transcoder.v1.IAdBreak[]|null);
/** JobConfig pubsubDestination */
pubsubDestination?: (google.cloud.video.transcoder.v1.IPubsubDestination|null);
/** JobConfig spriteSheets */
spriteSheets?: (google.cloud.video.transcoder.v1.ISpriteSheet[]|null);
/** JobConfig overlays */
overlays?: (google.cloud.video.transcoder.v1.IOverlay[]|null);
/** JobConfig encryptions */
encryptions?: (google.cloud.video.transcoder.v1.IEncryption[]|null);
}
/** Represents a JobConfig. */
class JobConfig implements IJobConfig {
/**
* Constructs a new JobConfig.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.video.transcoder.v1.IJobConfig);
/** JobConfig inputs. */
public inputs: google.cloud.video.transcoder.v1.IInput[];
/** JobConfig editList. */
public editList: google.cloud.video.transcoder.v1.IEditAtom[];
/** JobConfig elementaryStreams. */
public elementaryStreams: google.cloud.video.transcoder.v1.IElementaryStream[];
/** JobConfig muxStreams. */
public muxStreams: google.cloud.video.transcoder.v1.IMuxStream[];
/** JobConfig manifests. */
public manifests: google.cloud.video.transcoder.v1.IManifest[];
/** JobConfig output. */
public output?: (google.cloud.video.transcoder.v1.IOutput|null);
/** JobConfig adBreaks. */
public adBreaks: google.cloud.video.transcoder.v1.IAdBreak[];
/** JobConfig pubsubDestination. */
public pubsubDestination?: (google.cloud.video.transcoder.v1.IPubsubDestination|null);
/** JobConfig spriteSheets. */
public spriteSheets: google.cloud.video.transcoder.v1.ISpriteSheet[];
/** JobConfig overlays. */
public overlays: google.cloud.video.transcoder.v1.IOverlay[];
/** JobConfig encryptions. */
public encryptions: google.cloud.video.transcoder.v1.IEncryption[];
/**
* Creates a new JobConfig instance using the specified properties.
* @param [properties] Properties to set
* @returns JobConfig instance
*/
public static create(properties?: google.cloud.video.transcoder.v1.IJobConfig): google.cloud.video.transcoder.v1.JobConfig;
/**
* Encodes the specified JobConfig message. Does not implicitly {@link google.cloud.video.transcoder.v1.JobConfig.verify|verify} messages.
* @param message JobConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.video.transcoder.v1.IJobConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified JobConfig message, length delimited. Does not implicitly {@link google.cloud.video.transcoder.v1.JobConfig.verify|verify} messages.
* @param message JobConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.video.transcoder.v1.IJobConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a JobConfig message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns JobConfig
* @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.video.transcoder.v1.JobConfig;
/**
* Decodes a JobConfig message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns JobConfig
* @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.video.transcoder.v1.JobConfig;
/**
* Verifies a JobConfig 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 JobConfig message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns JobConfig
*/
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.JobConfig;
/**
* Creates a plain object from a JobConfig message. Also converts values to other types if specified.
* @param message JobConfig
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.video.transcoder.v1.JobConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this JobConfig to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for JobConfig
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an Input. */
interface IInput {
/** Input key */
key?: (string|null);
/** Input uri */
uri?: (string|null);
/** Input preprocessingConfig */
preprocessingConfig?: (google.cloud.video.transcoder.v1.IPreprocessingConfig|null);
/** Input attributes */
attributes?: (google.cloud.video.transcoder.v1.IInputAttributes|null);
}
/** Represents an Input. */
class Input implements IInput {
/**
* Constructs a new Input.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.video.transcoder.v1.IInput);
/** Input key. */
public key: string;
/** Input uri. */
public uri: string;
/** Input preprocessingConfig. */
public preprocessingConfig?: (google.cloud.video.transcoder.v1.IPreprocessingConfig|null);
/** Input attributes. */
public attributes?: (google.cloud.video.transcoder.v1.IInputAttributes|null);
/**
* Creates a new Input instance using the specified properties.
* @param [properties] Properties to set
* @returns Input instance
*/
public static create(properties?: google.cloud.video.transcoder.v1.IInput): google.cloud.video.transcoder.v1.Input;
/**
* Encodes the specified Input message. Does not implicitly {@link google.cloud.video.transcoder.v1.Input.verify|verify} messages.
* @param message Input message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.video.transcoder.v1.IInput, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Input message, length delimited. Does not implicitly {@link google.cloud.video.transcoder.v1.Input.verify|verify} messages.
* @param message Input message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.video.transcoder.v1.IInput, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an Input message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Input
* @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.video.transcoder.v1.Input;
/**
* Decodes an Input message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Input
* @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.video.transcoder.v1.Input;
/**
* Verifies an Input 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 Input message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Input
*/
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.Input;
/**
* Creates a plain object from an Input message. Also converts values to other types if specified.
* @param message Input
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.video.transcoder.v1.Input, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Input to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Input
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an Output. */
interface IOutput {
/** Output uri */
uri?: (string|null);
}
/** Represents an Output. */
class Output implements IOutput {
/**
* Constructs a new Output.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.video.transcoder.v1.IOutput);
/** Output uri. */
public uri: string;
/**
* Creates a new Output instance using the specified properties.
* @param [properties] Properties to set
* @returns Output instance
*/
public static create(properties?: google.cloud.video.transcoder.v1.IOutput): google.cloud.video.transcoder.v1.Output;
/**
* Encodes the specified Output message. Does not implicitly {@link google.cloud.video.transcoder.v1.Output.verify|verify} messages.
* @param message Output message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.video.transcoder.v1.IOutput, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Output message, length delimited. Does not implicitly {@link google.cloud.video.transcoder.v1.Output.verify|verify} messages.
* @param message Output message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.video.transcoder.v1.IOutput, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an Output message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Output
* @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.video.transcoder.v1.Output;
/**
* Decodes an Output message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Output
* @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.video.transcoder.v1.Output;
/**
* Verifies an Output 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 Output message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Output
*/
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.Output;
/**
* Creates a plain object from an Output message. Also converts values to other types if specified.
* @param message Output
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.video.transcoder.v1.Output, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Output to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Output
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an EditAtom. */
interface IEditAtom {
/** EditAtom key */
key?: (string|null);
/** EditAtom inputs */
inputs?: (string[]|null);
/** EditAtom endTimeOffset */
endTimeOffset?: (google.protobuf.IDuration|null);
/** EditAtom startTimeOffset */
startTimeOffset?: (google.protobuf.IDuration|null);
}
/** Represents an EditAtom. */
class EditAtom implements IEditAtom {
/**
* Constructs a new EditAtom.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.video.transcoder.v1.IEditAtom);
/** EditAtom key. */
public key: string;
/** EditAtom inputs. */
public inputs: string[];
/** EditAtom endTimeOffset. */
public endTimeOffset?: (google.protobuf.IDuration|null);
/** EditAtom startTimeOffset. */
public startTimeOffset?: (google.protobuf.IDuration|null);
/**
* Creates a new EditAtom instance using the specified properties.
* @param [properties] Properties to set
* @returns EditAtom instance
*/
public static create(properties?: google.cloud.video.transcoder.v1.IEditAtom): google.cloud.video.transcoder.v1.EditAtom;
/**
* Encodes the specified EditAtom message. Does not implicitly {@link google.cloud.video.transcoder.v1.EditAtom.verify|verify} messages.
* @param message EditAtom message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.video.transcoder.v1.IEditAtom, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified EditAtom message, length delimited. Does not implicitly {@link google.cloud.video.transcoder.v1.EditAtom.verify|verify} messages.
* @param message EditAtom message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.video.transcoder.v1.IEditAtom, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an EditAtom message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns EditAtom
* @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.video.transcoder.v1.EditAtom;
/**
* Decodes an EditAtom message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns EditAtom
* @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.video.transcoder.v1.EditAtom;
/**
* Verifies an EditAtom 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 EditAtom message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns EditAtom
*/
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.EditAtom;
/**
* Creates a plain object from an EditAtom message. Also converts values to other types if specified.
* @param message EditAtom
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.video.transcoder.v1.EditAtom, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this EditAtom to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for EditAtom
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an AdBreak. */
interface IAdBreak {
/** AdBreak startTimeOffset */
startTimeOffset?: (google.protobuf.IDuration|null);
}
/** Represents an AdBreak. */
class AdBreak implements IAdBreak {
/**
* Constructs a new AdBreak.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.video.transcoder.v1.IAdBreak);
/** AdBreak startTimeOffset. */
public startTimeOffset?: (google.protobuf.IDuration|null);
/**
* Creates a new AdBreak instance using the specified properties.
* @param [properties] Properties to set
* @returns AdBreak instance
*/
public static create(properties?: google.cloud.video.transcoder.v1.IAdBreak): google.cloud.video.transcoder.v1.AdBreak;
/**
* Encodes the specified AdBreak message. Does not implicitly {@link google.cloud.video.transcoder.v1.AdBreak.verify|verify} messages.
* @param message AdBreak message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.video.transcoder.v1.IAdBreak, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AdBreak message, length delimited. Does not implicitly {@link google.cloud.video.transcoder.v1.AdBreak.verify|verify} messages.
* @param message AdBreak message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.video.transcoder.v1.IAdBreak, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an AdBreak message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AdBreak
* @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.video.transcoder.v1.AdBreak;
/**
* Decodes an AdBreak message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AdBreak
* @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.video.transcoder.v1.AdBreak;
/**
* Verifies an AdBreak 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 AdBreak message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AdBreak
*/
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.AdBreak;
/**
* Creates a plain object from an AdBreak message. Also converts values to other types if specified.
* @param message AdBreak
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.video.transcoder.v1.AdBreak, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AdBreak to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AdBreak
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an ElementaryStream. */
interface IElementaryStream {
/** ElementaryStream key */
key?: (string|null);
/** ElementaryStream videoStream */
videoStream?: (google.cloud.video.transcoder.v1.IVideoStream|null);
/** ElementaryStream audioStream */
audioStream?: (google.cloud.video.transcoder.v1.IAudioStream|null);
/** ElementaryStream textStream */
textStream?: (google.cloud.video.transcoder.v1.ITextStream|null);
}
/** Represents an ElementaryStream. */
class ElementaryStream implements IElementaryStream {
/**
* Constructs a new ElementaryStream.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.video.transcoder.v1.IElementaryStream);
/** ElementaryStream key. */
public key: st