UNPKG

@google-cloud/video-stitcher

Version:
912 lines (752 loc) 879 kB
// 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 stitcher. */ namespace stitcher { /** Namespace v1. */ namespace v1 { /** Properties of a LiveAdTagDetail. */ interface ILiveAdTagDetail { /** LiveAdTagDetail name */ name?: (string|null); /** LiveAdTagDetail adRequests */ adRequests?: (google.cloud.video.stitcher.v1.IAdRequest[]|null); } /** Represents a LiveAdTagDetail. */ class LiveAdTagDetail implements ILiveAdTagDetail { /** * Constructs a new LiveAdTagDetail. * @param [properties] Properties to set */ constructor(properties?: google.cloud.video.stitcher.v1.ILiveAdTagDetail); /** LiveAdTagDetail name. */ public name: string; /** LiveAdTagDetail adRequests. */ public adRequests: google.cloud.video.stitcher.v1.IAdRequest[]; /** * Creates a new LiveAdTagDetail instance using the specified properties. * @param [properties] Properties to set * @returns LiveAdTagDetail instance */ public static create(properties?: google.cloud.video.stitcher.v1.ILiveAdTagDetail): google.cloud.video.stitcher.v1.LiveAdTagDetail; /** * Encodes the specified LiveAdTagDetail message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveAdTagDetail.verify|verify} messages. * @param message LiveAdTagDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.video.stitcher.v1.ILiveAdTagDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified LiveAdTagDetail message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveAdTagDetail.verify|verify} messages. * @param message LiveAdTagDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.video.stitcher.v1.ILiveAdTagDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LiveAdTagDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns LiveAdTagDetail * @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.stitcher.v1.LiveAdTagDetail; /** * Decodes a LiveAdTagDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns LiveAdTagDetail * @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.stitcher.v1.LiveAdTagDetail; /** * Verifies a LiveAdTagDetail 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 LiveAdTagDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns LiveAdTagDetail */ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.LiveAdTagDetail; /** * Creates a plain object from a LiveAdTagDetail message. Also converts values to other types if specified. * @param message LiveAdTagDetail * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.video.stitcher.v1.LiveAdTagDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LiveAdTagDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for LiveAdTagDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a VodAdTagDetail. */ interface IVodAdTagDetail { /** VodAdTagDetail name */ name?: (string|null); /** VodAdTagDetail adRequests */ adRequests?: (google.cloud.video.stitcher.v1.IAdRequest[]|null); } /** Represents a VodAdTagDetail. */ class VodAdTagDetail implements IVodAdTagDetail { /** * Constructs a new VodAdTagDetail. * @param [properties] Properties to set */ constructor(properties?: google.cloud.video.stitcher.v1.IVodAdTagDetail); /** VodAdTagDetail name. */ public name: string; /** VodAdTagDetail adRequests. */ public adRequests: google.cloud.video.stitcher.v1.IAdRequest[]; /** * Creates a new VodAdTagDetail instance using the specified properties. * @param [properties] Properties to set * @returns VodAdTagDetail instance */ public static create(properties?: google.cloud.video.stitcher.v1.IVodAdTagDetail): google.cloud.video.stitcher.v1.VodAdTagDetail; /** * Encodes the specified VodAdTagDetail message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodAdTagDetail.verify|verify} messages. * @param message VodAdTagDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.video.stitcher.v1.IVodAdTagDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified VodAdTagDetail message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodAdTagDetail.verify|verify} messages. * @param message VodAdTagDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IVodAdTagDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a VodAdTagDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns VodAdTagDetail * @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.stitcher.v1.VodAdTagDetail; /** * Decodes a VodAdTagDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns VodAdTagDetail * @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.stitcher.v1.VodAdTagDetail; /** * Verifies a VodAdTagDetail 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 VodAdTagDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns VodAdTagDetail */ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.VodAdTagDetail; /** * Creates a plain object from a VodAdTagDetail message. Also converts values to other types if specified. * @param message VodAdTagDetail * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.video.stitcher.v1.VodAdTagDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this VodAdTagDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for VodAdTagDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdRequest. */ interface IAdRequest { /** AdRequest uri */ uri?: (string|null); /** AdRequest requestMetadata */ requestMetadata?: (google.cloud.video.stitcher.v1.IRequestMetadata|null); /** AdRequest responseMetadata */ responseMetadata?: (google.cloud.video.stitcher.v1.IResponseMetadata|null); } /** Represents an AdRequest. */ class AdRequest implements IAdRequest { /** * Constructs a new AdRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.video.stitcher.v1.IAdRequest); /** AdRequest uri. */ public uri: string; /** AdRequest requestMetadata. */ public requestMetadata?: (google.cloud.video.stitcher.v1.IRequestMetadata|null); /** AdRequest responseMetadata. */ public responseMetadata?: (google.cloud.video.stitcher.v1.IResponseMetadata|null); /** * Creates a new AdRequest instance using the specified properties. * @param [properties] Properties to set * @returns AdRequest instance */ public static create(properties?: google.cloud.video.stitcher.v1.IAdRequest): google.cloud.video.stitcher.v1.AdRequest; /** * Encodes the specified AdRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.AdRequest.verify|verify} messages. * @param message AdRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.video.stitcher.v1.IAdRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.AdRequest.verify|verify} messages. * @param message AdRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IAdRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdRequest * @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.stitcher.v1.AdRequest; /** * Decodes an AdRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdRequest * @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.stitcher.v1.AdRequest; /** * Verifies an AdRequest 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 AdRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.AdRequest; /** * Creates a plain object from an AdRequest message. Also converts values to other types if specified. * @param message AdRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.video.stitcher.v1.AdRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a RequestMetadata. */ interface IRequestMetadata { /** RequestMetadata headers */ headers?: (google.protobuf.IStruct|null); } /** Represents a RequestMetadata. */ class RequestMetadata implements IRequestMetadata { /** * Constructs a new RequestMetadata. * @param [properties] Properties to set */ constructor(properties?: google.cloud.video.stitcher.v1.IRequestMetadata); /** RequestMetadata headers. */ public headers?: (google.protobuf.IStruct|null); /** * Creates a new RequestMetadata instance using the specified properties. * @param [properties] Properties to set * @returns RequestMetadata instance */ public static create(properties?: google.cloud.video.stitcher.v1.IRequestMetadata): google.cloud.video.stitcher.v1.RequestMetadata; /** * Encodes the specified RequestMetadata message. Does not implicitly {@link google.cloud.video.stitcher.v1.RequestMetadata.verify|verify} messages. * @param message RequestMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.video.stitcher.v1.IRequestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified RequestMetadata message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.RequestMetadata.verify|verify} messages. * @param message RequestMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IRequestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a RequestMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns RequestMetadata * @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.stitcher.v1.RequestMetadata; /** * Decodes a RequestMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns RequestMetadata * @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.stitcher.v1.RequestMetadata; /** * Verifies a RequestMetadata 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 RequestMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns RequestMetadata */ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.RequestMetadata; /** * Creates a plain object from a RequestMetadata message. Also converts values to other types if specified. * @param message RequestMetadata * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.video.stitcher.v1.RequestMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this RequestMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for RequestMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ResponseMetadata. */ interface IResponseMetadata { /** ResponseMetadata error */ error?: (string|null); /** ResponseMetadata headers */ headers?: (google.protobuf.IStruct|null); /** ResponseMetadata statusCode */ statusCode?: (string|null); /** ResponseMetadata sizeBytes */ sizeBytes?: (number|null); /** ResponseMetadata duration */ duration?: (google.protobuf.IDuration|null); /** ResponseMetadata body */ body?: (string|null); } /** Represents a ResponseMetadata. */ class ResponseMetadata implements IResponseMetadata { /** * Constructs a new ResponseMetadata. * @param [properties] Properties to set */ constructor(properties?: google.cloud.video.stitcher.v1.IResponseMetadata); /** ResponseMetadata error. */ public error: string; /** ResponseMetadata headers. */ public headers?: (google.protobuf.IStruct|null); /** ResponseMetadata statusCode. */ public statusCode: string; /** ResponseMetadata sizeBytes. */ public sizeBytes: number; /** ResponseMetadata duration. */ public duration?: (google.protobuf.IDuration|null); /** ResponseMetadata body. */ public body: string; /** * Creates a new ResponseMetadata instance using the specified properties. * @param [properties] Properties to set * @returns ResponseMetadata instance */ public static create(properties?: google.cloud.video.stitcher.v1.IResponseMetadata): google.cloud.video.stitcher.v1.ResponseMetadata; /** * Encodes the specified ResponseMetadata message. Does not implicitly {@link google.cloud.video.stitcher.v1.ResponseMetadata.verify|verify} messages. * @param message ResponseMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.video.stitcher.v1.IResponseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ResponseMetadata message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ResponseMetadata.verify|verify} messages. * @param message ResponseMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IResponseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ResponseMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ResponseMetadata * @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.stitcher.v1.ResponseMetadata; /** * Decodes a ResponseMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ResponseMetadata * @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.stitcher.v1.ResponseMetadata; /** * Verifies a ResponseMetadata 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 ResponseMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ResponseMetadata */ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.ResponseMetadata; /** * Creates a plain object from a ResponseMetadata message. Also converts values to other types if specified. * @param message ResponseMetadata * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.video.stitcher.v1.ResponseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ResponseMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ResponseMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CdnKey. */ interface ICdnKey { /** CdnKey googleCdnKey */ googleCdnKey?: (google.cloud.video.stitcher.v1.IGoogleCdnKey|null); /** CdnKey akamaiCdnKey */ akamaiCdnKey?: (google.cloud.video.stitcher.v1.IAkamaiCdnKey|null); /** CdnKey mediaCdnKey */ mediaCdnKey?: (google.cloud.video.stitcher.v1.IMediaCdnKey|null); /** CdnKey name */ name?: (string|null); /** CdnKey hostname */ hostname?: (string|null); } /** Represents a CdnKey. */ class CdnKey implements ICdnKey { /** * Constructs a new CdnKey. * @param [properties] Properties to set */ constructor(properties?: google.cloud.video.stitcher.v1.ICdnKey); /** CdnKey googleCdnKey. */ public googleCdnKey?: (google.cloud.video.stitcher.v1.IGoogleCdnKey|null); /** CdnKey akamaiCdnKey. */ public akamaiCdnKey?: (google.cloud.video.stitcher.v1.IAkamaiCdnKey|null); /** CdnKey mediaCdnKey. */ public mediaCdnKey?: (google.cloud.video.stitcher.v1.IMediaCdnKey|null); /** CdnKey name. */ public name: string; /** CdnKey hostname. */ public hostname: string; /** CdnKey cdnKeyConfig. */ public cdnKeyConfig?: ("googleCdnKey"|"akamaiCdnKey"|"mediaCdnKey"); /** * Creates a new CdnKey instance using the specified properties. * @param [properties] Properties to set * @returns CdnKey instance */ public static create(properties?: google.cloud.video.stitcher.v1.ICdnKey): google.cloud.video.stitcher.v1.CdnKey; /** * Encodes the specified CdnKey message. Does not implicitly {@link google.cloud.video.stitcher.v1.CdnKey.verify|verify} messages. * @param message CdnKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.video.stitcher.v1.ICdnKey, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CdnKey message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CdnKey.verify|verify} messages. * @param message CdnKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.video.stitcher.v1.ICdnKey, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CdnKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CdnKey * @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.stitcher.v1.CdnKey; /** * Decodes a CdnKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CdnKey * @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.stitcher.v1.CdnKey; /** * Verifies a CdnKey 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 CdnKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CdnKey */ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.CdnKey; /** * Creates a plain object from a CdnKey message. Also converts values to other types if specified. * @param message CdnKey * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.video.stitcher.v1.CdnKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CdnKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CdnKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GoogleCdnKey. */ interface IGoogleCdnKey { /** GoogleCdnKey privateKey */ privateKey?: (Uint8Array|Buffer|string|null); /** GoogleCdnKey keyName */ keyName?: (string|null); } /** Represents a GoogleCdnKey. */ class GoogleCdnKey implements IGoogleCdnKey { /** * Constructs a new GoogleCdnKey. * @param [properties] Properties to set */ constructor(properties?: google.cloud.video.stitcher.v1.IGoogleCdnKey); /** GoogleCdnKey privateKey. */ public privateKey: (Uint8Array|Buffer|string); /** GoogleCdnKey keyName. */ public keyName: string; /** * Creates a new GoogleCdnKey instance using the specified properties. * @param [properties] Properties to set * @returns GoogleCdnKey instance */ public static create(properties?: google.cloud.video.stitcher.v1.IGoogleCdnKey): google.cloud.video.stitcher.v1.GoogleCdnKey; /** * Encodes the specified GoogleCdnKey message. Does not implicitly {@link google.cloud.video.stitcher.v1.GoogleCdnKey.verify|verify} messages. * @param message GoogleCdnKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.video.stitcher.v1.IGoogleCdnKey, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GoogleCdnKey message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GoogleCdnKey.verify|verify} messages. * @param message GoogleCdnKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IGoogleCdnKey, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GoogleCdnKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GoogleCdnKey * @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.stitcher.v1.GoogleCdnKey; /** * Decodes a GoogleCdnKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GoogleCdnKey * @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.stitcher.v1.GoogleCdnKey; /** * Verifies a GoogleCdnKey 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 GoogleCdnKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GoogleCdnKey */ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.GoogleCdnKey; /** * Creates a plain object from a GoogleCdnKey message. Also converts values to other types if specified. * @param message GoogleCdnKey * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.video.stitcher.v1.GoogleCdnKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GoogleCdnKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for GoogleCdnKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AkamaiCdnKey. */ interface IAkamaiCdnKey { /** AkamaiCdnKey tokenKey */ tokenKey?: (Uint8Array|Buffer|string|null); } /** Represents an AkamaiCdnKey. */ class AkamaiCdnKey implements IAkamaiCdnKey { /** * Constructs a new AkamaiCdnKey. * @param [properties] Properties to set */ constructor(properties?: google.cloud.video.stitcher.v1.IAkamaiCdnKey); /** AkamaiCdnKey tokenKey. */ public tokenKey: (Uint8Array|Buffer|string); /** * Creates a new AkamaiCdnKey instance using the specified properties. * @param [properties] Properties to set * @returns AkamaiCdnKey instance */ public static create(properties?: google.cloud.video.stitcher.v1.IAkamaiCdnKey): google.cloud.video.stitcher.v1.AkamaiCdnKey; /** * Encodes the specified AkamaiCdnKey message. Does not implicitly {@link google.cloud.video.stitcher.v1.AkamaiCdnKey.verify|verify} messages. * @param message AkamaiCdnKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.video.stitcher.v1.IAkamaiCdnKey, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AkamaiCdnKey message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.AkamaiCdnKey.verify|verify} messages. * @param message AkamaiCdnKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IAkamaiCdnKey, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AkamaiCdnKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AkamaiCdnKey * @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.stitcher.v1.AkamaiCdnKey; /** * Decodes an AkamaiCdnKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AkamaiCdnKey * @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.stitcher.v1.AkamaiCdnKey; /** * Verifies an AkamaiCdnKey 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 AkamaiCdnKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AkamaiCdnKey */ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.AkamaiCdnKey; /** * Creates a plain object from an AkamaiCdnKey message. Also converts values to other types if specified. * @param message AkamaiCdnKey * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.video.stitcher.v1.AkamaiCdnKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AkamaiCdnKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AkamaiCdnKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MediaCdnKey. */ interface IMediaCdnKey { /** MediaCdnKey privateKey */ privateKey?: (Uint8Array|Buffer|string|null); /** MediaCdnKey keyName */ keyName?: (string|null); /** MediaCdnKey tokenConfig */ tokenConfig?: (google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig|null); } /** Represents a MediaCdnKey. */ class MediaCdnKey implements IMediaCdnKey { /** * Construct