Class protos.google.cloud.videointelligence.v1.ObjectTrackingConfig (3.0.0)

Represents an ObjectTrackingConfig.

Package

@google-cloud/video-intelligence!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.videointelligence.v1.IObjectTrackingConfig);

Constructs a new ObjectTrackingConfig.

Parameter
NameDescription
properties IObjectTrackingConfig

Properties to set

Properties

model

public model: string;

ObjectTrackingConfig model.

Property Value
TypeDescription
string

Methods

create(properties)

public static create(properties?: google.cloud.videointelligence.v1.IObjectTrackingConfig): google.cloud.videointelligence.v1.ObjectTrackingConfig;

Creates a new ObjectTrackingConfig instance using the specified properties.

Parameter
NameDescription
properties IObjectTrackingConfig

Properties to set

Returns
TypeDescription
google.cloud.videointelligence.v1.ObjectTrackingConfig

ObjectTrackingConfig instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.videointelligence.v1.ObjectTrackingConfig;

Decodes an ObjectTrackingConfig message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.videointelligence.v1.ObjectTrackingConfig

ObjectTrackingConfig

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.videointelligence.v1.ObjectTrackingConfig;

Decodes an ObjectTrackingConfig message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.videointelligence.v1.ObjectTrackingConfig

ObjectTrackingConfig

encode(message, writer)

public static encode(message: google.cloud.videointelligence.v1.IObjectTrackingConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ObjectTrackingConfig message. Does not implicitly messages.

Parameters
NameDescription
message IObjectTrackingConfig

ObjectTrackingConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.videointelligence.v1.IObjectTrackingConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ObjectTrackingConfig message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IObjectTrackingConfig

ObjectTrackingConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.videointelligence.v1.ObjectTrackingConfig;

Creates an ObjectTrackingConfig message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.videointelligence.v1.ObjectTrackingConfig

ObjectTrackingConfig

toJSON()

public toJSON(): { [k: string]: any };

Converts this ObjectTrackingConfig to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.videointelligence.v1.ObjectTrackingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an ObjectTrackingConfig message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.videointelligence.v1.ObjectTrackingConfig

ObjectTrackingConfig

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an ObjectTrackingConfig message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not