diff --git a/protos/protos.js b/protos/protos.js index 78c22029..3cf0308f 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -236,7 +236,7 @@ AnnotateVideoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.features != null && message.features.length) { writer.uint32(/* id 2, wireType 2 =*/18).fork(); @@ -244,13 +244,13 @@ writer.int32(message.features[i]); writer.ldelim(); } - if (message.videoContext != null && message.hasOwnProperty("videoContext")) + if (message.videoContext != null && Object.hasOwnProperty.call(message, "videoContext")) $root.google.cloud.videointelligence.v1.VideoContext.encode(message.videoContext, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) + if (message.outputUri != null && Object.hasOwnProperty.call(message, "outputUri")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputUri); - if (message.locationId != null && message.hasOwnProperty("locationId")) + if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.locationId); - if (message.inputContent != null && message.hasOwnProperty("inputContent")) + if (message.inputContent != null && Object.hasOwnProperty.call(message, "inputContent")) writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.inputContent); return writer; }; @@ -644,19 +644,19 @@ if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.labelDetectionConfig != null && message.hasOwnProperty("labelDetectionConfig")) + if (message.labelDetectionConfig != null && Object.hasOwnProperty.call(message, "labelDetectionConfig")) $root.google.cloud.videointelligence.v1.LabelDetectionConfig.encode(message.labelDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shotChangeDetectionConfig != null && message.hasOwnProperty("shotChangeDetectionConfig")) + if (message.shotChangeDetectionConfig != null && Object.hasOwnProperty.call(message, "shotChangeDetectionConfig")) $root.google.cloud.videointelligence.v1.ShotChangeDetectionConfig.encode(message.shotChangeDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explicitContentDetectionConfig != null && message.hasOwnProperty("explicitContentDetectionConfig")) + if (message.explicitContentDetectionConfig != null && Object.hasOwnProperty.call(message, "explicitContentDetectionConfig")) $root.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig.encode(message.explicitContentDetectionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.faceDetectionConfig != null && message.hasOwnProperty("faceDetectionConfig")) + if (message.faceDetectionConfig != null && Object.hasOwnProperty.call(message, "faceDetectionConfig")) $root.google.cloud.videointelligence.v1.FaceDetectionConfig.encode(message.faceDetectionConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.speechTranscriptionConfig != null && message.hasOwnProperty("speechTranscriptionConfig")) + if (message.speechTranscriptionConfig != null && Object.hasOwnProperty.call(message, "speechTranscriptionConfig")) $root.google.cloud.videointelligence.v1.SpeechTranscriptionConfig.encode(message.speechTranscriptionConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.textDetectionConfig != null && message.hasOwnProperty("textDetectionConfig")) + if (message.textDetectionConfig != null && Object.hasOwnProperty.call(message, "textDetectionConfig")) $root.google.cloud.videointelligence.v1.TextDetectionConfig.encode(message.textDetectionConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.objectTrackingConfig != null && message.hasOwnProperty("objectTrackingConfig")) + if (message.objectTrackingConfig != null && Object.hasOwnProperty.call(message, "objectTrackingConfig")) $root.google.cloud.videointelligence.v1.ObjectTrackingConfig.encode(message.objectTrackingConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; @@ -923,7 +923,7 @@ /** * Feature enum. * @name google.cloud.videointelligence.v1.Feature - * @enum {string} + * @enum {number} * @property {number} FEATURE_UNSPECIFIED=0 FEATURE_UNSPECIFIED value * @property {number} LABEL_DETECTION=1 LABEL_DETECTION value * @property {number} SHOT_CHANGE_DETECTION=2 SHOT_CHANGE_DETECTION value @@ -951,7 +951,7 @@ /** * LabelDetectionMode enum. * @name google.cloud.videointelligence.v1.LabelDetectionMode - * @enum {string} + * @enum {number} * @property {number} LABEL_DETECTION_MODE_UNSPECIFIED=0 LABEL_DETECTION_MODE_UNSPECIFIED value * @property {number} SHOT_MODE=1 SHOT_MODE value * @property {number} FRAME_MODE=2 FRAME_MODE value @@ -969,7 +969,7 @@ /** * Likelihood enum. * @name google.cloud.videointelligence.v1.Likelihood - * @enum {string} + * @enum {number} * @property {number} LIKELIHOOD_UNSPECIFIED=0 LIKELIHOOD_UNSPECIFIED value * @property {number} VERY_UNLIKELY=1 VERY_UNLIKELY value * @property {number} UNLIKELY=2 UNLIKELY value @@ -1080,15 +1080,15 @@ LabelDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.labelDetectionMode != null && message.hasOwnProperty("labelDetectionMode")) + if (message.labelDetectionMode != null && Object.hasOwnProperty.call(message, "labelDetectionMode")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.labelDetectionMode); - if (message.stationaryCamera != null && message.hasOwnProperty("stationaryCamera")) + if (message.stationaryCamera != null && Object.hasOwnProperty.call(message, "stationaryCamera")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.stationaryCamera); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.frameConfidenceThreshold != null && message.hasOwnProperty("frameConfidenceThreshold")) + if (message.frameConfidenceThreshold != null && Object.hasOwnProperty.call(message, "frameConfidenceThreshold")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.frameConfidenceThreshold); - if (message.videoConfidenceThreshold != null && message.hasOwnProperty("videoConfidenceThreshold")) + if (message.videoConfidenceThreshold != null && Object.hasOwnProperty.call(message, "videoConfidenceThreshold")) writer.uint32(/* id 5, wireType 5 =*/45).float(message.videoConfidenceThreshold); return writer; }; @@ -1343,7 +1343,7 @@ ShotChangeDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -1530,7 +1530,7 @@ ObjectTrackingConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -1726,9 +1726,9 @@ FaceDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.includeBoundingBoxes != null && message.hasOwnProperty("includeBoundingBoxes")) + if (message.includeBoundingBoxes != null && Object.hasOwnProperty.call(message, "includeBoundingBoxes")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeBoundingBoxes); return writer; }; @@ -1927,7 +1927,7 @@ ExplicitContentDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -2127,7 +2127,7 @@ if (message.languageHints != null && message.languageHints.length) for (var i = 0; i < message.languageHints.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.languageHints[i]); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); return writer; }; @@ -2349,9 +2349,9 @@ VideoSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) + if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset")) $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) + if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset")) $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -2569,9 +2569,9 @@ LabelSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -2784,9 +2784,9 @@ LabelFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -3008,11 +3008,11 @@ Entity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityId != null && message.hasOwnProperty("entityId")) + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; @@ -3252,7 +3252,7 @@ LabelAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.categoryEntities != null && message.categoryEntities.length) for (var i = 0; i < message.categoryEntities.length; ++i) @@ -3554,9 +3554,9 @@ ExplicitContentFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pornographyLikelihood != null && message.hasOwnProperty("pornographyLikelihood")) + if (message.pornographyLikelihood != null && Object.hasOwnProperty.call(message, "pornographyLikelihood")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pornographyLikelihood); return writer; }; @@ -4028,13 +4028,13 @@ NormalizedBoundingBox.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.left != null && message.hasOwnProperty("left")) + if (message.left != null && Object.hasOwnProperty.call(message, "left")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.left); - if (message.top != null && message.hasOwnProperty("top")) + if (message.top != null && Object.hasOwnProperty.call(message, "top")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.top); - if (message.right != null && message.hasOwnProperty("right")) + if (message.right != null && Object.hasOwnProperty.call(message, "right")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.right); - if (message.bottom != null && message.hasOwnProperty("bottom")) + if (message.bottom != null && Object.hasOwnProperty.call(message, "bottom")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.bottom); return writer; }; @@ -4255,7 +4255,7 @@ FaceSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -4460,7 +4460,7 @@ if (message.normalizedBoundingBoxes != null && message.normalizedBoundingBoxes.length) for (var i = 0; i < message.normalizedBoundingBoxes.length; ++i) $root.google.cloud.videointelligence.v1.NormalizedBoundingBox.encode(message.normalizedBoundingBoxes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -4703,7 +4703,7 @@ FaceAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.thumbnail != null && message.hasOwnProperty("thumbnail")) + if (message.thumbnail != null && Object.hasOwnProperty.call(message, "thumbnail")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.thumbnail); if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) @@ -4996,9 +4996,9 @@ TimestampedObject.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.normalizedBoundingBox != null && message.hasOwnProperty("normalizedBoundingBox")) + if (message.normalizedBoundingBox != null && Object.hasOwnProperty.call(message, "normalizedBoundingBox")) $root.google.cloud.videointelligence.v1.NormalizedBoundingBox.encode(message.normalizedBoundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.attributes != null && message.attributes.length) for (var i = 0; i < message.attributes.length; ++i) @@ -5304,7 +5304,7 @@ Track.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.timestampedObjects != null && message.timestampedObjects.length) for (var i = 0; i < message.timestampedObjects.length; ++i) @@ -5312,7 +5312,7 @@ if (message.attributes != null && message.attributes.length) for (var i = 0; i < message.attributes.length; ++i) $root.google.cloud.videointelligence.v1.DetectedAttribute.encode(message.attributes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); return writer; }; @@ -5596,11 +5596,11 @@ DetectedAttribute.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); return writer; }; @@ -5828,11 +5828,11 @@ DetectedLandmark.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.point != null && message.hasOwnProperty("point")) + if (message.point != null && Object.hasOwnProperty.call(message, "point")) $root.google.cloud.videointelligence.v1.NormalizedVertex.encode(message.point, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); return writer; }; @@ -6184,7 +6184,7 @@ VideoAnnotationResults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.segmentLabelAnnotations != null && message.segmentLabelAnnotations.length) for (var i = 0; i < message.segmentLabelAnnotations.length; ++i) @@ -6201,11 +6201,11 @@ if (message.shotAnnotations != null && message.shotAnnotations.length) for (var i = 0; i < message.shotAnnotations.length; ++i) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.shotAnnotations[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.explicitAnnotation != null && message.hasOwnProperty("explicitAnnotation")) + if (message.explicitAnnotation != null && Object.hasOwnProperty.call(message, "explicitAnnotation")) $root.google.cloud.videointelligence.v1.ExplicitContentAnnotation.encode(message.explicitAnnotation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.segment, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.speechTranscriptions != null && message.speechTranscriptions.length) for (var i = 0; i < message.speechTranscriptions.length; ++i) @@ -7044,17 +7044,17 @@ VideoAnnotationProgress.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); - if (message.progressPercent != null && message.hasOwnProperty("progressPercent")) + if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.progressPercent); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.feature != null && message.hasOwnProperty("feature")) + if (message.feature != null && Object.hasOwnProperty.call(message, "feature")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.feature); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.segment, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -7642,16 +7642,16 @@ SpeechTranscriptionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.languageCode); - if (message.maxAlternatives != null && message.hasOwnProperty("maxAlternatives")) + if (message.maxAlternatives != null && Object.hasOwnProperty.call(message, "maxAlternatives")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxAlternatives); - if (message.filterProfanity != null && message.hasOwnProperty("filterProfanity")) + if (message.filterProfanity != null && Object.hasOwnProperty.call(message, "filterProfanity")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.filterProfanity); if (message.speechContexts != null && message.speechContexts.length) for (var i = 0; i < message.speechContexts.length; ++i) $root.google.cloud.videointelligence.v1.SpeechContext.encode(message.speechContexts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enableAutomaticPunctuation != null && message.hasOwnProperty("enableAutomaticPunctuation")) + if (message.enableAutomaticPunctuation != null && Object.hasOwnProperty.call(message, "enableAutomaticPunctuation")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableAutomaticPunctuation); if (message.audioTracks != null && message.audioTracks.length) { writer.uint32(/* id 6, wireType 2 =*/50).fork(); @@ -7659,11 +7659,11 @@ writer.int32(message.audioTracks[i]); writer.ldelim(); } - if (message.enableSpeakerDiarization != null && message.hasOwnProperty("enableSpeakerDiarization")) + if (message.enableSpeakerDiarization != null && Object.hasOwnProperty.call(message, "enableSpeakerDiarization")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSpeakerDiarization); - if (message.diarizationSpeakerCount != null && message.hasOwnProperty("diarizationSpeakerCount")) + if (message.diarizationSpeakerCount != null && Object.hasOwnProperty.call(message, "diarizationSpeakerCount")) writer.uint32(/* id 8, wireType 0 =*/64).int32(message.diarizationSpeakerCount); - if (message.enableWordConfidence != null && message.hasOwnProperty("enableWordConfidence")) + if (message.enableWordConfidence != null && Object.hasOwnProperty.call(message, "enableWordConfidence")) writer.uint32(/* id 9, wireType 0 =*/72).bool(message.enableWordConfidence); return writer; }; @@ -8195,7 +8195,7 @@ if (message.alternatives != null && message.alternatives.length) for (var i = 0; i < message.alternatives.length; ++i) $root.google.cloud.videointelligence.v1.SpeechRecognitionAlternative.encode(message.alternatives[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; @@ -8432,9 +8432,9 @@ SpeechRecognitionAlternative.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transcript != null && message.hasOwnProperty("transcript")) + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.transcript); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); if (message.words != null && message.words.length) for (var i = 0; i < message.words.length; ++i) @@ -8703,15 +8703,15 @@ WordInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Duration.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && message.hasOwnProperty("endTime")) + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) $root.google.protobuf.Duration.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.word != null && message.hasOwnProperty("word")) + if (message.word != null && Object.hasOwnProperty.call(message, "word")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - if (message.speakerTag != null && message.hasOwnProperty("speakerTag")) + if (message.speakerTag != null && Object.hasOwnProperty.call(message, "speakerTag")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.speakerTag); return writer; }; @@ -8962,9 +8962,9 @@ NormalizedVertex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.x != null && message.hasOwnProperty("x")) + if (message.x != null && Object.hasOwnProperty.call(message, "x")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.x); - if (message.y != null && message.hasOwnProperty("y")) + if (message.y != null && Object.hasOwnProperty.call(message, "y")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.y); return writer; }; @@ -9390,9 +9390,9 @@ TextSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); if (message.frames != null && message.frames.length) for (var i = 0; i < message.frames.length; ++i) @@ -9639,9 +9639,9 @@ TextFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rotatedBoundingBox != null && message.hasOwnProperty("rotatedBoundingBox")) + if (message.rotatedBoundingBox != null && Object.hasOwnProperty.call(message, "rotatedBoundingBox")) $root.google.cloud.videointelligence.v1.NormalizedBoundingPoly.encode(message.rotatedBoundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -9860,7 +9860,7 @@ TextAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.hasOwnProperty("text")) + if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) @@ -10090,9 +10090,9 @@ ObjectTrackingFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.normalizedBoundingBox != null && message.hasOwnProperty("normalizedBoundingBox")) + if (message.normalizedBoundingBox != null && Object.hasOwnProperty.call(message, "normalizedBoundingBox")) $root.google.cloud.videointelligence.v1.NormalizedBoundingBox.encode(message.normalizedBoundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -10352,16 +10352,16 @@ ObjectTrackingAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.frames != null && message.frames.length) for (var i = 0; i < message.frames.length; ++i) $root.google.cloud.videointelligence.v1.ObjectTrackingFrame.encode(message.frames[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1.VideoSegment.encode(message.segment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - if (message.trackId != null && message.hasOwnProperty("trackId")) + if (message.trackId != null && Object.hasOwnProperty.call(message, "trackId")) writer.uint32(/* id 5, wireType 0 =*/40).int64(message.trackId); return writer; }; @@ -10665,7 +10665,7 @@ LogoRecognitionAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.tracks != null && message.tracks.length) for (var i = 0; i < message.tracks.length; ++i) @@ -11051,7 +11051,7 @@ AnnotateVideoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.features != null && message.features.length) { writer.uint32(/* id 2, wireType 2 =*/18).fork(); @@ -11059,13 +11059,13 @@ writer.int32(message.features[i]); writer.ldelim(); } - if (message.videoContext != null && message.hasOwnProperty("videoContext")) + if (message.videoContext != null && Object.hasOwnProperty.call(message, "videoContext")) $root.google.cloud.videointelligence.v1beta2.VideoContext.encode(message.videoContext, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) + if (message.outputUri != null && Object.hasOwnProperty.call(message, "outputUri")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputUri); - if (message.locationId != null && message.hasOwnProperty("locationId")) + if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.locationId); - if (message.inputContent != null && message.hasOwnProperty("inputContent")) + if (message.inputContent != null && Object.hasOwnProperty.call(message, "inputContent")) writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.inputContent); return writer; }; @@ -11412,13 +11412,13 @@ if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) $root.google.cloud.videointelligence.v1beta2.VideoSegment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.labelDetectionConfig != null && message.hasOwnProperty("labelDetectionConfig")) + if (message.labelDetectionConfig != null && Object.hasOwnProperty.call(message, "labelDetectionConfig")) $root.google.cloud.videointelligence.v1beta2.LabelDetectionConfig.encode(message.labelDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shotChangeDetectionConfig != null && message.hasOwnProperty("shotChangeDetectionConfig")) + if (message.shotChangeDetectionConfig != null && Object.hasOwnProperty.call(message, "shotChangeDetectionConfig")) $root.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig.encode(message.shotChangeDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explicitContentDetectionConfig != null && message.hasOwnProperty("explicitContentDetectionConfig")) + if (message.explicitContentDetectionConfig != null && Object.hasOwnProperty.call(message, "explicitContentDetectionConfig")) $root.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig.encode(message.explicitContentDetectionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.faceDetectionConfig != null && message.hasOwnProperty("faceDetectionConfig")) + if (message.faceDetectionConfig != null && Object.hasOwnProperty.call(message, "faceDetectionConfig")) $root.google.cloud.videointelligence.v1beta2.FaceDetectionConfig.encode(message.faceDetectionConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -11708,11 +11708,11 @@ LabelDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.labelDetectionMode != null && message.hasOwnProperty("labelDetectionMode")) + if (message.labelDetectionMode != null && Object.hasOwnProperty.call(message, "labelDetectionMode")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.labelDetectionMode); - if (message.stationaryCamera != null && message.hasOwnProperty("stationaryCamera")) + if (message.stationaryCamera != null && Object.hasOwnProperty.call(message, "stationaryCamera")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.stationaryCamera); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); return writer; }; @@ -11945,7 +11945,7 @@ ShotChangeDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -12132,7 +12132,7 @@ ExplicitContentDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -12328,9 +12328,9 @@ FaceDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.includeBoundingBoxes != null && message.hasOwnProperty("includeBoundingBoxes")) + if (message.includeBoundingBoxes != null && Object.hasOwnProperty.call(message, "includeBoundingBoxes")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeBoundingBoxes); return writer; }; @@ -12538,9 +12538,9 @@ VideoSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) + if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset")) $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) + if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset")) $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -12758,9 +12758,9 @@ LabelSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1beta2.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -12973,9 +12973,9 @@ LabelFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -13197,11 +13197,11 @@ Entity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityId != null && message.hasOwnProperty("entityId")) + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; @@ -13441,7 +13441,7 @@ LabelAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1beta2.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.categoryEntities != null && message.categoryEntities.length) for (var i = 0; i < message.categoryEntities.length; ++i) @@ -13743,9 +13743,9 @@ ExplicitContentFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pornographyLikelihood != null && message.hasOwnProperty("pornographyLikelihood")) + if (message.pornographyLikelihood != null && Object.hasOwnProperty.call(message, "pornographyLikelihood")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pornographyLikelihood); return writer; }; @@ -14217,13 +14217,13 @@ NormalizedBoundingBox.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.left != null && message.hasOwnProperty("left")) + if (message.left != null && Object.hasOwnProperty.call(message, "left")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.left); - if (message.top != null && message.hasOwnProperty("top")) + if (message.top != null && Object.hasOwnProperty.call(message, "top")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.top); - if (message.right != null && message.hasOwnProperty("right")) + if (message.right != null && Object.hasOwnProperty.call(message, "right")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.right); - if (message.bottom != null && message.hasOwnProperty("bottom")) + if (message.bottom != null && Object.hasOwnProperty.call(message, "bottom")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.bottom); return writer; }; @@ -14444,7 +14444,7 @@ FaceSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1beta2.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -14649,7 +14649,7 @@ if (message.normalizedBoundingBoxes != null && message.normalizedBoundingBoxes.length) for (var i = 0; i < message.normalizedBoundingBoxes.length; ++i) $root.google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.encode(message.normalizedBoundingBoxes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -14892,7 +14892,7 @@ FaceAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.thumbnail != null && message.hasOwnProperty("thumbnail")) + if (message.thumbnail != null && Object.hasOwnProperty.call(message, "thumbnail")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.thumbnail); if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) @@ -15224,7 +15224,7 @@ VideoAnnotationResults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.segmentLabelAnnotations != null && message.segmentLabelAnnotations.length) for (var i = 0; i < message.segmentLabelAnnotations.length; ++i) @@ -15241,9 +15241,9 @@ if (message.shotAnnotations != null && message.shotAnnotations.length) for (var i = 0; i < message.shotAnnotations.length; ++i) $root.google.cloud.videointelligence.v1beta2.VideoSegment.encode(message.shotAnnotations[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.explicitAnnotation != null && message.hasOwnProperty("explicitAnnotation")) + if (message.explicitAnnotation != null && Object.hasOwnProperty.call(message, "explicitAnnotation")) $root.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation.encode(message.explicitAnnotation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; @@ -15850,13 +15850,13 @@ VideoAnnotationProgress.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); - if (message.progressPercent != null && message.hasOwnProperty("progressPercent")) + if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.progressPercent); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -16242,7 +16242,7 @@ /** * Feature enum. * @name google.cloud.videointelligence.v1beta2.Feature - * @enum {string} + * @enum {number} * @property {number} FEATURE_UNSPECIFIED=0 FEATURE_UNSPECIFIED value * @property {number} LABEL_DETECTION=1 LABEL_DETECTION value * @property {number} SHOT_CHANGE_DETECTION=2 SHOT_CHANGE_DETECTION value @@ -16262,7 +16262,7 @@ /** * LabelDetectionMode enum. * @name google.cloud.videointelligence.v1beta2.LabelDetectionMode - * @enum {string} + * @enum {number} * @property {number} LABEL_DETECTION_MODE_UNSPECIFIED=0 LABEL_DETECTION_MODE_UNSPECIFIED value * @property {number} SHOT_MODE=1 SHOT_MODE value * @property {number} FRAME_MODE=2 FRAME_MODE value @@ -16280,7 +16280,7 @@ /** * Likelihood enum. * @name google.cloud.videointelligence.v1beta2.Likelihood - * @enum {string} + * @enum {number} * @property {number} LIKELIHOOD_UNSPECIFIED=0 LIKELIHOOD_UNSPECIFIED value * @property {number} VERY_UNLIKELY=1 VERY_UNLIKELY value * @property {number} UNLIKELY=2 UNLIKELY value @@ -16481,7 +16481,7 @@ AnnotateVideoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.features != null && message.features.length) { writer.uint32(/* id 2, wireType 2 =*/18).fork(); @@ -16489,13 +16489,13 @@ writer.int32(message.features[i]); writer.ldelim(); } - if (message.videoContext != null && message.hasOwnProperty("videoContext")) + if (message.videoContext != null && Object.hasOwnProperty.call(message, "videoContext")) $root.google.cloud.videointelligence.v1p1beta1.VideoContext.encode(message.videoContext, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) + if (message.outputUri != null && Object.hasOwnProperty.call(message, "outputUri")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputUri); - if (message.locationId != null && message.hasOwnProperty("locationId")) + if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.locationId); - if (message.inputContent != null && message.hasOwnProperty("inputContent")) + if (message.inputContent != null && Object.hasOwnProperty.call(message, "inputContent")) writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.inputContent); return writer; }; @@ -16842,13 +16842,13 @@ if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) $root.google.cloud.videointelligence.v1p1beta1.VideoSegment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.labelDetectionConfig != null && message.hasOwnProperty("labelDetectionConfig")) + if (message.labelDetectionConfig != null && Object.hasOwnProperty.call(message, "labelDetectionConfig")) $root.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig.encode(message.labelDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shotChangeDetectionConfig != null && message.hasOwnProperty("shotChangeDetectionConfig")) + if (message.shotChangeDetectionConfig != null && Object.hasOwnProperty.call(message, "shotChangeDetectionConfig")) $root.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig.encode(message.shotChangeDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explicitContentDetectionConfig != null && message.hasOwnProperty("explicitContentDetectionConfig")) + if (message.explicitContentDetectionConfig != null && Object.hasOwnProperty.call(message, "explicitContentDetectionConfig")) $root.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig.encode(message.explicitContentDetectionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.speechTranscriptionConfig != null && message.hasOwnProperty("speechTranscriptionConfig")) + if (message.speechTranscriptionConfig != null && Object.hasOwnProperty.call(message, "speechTranscriptionConfig")) $root.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.encode(message.speechTranscriptionConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -17138,11 +17138,11 @@ LabelDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.labelDetectionMode != null && message.hasOwnProperty("labelDetectionMode")) + if (message.labelDetectionMode != null && Object.hasOwnProperty.call(message, "labelDetectionMode")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.labelDetectionMode); - if (message.stationaryCamera != null && message.hasOwnProperty("stationaryCamera")) + if (message.stationaryCamera != null && Object.hasOwnProperty.call(message, "stationaryCamera")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.stationaryCamera); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); return writer; }; @@ -17375,7 +17375,7 @@ ShotChangeDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -17562,7 +17562,7 @@ ExplicitContentDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -17758,9 +17758,9 @@ VideoSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) + if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset")) $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) + if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset")) $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -17978,9 +17978,9 @@ LabelSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p1beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -18193,9 +18193,9 @@ LabelFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -18417,11 +18417,11 @@ Entity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityId != null && message.hasOwnProperty("entityId")) + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; @@ -18661,7 +18661,7 @@ LabelAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1p1beta1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.categoryEntities != null && message.categoryEntities.length) for (var i = 0; i < message.categoryEntities.length; ++i) @@ -18963,9 +18963,9 @@ ExplicitContentFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pornographyLikelihood != null && message.hasOwnProperty("pornographyLikelihood")) + if (message.pornographyLikelihood != null && Object.hasOwnProperty.call(message, "pornographyLikelihood")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pornographyLikelihood); return writer; }; @@ -19478,7 +19478,7 @@ VideoAnnotationResults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.segmentLabelAnnotations != null && message.segmentLabelAnnotations.length) for (var i = 0; i < message.segmentLabelAnnotations.length; ++i) @@ -19492,9 +19492,9 @@ if (message.shotAnnotations != null && message.shotAnnotations.length) for (var i = 0; i < message.shotAnnotations.length; ++i) $root.google.cloud.videointelligence.v1p1beta1.VideoSegment.encode(message.shotAnnotations[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.explicitAnnotation != null && message.hasOwnProperty("explicitAnnotation")) + if (message.explicitAnnotation != null && Object.hasOwnProperty.call(message, "explicitAnnotation")) $root.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation.encode(message.explicitAnnotation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.speechTranscriptions != null && message.speechTranscriptions.length) for (var i = 0; i < message.speechTranscriptions.length; ++i) @@ -20104,13 +20104,13 @@ VideoAnnotationProgress.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); - if (message.progressPercent != null && message.hasOwnProperty("progressPercent")) + if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.progressPercent); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -20596,16 +20596,16 @@ SpeechTranscriptionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.languageCode); - if (message.maxAlternatives != null && message.hasOwnProperty("maxAlternatives")) + if (message.maxAlternatives != null && Object.hasOwnProperty.call(message, "maxAlternatives")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxAlternatives); - if (message.filterProfanity != null && message.hasOwnProperty("filterProfanity")) + if (message.filterProfanity != null && Object.hasOwnProperty.call(message, "filterProfanity")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.filterProfanity); if (message.speechContexts != null && message.speechContexts.length) for (var i = 0; i < message.speechContexts.length; ++i) $root.google.cloud.videointelligence.v1p1beta1.SpeechContext.encode(message.speechContexts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enableAutomaticPunctuation != null && message.hasOwnProperty("enableAutomaticPunctuation")) + if (message.enableAutomaticPunctuation != null && Object.hasOwnProperty.call(message, "enableAutomaticPunctuation")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableAutomaticPunctuation); if (message.audioTracks != null && message.audioTracks.length) { writer.uint32(/* id 6, wireType 2 =*/50).fork(); @@ -21324,9 +21324,9 @@ SpeechRecognitionAlternative.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transcript != null && message.hasOwnProperty("transcript")) + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.transcript); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); if (message.words != null && message.words.length) for (var i = 0; i < message.words.length; ++i) @@ -21577,11 +21577,11 @@ WordInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Duration.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && message.hasOwnProperty("endTime")) + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) $root.google.protobuf.Duration.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.word != null && message.hasOwnProperty("word")) + if (message.word != null && Object.hasOwnProperty.call(message, "word")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); return writer; }; @@ -21748,7 +21748,7 @@ /** * Feature enum. * @name google.cloud.videointelligence.v1p1beta1.Feature - * @enum {string} + * @enum {number} * @property {number} FEATURE_UNSPECIFIED=0 FEATURE_UNSPECIFIED value * @property {number} LABEL_DETECTION=1 LABEL_DETECTION value * @property {number} SHOT_CHANGE_DETECTION=2 SHOT_CHANGE_DETECTION value @@ -21768,7 +21768,7 @@ /** * LabelDetectionMode enum. * @name google.cloud.videointelligence.v1p1beta1.LabelDetectionMode - * @enum {string} + * @enum {number} * @property {number} LABEL_DETECTION_MODE_UNSPECIFIED=0 LABEL_DETECTION_MODE_UNSPECIFIED value * @property {number} SHOT_MODE=1 SHOT_MODE value * @property {number} FRAME_MODE=2 FRAME_MODE value @@ -21786,7 +21786,7 @@ /** * Likelihood enum. * @name google.cloud.videointelligence.v1p1beta1.Likelihood - * @enum {string} + * @enum {number} * @property {number} LIKELIHOOD_UNSPECIFIED=0 LIKELIHOOD_UNSPECIFIED value * @property {number} VERY_UNLIKELY=1 VERY_UNLIKELY value * @property {number} UNLIKELY=2 UNLIKELY value @@ -21987,7 +21987,7 @@ AnnotateVideoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.features != null && message.features.length) { writer.uint32(/* id 2, wireType 2 =*/18).fork(); @@ -21995,13 +21995,13 @@ writer.int32(message.features[i]); writer.ldelim(); } - if (message.videoContext != null && message.hasOwnProperty("videoContext")) + if (message.videoContext != null && Object.hasOwnProperty.call(message, "videoContext")) $root.google.cloud.videointelligence.v1p2beta1.VideoContext.encode(message.videoContext, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) + if (message.outputUri != null && Object.hasOwnProperty.call(message, "outputUri")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputUri); - if (message.locationId != null && message.hasOwnProperty("locationId")) + if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.locationId); - if (message.inputContent != null && message.hasOwnProperty("inputContent")) + if (message.inputContent != null && Object.hasOwnProperty.call(message, "inputContent")) writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.inputContent); return writer; }; @@ -22353,13 +22353,13 @@ if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) $root.google.cloud.videointelligence.v1p2beta1.VideoSegment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.labelDetectionConfig != null && message.hasOwnProperty("labelDetectionConfig")) + if (message.labelDetectionConfig != null && Object.hasOwnProperty.call(message, "labelDetectionConfig")) $root.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.encode(message.labelDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shotChangeDetectionConfig != null && message.hasOwnProperty("shotChangeDetectionConfig")) + if (message.shotChangeDetectionConfig != null && Object.hasOwnProperty.call(message, "shotChangeDetectionConfig")) $root.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.encode(message.shotChangeDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explicitContentDetectionConfig != null && message.hasOwnProperty("explicitContentDetectionConfig")) + if (message.explicitContentDetectionConfig != null && Object.hasOwnProperty.call(message, "explicitContentDetectionConfig")) $root.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.encode(message.explicitContentDetectionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.textDetectionConfig != null && message.hasOwnProperty("textDetectionConfig")) + if (message.textDetectionConfig != null && Object.hasOwnProperty.call(message, "textDetectionConfig")) $root.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.encode(message.textDetectionConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -22649,11 +22649,11 @@ LabelDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.labelDetectionMode != null && message.hasOwnProperty("labelDetectionMode")) + if (message.labelDetectionMode != null && Object.hasOwnProperty.call(message, "labelDetectionMode")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.labelDetectionMode); - if (message.stationaryCamera != null && message.hasOwnProperty("stationaryCamera")) + if (message.stationaryCamera != null && Object.hasOwnProperty.call(message, "stationaryCamera")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.stationaryCamera); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); return writer; }; @@ -22886,7 +22886,7 @@ ShotChangeDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -23073,7 +23073,7 @@ ExplicitContentDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -23472,9 +23472,9 @@ VideoSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) + if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset")) $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) + if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset")) $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -23692,9 +23692,9 @@ LabelSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p2beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -23907,9 +23907,9 @@ LabelFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -24131,11 +24131,11 @@ Entity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityId != null && message.hasOwnProperty("entityId")) + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; @@ -24375,7 +24375,7 @@ LabelAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1p2beta1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.categoryEntities != null && message.categoryEntities.length) for (var i = 0; i < message.categoryEntities.length; ++i) @@ -24677,9 +24677,9 @@ ExplicitContentFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pornographyLikelihood != null && message.hasOwnProperty("pornographyLikelihood")) + if (message.pornographyLikelihood != null && Object.hasOwnProperty.call(message, "pornographyLikelihood")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pornographyLikelihood); return writer; }; @@ -25151,13 +25151,13 @@ NormalizedBoundingBox.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.left != null && message.hasOwnProperty("left")) + if (message.left != null && Object.hasOwnProperty.call(message, "left")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.left); - if (message.top != null && message.hasOwnProperty("top")) + if (message.top != null && Object.hasOwnProperty.call(message, "top")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.top); - if (message.right != null && message.hasOwnProperty("right")) + if (message.right != null && Object.hasOwnProperty.call(message, "right")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.right); - if (message.bottom != null && message.hasOwnProperty("bottom")) + if (message.bottom != null && Object.hasOwnProperty.call(message, "bottom")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.bottom); return writer; }; @@ -25456,7 +25456,7 @@ VideoAnnotationResults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.segmentLabelAnnotations != null && message.segmentLabelAnnotations.length) for (var i = 0; i < message.segmentLabelAnnotations.length; ++i) @@ -25470,9 +25470,9 @@ if (message.shotAnnotations != null && message.shotAnnotations.length) for (var i = 0; i < message.shotAnnotations.length; ++i) $root.google.cloud.videointelligence.v1p2beta1.VideoSegment.encode(message.shotAnnotations[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.explicitAnnotation != null && message.hasOwnProperty("explicitAnnotation")) + if (message.explicitAnnotation != null && Object.hasOwnProperty.call(message, "explicitAnnotation")) $root.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.encode(message.explicitAnnotation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.textAnnotations != null && message.textAnnotations.length) for (var i = 0; i < message.textAnnotations.length; ++i) @@ -26115,13 +26115,13 @@ VideoAnnotationProgress.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); - if (message.progressPercent != null && message.hasOwnProperty("progressPercent")) + if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.progressPercent); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -26569,9 +26569,9 @@ NormalizedVertex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.x != null && message.hasOwnProperty("x")) + if (message.x != null && Object.hasOwnProperty.call(message, "x")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.x); - if (message.y != null && message.hasOwnProperty("y")) + if (message.y != null && Object.hasOwnProperty.call(message, "y")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.y); return writer; }; @@ -26997,9 +26997,9 @@ TextSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p2beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); if (message.frames != null && message.frames.length) for (var i = 0; i < message.frames.length; ++i) @@ -27246,9 +27246,9 @@ TextFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rotatedBoundingBox != null && message.hasOwnProperty("rotatedBoundingBox")) + if (message.rotatedBoundingBox != null && Object.hasOwnProperty.call(message, "rotatedBoundingBox")) $root.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.encode(message.rotatedBoundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -27467,7 +27467,7 @@ TextAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.hasOwnProperty("text")) + if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) @@ -27697,9 +27697,9 @@ ObjectTrackingFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.normalizedBoundingBox != null && message.hasOwnProperty("normalizedBoundingBox")) + if (message.normalizedBoundingBox != null && Object.hasOwnProperty.call(message, "normalizedBoundingBox")) $root.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.encode(message.normalizedBoundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -27936,14 +27936,14 @@ ObjectTrackingAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1p2beta1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.frames != null && message.frames.length) for (var i = 0; i < message.frames.length; ++i) $root.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.encode(message.frames[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p2beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); return writer; }; @@ -28141,7 +28141,7 @@ /** * Feature enum. * @name google.cloud.videointelligence.v1p2beta1.Feature - * @enum {string} + * @enum {number} * @property {number} FEATURE_UNSPECIFIED=0 FEATURE_UNSPECIFIED value * @property {number} LABEL_DETECTION=1 LABEL_DETECTION value * @property {number} SHOT_CHANGE_DETECTION=2 SHOT_CHANGE_DETECTION value @@ -28163,7 +28163,7 @@ /** * LabelDetectionMode enum. * @name google.cloud.videointelligence.v1p2beta1.LabelDetectionMode - * @enum {string} + * @enum {number} * @property {number} LABEL_DETECTION_MODE_UNSPECIFIED=0 LABEL_DETECTION_MODE_UNSPECIFIED value * @property {number} SHOT_MODE=1 SHOT_MODE value * @property {number} FRAME_MODE=2 FRAME_MODE value @@ -28181,7 +28181,7 @@ /** * Likelihood enum. * @name google.cloud.videointelligence.v1p2beta1.Likelihood - * @enum {string} + * @enum {number} * @property {number} LIKELIHOOD_UNSPECIFIED=0 LIKELIHOOD_UNSPECIFIED value * @property {number} VERY_UNLIKELY=1 VERY_UNLIKELY value * @property {number} UNLIKELY=2 UNLIKELY value @@ -28450,7 +28450,7 @@ AnnotateVideoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.features != null && message.features.length) { writer.uint32(/* id 2, wireType 2 =*/18).fork(); @@ -28458,13 +28458,13 @@ writer.int32(message.features[i]); writer.ldelim(); } - if (message.videoContext != null && message.hasOwnProperty("videoContext")) + if (message.videoContext != null && Object.hasOwnProperty.call(message, "videoContext")) $root.google.cloud.videointelligence.v1p3beta1.VideoContext.encode(message.videoContext, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) + if (message.outputUri != null && Object.hasOwnProperty.call(message, "outputUri")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputUri); - if (message.locationId != null && message.hasOwnProperty("locationId")) + if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.locationId); - if (message.inputContent != null && message.hasOwnProperty("inputContent")) + if (message.inputContent != null && Object.hasOwnProperty.call(message, "inputContent")) writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.inputContent); return writer; }; @@ -28877,21 +28877,21 @@ if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.VideoSegment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.labelDetectionConfig != null && message.hasOwnProperty("labelDetectionConfig")) + if (message.labelDetectionConfig != null && Object.hasOwnProperty.call(message, "labelDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.encode(message.labelDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shotChangeDetectionConfig != null && message.hasOwnProperty("shotChangeDetectionConfig")) + if (message.shotChangeDetectionConfig != null && Object.hasOwnProperty.call(message, "shotChangeDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.encode(message.shotChangeDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explicitContentDetectionConfig != null && message.hasOwnProperty("explicitContentDetectionConfig")) + if (message.explicitContentDetectionConfig != null && Object.hasOwnProperty.call(message, "explicitContentDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.encode(message.explicitContentDetectionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.faceDetectionConfig != null && message.hasOwnProperty("faceDetectionConfig")) + if (message.faceDetectionConfig != null && Object.hasOwnProperty.call(message, "faceDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.encode(message.faceDetectionConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.speechTranscriptionConfig != null && message.hasOwnProperty("speechTranscriptionConfig")) + if (message.speechTranscriptionConfig != null && Object.hasOwnProperty.call(message, "speechTranscriptionConfig")) $root.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.encode(message.speechTranscriptionConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.textDetectionConfig != null && message.hasOwnProperty("textDetectionConfig")) + if (message.textDetectionConfig != null && Object.hasOwnProperty.call(message, "textDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.encode(message.textDetectionConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.personDetectionConfig != null && message.hasOwnProperty("personDetectionConfig")) + if (message.personDetectionConfig != null && Object.hasOwnProperty.call(message, "personDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.encode(message.personDetectionConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.objectTrackingConfig != null && message.hasOwnProperty("objectTrackingConfig")) + if (message.objectTrackingConfig != null && Object.hasOwnProperty.call(message, "objectTrackingConfig")) $root.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.encode(message.objectTrackingConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; @@ -29263,15 +29263,15 @@ LabelDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.labelDetectionMode != null && message.hasOwnProperty("labelDetectionMode")) + if (message.labelDetectionMode != null && Object.hasOwnProperty.call(message, "labelDetectionMode")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.labelDetectionMode); - if (message.stationaryCamera != null && message.hasOwnProperty("stationaryCamera")) + if (message.stationaryCamera != null && Object.hasOwnProperty.call(message, "stationaryCamera")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.stationaryCamera); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.frameConfidenceThreshold != null && message.hasOwnProperty("frameConfidenceThreshold")) + if (message.frameConfidenceThreshold != null && Object.hasOwnProperty.call(message, "frameConfidenceThreshold")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.frameConfidenceThreshold); - if (message.videoConfidenceThreshold != null && message.hasOwnProperty("videoConfidenceThreshold")) + if (message.videoConfidenceThreshold != null && Object.hasOwnProperty.call(message, "videoConfidenceThreshold")) writer.uint32(/* id 5, wireType 5 =*/45).float(message.videoConfidenceThreshold); return writer; }; @@ -29526,7 +29526,7 @@ ShotChangeDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -29713,7 +29713,7 @@ ObjectTrackingConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -29900,7 +29900,7 @@ ExplicitContentDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); return writer; }; @@ -30105,11 +30105,11 @@ FaceDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.includeBoundingBoxes != null && message.hasOwnProperty("includeBoundingBoxes")) + if (message.includeBoundingBoxes != null && Object.hasOwnProperty.call(message, "includeBoundingBoxes")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeBoundingBoxes); - if (message.includeAttributes != null && message.hasOwnProperty("includeAttributes")) + if (message.includeAttributes != null && Object.hasOwnProperty.call(message, "includeAttributes")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.includeAttributes); return writer; }; @@ -30337,11 +30337,11 @@ PersonDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.includeBoundingBoxes != null && message.hasOwnProperty("includeBoundingBoxes")) + if (message.includeBoundingBoxes != null && Object.hasOwnProperty.call(message, "includeBoundingBoxes")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.includeBoundingBoxes); - if (message.includePoseLandmarks != null && message.hasOwnProperty("includePoseLandmarks")) + if (message.includePoseLandmarks != null && Object.hasOwnProperty.call(message, "includePoseLandmarks")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includePoseLandmarks); - if (message.includeAttributes != null && message.hasOwnProperty("includeAttributes")) + if (message.includeAttributes != null && Object.hasOwnProperty.call(message, "includeAttributes")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includeAttributes); return writer; }; @@ -30564,7 +30564,7 @@ if (message.languageHints != null && message.languageHints.length) for (var i = 0; i < message.languageHints.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.languageHints[i]); - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); return writer; }; @@ -30786,9 +30786,9 @@ VideoSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) + if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset")) $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) + if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset")) $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -31006,9 +31006,9 @@ LabelSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p3beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -31221,9 +31221,9 @@ LabelFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -31445,11 +31445,11 @@ Entity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityId != null && message.hasOwnProperty("entityId")) + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; @@ -31689,7 +31689,7 @@ LabelAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1p3beta1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.categoryEntities != null && message.categoryEntities.length) for (var i = 0; i < message.categoryEntities.length; ++i) @@ -31991,9 +31991,9 @@ ExplicitContentFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pornographyLikelihood != null && message.hasOwnProperty("pornographyLikelihood")) + if (message.pornographyLikelihood != null && Object.hasOwnProperty.call(message, "pornographyLikelihood")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pornographyLikelihood); return writer; }; @@ -32465,13 +32465,13 @@ NormalizedBoundingBox.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.left != null && message.hasOwnProperty("left")) + if (message.left != null && Object.hasOwnProperty.call(message, "left")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.left); - if (message.top != null && message.hasOwnProperty("top")) + if (message.top != null && Object.hasOwnProperty.call(message, "top")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.top); - if (message.right != null && message.hasOwnProperty("right")) + if (message.right != null && Object.hasOwnProperty.call(message, "right")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.right); - if (message.bottom != null && message.hasOwnProperty("bottom")) + if (message.bottom != null && Object.hasOwnProperty.call(message, "bottom")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.bottom); return writer; }; @@ -32721,9 +32721,9 @@ TimestampedObject.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.normalizedBoundingBox != null && message.hasOwnProperty("normalizedBoundingBox")) + if (message.normalizedBoundingBox != null && Object.hasOwnProperty.call(message, "normalizedBoundingBox")) $root.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.encode(message.normalizedBoundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.attributes != null && message.attributes.length) for (var i = 0; i < message.attributes.length; ++i) @@ -33029,7 +33029,7 @@ Track.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p3beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.timestampedObjects != null && message.timestampedObjects.length) for (var i = 0; i < message.timestampedObjects.length; ++i) @@ -33037,7 +33037,7 @@ if (message.attributes != null && message.attributes.length) for (var i = 0; i < message.attributes.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.encode(message.attributes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); return writer; }; @@ -33321,11 +33321,11 @@ DetectedAttribute.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); return writer; }; @@ -33553,11 +33553,11 @@ Celebrity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && message.hasOwnProperty("displayName")) + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); return writer; }; @@ -33780,7 +33780,7 @@ if (message.celebrities != null && message.celebrities.length) for (var i = 0; i < message.celebrities.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.encode(message.celebrities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.faceTrack != null && message.hasOwnProperty("faceTrack")) + if (message.faceTrack != null && Object.hasOwnProperty.call(message, "faceTrack")) $root.google.cloud.videointelligence.v1p3beta1.Track.encode(message.faceTrack, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -34009,9 +34009,9 @@ RecognizedCelebrity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.celebrity != null && message.hasOwnProperty("celebrity")) + if (message.celebrity != null && Object.hasOwnProperty.call(message, "celebrity")) $root.google.cloud.videointelligence.v1p3beta1.Celebrity.encode(message.celebrity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); return writer; }; @@ -34444,11 +34444,11 @@ DetectedLandmark.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.point != null && message.hasOwnProperty("point")) + if (message.point != null && Object.hasOwnProperty.call(message, "point")) $root.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.encode(message.point, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); return writer; }; @@ -34676,7 +34676,7 @@ if (message.tracks != null && message.tracks.length) for (var i = 0; i < message.tracks.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.Track.encode(message.tracks[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.thumbnail != null && message.hasOwnProperty("thumbnail")) + if (message.thumbnail != null && Object.hasOwnProperty.call(message, "thumbnail")) writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.thumbnail); return writer; }; @@ -35267,7 +35267,7 @@ VideoAnnotationResults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); if (message.segmentLabelAnnotations != null && message.segmentLabelAnnotations.length) for (var i = 0; i < message.segmentLabelAnnotations.length; ++i) @@ -35281,11 +35281,11 @@ if (message.shotAnnotations != null && message.shotAnnotations.length) for (var i = 0; i < message.shotAnnotations.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.VideoSegment.encode(message.shotAnnotations[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.explicitAnnotation != null && message.hasOwnProperty("explicitAnnotation")) + if (message.explicitAnnotation != null && Object.hasOwnProperty.call(message, "explicitAnnotation")) $root.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.encode(message.explicitAnnotation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p3beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.speechTranscriptions != null && message.speechTranscriptions.length) for (var i = 0; i < message.speechTranscriptions.length; ++i) @@ -35305,7 +35305,7 @@ if (message.personDetectionAnnotations != null && message.personDetectionAnnotations.length) for (var i = 0; i < message.personDetectionAnnotations.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.PersonDetectionAnnotation.encode(message.personDetectionAnnotations[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.celebrityRecognitionAnnotations != null && message.hasOwnProperty("celebrityRecognitionAnnotations")) + if (message.celebrityRecognitionAnnotations != null && Object.hasOwnProperty.call(message, "celebrityRecognitionAnnotations")) $root.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.encode(message.celebrityRecognitionAnnotations, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); if (message.segmentPresenceLabelAnnotations != null && message.segmentPresenceLabelAnnotations.length) for (var i = 0; i < message.segmentPresenceLabelAnnotations.length; ++i) @@ -36178,17 +36178,17 @@ VideoAnnotationProgress.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); - if (message.progressPercent != null && message.hasOwnProperty("progressPercent")) + if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.progressPercent); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.feature != null && message.hasOwnProperty("feature")) + if (message.feature != null && Object.hasOwnProperty.call(message, "feature")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.feature); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p3beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -36786,16 +36786,16 @@ SpeechTranscriptionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.languageCode); - if (message.maxAlternatives != null && message.hasOwnProperty("maxAlternatives")) + if (message.maxAlternatives != null && Object.hasOwnProperty.call(message, "maxAlternatives")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxAlternatives); - if (message.filterProfanity != null && message.hasOwnProperty("filterProfanity")) + if (message.filterProfanity != null && Object.hasOwnProperty.call(message, "filterProfanity")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.filterProfanity); if (message.speechContexts != null && message.speechContexts.length) for (var i = 0; i < message.speechContexts.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.SpeechContext.encode(message.speechContexts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enableAutomaticPunctuation != null && message.hasOwnProperty("enableAutomaticPunctuation")) + if (message.enableAutomaticPunctuation != null && Object.hasOwnProperty.call(message, "enableAutomaticPunctuation")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableAutomaticPunctuation); if (message.audioTracks != null && message.audioTracks.length) { writer.uint32(/* id 6, wireType 2 =*/50).fork(); @@ -36803,11 +36803,11 @@ writer.int32(message.audioTracks[i]); writer.ldelim(); } - if (message.enableSpeakerDiarization != null && message.hasOwnProperty("enableSpeakerDiarization")) + if (message.enableSpeakerDiarization != null && Object.hasOwnProperty.call(message, "enableSpeakerDiarization")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSpeakerDiarization); - if (message.diarizationSpeakerCount != null && message.hasOwnProperty("diarizationSpeakerCount")) + if (message.diarizationSpeakerCount != null && Object.hasOwnProperty.call(message, "diarizationSpeakerCount")) writer.uint32(/* id 8, wireType 0 =*/64).int32(message.diarizationSpeakerCount); - if (message.enableWordConfidence != null && message.hasOwnProperty("enableWordConfidence")) + if (message.enableWordConfidence != null && Object.hasOwnProperty.call(message, "enableWordConfidence")) writer.uint32(/* id 9, wireType 0 =*/72).bool(message.enableWordConfidence); return writer; }; @@ -37339,7 +37339,7 @@ if (message.alternatives != null && message.alternatives.length) for (var i = 0; i < message.alternatives.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative.encode(message.alternatives[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; @@ -37576,9 +37576,9 @@ SpeechRecognitionAlternative.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transcript != null && message.hasOwnProperty("transcript")) + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.transcript); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); if (message.words != null && message.words.length) for (var i = 0; i < message.words.length; ++i) @@ -37847,15 +37847,15 @@ WordInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Duration.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && message.hasOwnProperty("endTime")) + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) $root.google.protobuf.Duration.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.word != null && message.hasOwnProperty("word")) + if (message.word != null && Object.hasOwnProperty.call(message, "word")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - if (message.speakerTag != null && message.hasOwnProperty("speakerTag")) + if (message.speakerTag != null && Object.hasOwnProperty.call(message, "speakerTag")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.speakerTag); return writer; }; @@ -38106,9 +38106,9 @@ NormalizedVertex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.x != null && message.hasOwnProperty("x")) + if (message.x != null && Object.hasOwnProperty.call(message, "x")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.x); - if (message.y != null && message.hasOwnProperty("y")) + if (message.y != null && Object.hasOwnProperty.call(message, "y")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.y); return writer; }; @@ -38534,9 +38534,9 @@ TextSegment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p3beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence); if (message.frames != null && message.frames.length) for (var i = 0; i < message.frames.length; ++i) @@ -38783,9 +38783,9 @@ TextFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rotatedBoundingBox != null && message.hasOwnProperty("rotatedBoundingBox")) + if (message.rotatedBoundingBox != null && Object.hasOwnProperty.call(message, "rotatedBoundingBox")) $root.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.encode(message.rotatedBoundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -39004,7 +39004,7 @@ TextAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.hasOwnProperty("text")) + if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); if (message.segments != null && message.segments.length) for (var i = 0; i < message.segments.length; ++i) @@ -39234,9 +39234,9 @@ ObjectTrackingFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.normalizedBoundingBox != null && message.hasOwnProperty("normalizedBoundingBox")) + if (message.normalizedBoundingBox != null && Object.hasOwnProperty.call(message, "normalizedBoundingBox")) $root.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.encode(message.normalizedBoundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -39496,16 +39496,16 @@ ObjectTrackingAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1p3beta1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.frames != null && message.frames.length) for (var i = 0; i < message.frames.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.encode(message.frames[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.segment != null && message.hasOwnProperty("segment")) + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) $root.google.cloud.videointelligence.v1p3beta1.VideoSegment.encode(message.segment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.confidence != null && message.hasOwnProperty("confidence")) + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - if (message.trackId != null && message.hasOwnProperty("trackId")) + if (message.trackId != null && Object.hasOwnProperty.call(message, "trackId")) writer.uint32(/* id 5, wireType 0 =*/40).int64(message.trackId); return writer; }; @@ -39809,7 +39809,7 @@ LogoRecognitionAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) $root.google.cloud.videointelligence.v1p3beta1.Entity.encode(message.entity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.tracks != null && message.tracks.length) for (var i = 0; i < message.tracks.length; ++i) @@ -40092,9 +40092,9 @@ StreamingAnnotateVideoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.videoConfig != null && message.hasOwnProperty("videoConfig")) + if (message.videoConfig != null && Object.hasOwnProperty.call(message, "videoConfig")) $root.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.encode(message.videoConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputContent != null && message.hasOwnProperty("inputContent")) + if (message.inputContent != null && Object.hasOwnProperty.call(message, "inputContent")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.inputContent); return writer; }; @@ -40329,11 +40329,11 @@ StreamingAnnotateVideoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.annotationResults != null && message.hasOwnProperty("annotationResults")) + if (message.annotationResults != null && Object.hasOwnProperty.call(message, "annotationResults")) $root.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.encode(message.annotationResults, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.annotationResultsUri != null && message.hasOwnProperty("annotationResultsUri")) + if (message.annotationResultsUri != null && Object.hasOwnProperty.call(message, "annotationResultsUri")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotationResultsUri); return writer; }; @@ -40553,7 +40553,7 @@ StreamingAutomlClassificationConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelName != null && message.hasOwnProperty("modelName")) + if (message.modelName != null && Object.hasOwnProperty.call(message, "modelName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelName); return writer; }; @@ -40740,7 +40740,7 @@ StreamingAutomlObjectTrackingConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelName != null && message.hasOwnProperty("modelName")) + if (message.modelName != null && Object.hasOwnProperty.call(message, "modelName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelName); return writer; }; @@ -41087,7 +41087,7 @@ StreamingLabelDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.stationaryCamera != null && message.hasOwnProperty("stationaryCamera")) + if (message.stationaryCamera != null && Object.hasOwnProperty.call(message, "stationaryCamera")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.stationaryCamera); return writer; }; @@ -41603,9 +41603,9 @@ StreamingStorageConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableStorageAnnotationResult != null && message.hasOwnProperty("enableStorageAnnotationResult")) + if (message.enableStorageAnnotationResult != null && Object.hasOwnProperty.call(message, "enableStorageAnnotationResult")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableStorageAnnotationResult); - if (message.annotationResultStorageDirectory != null && message.hasOwnProperty("annotationResultStorageDirectory")) + if (message.annotationResultStorageDirectory != null && Object.hasOwnProperty.call(message, "annotationResultStorageDirectory")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotationResultStorageDirectory); return writer; }; @@ -41840,7 +41840,7 @@ if (message.labelAnnotations != null && message.labelAnnotations.length) for (var i = 0; i < message.labelAnnotations.length; ++i) $root.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.encode(message.labelAnnotations[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.explicitAnnotation != null && message.hasOwnProperty("explicitAnnotation")) + if (message.explicitAnnotation != null && Object.hasOwnProperty.call(message, "explicitAnnotation")) $root.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.encode(message.explicitAnnotation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.objectAnnotations != null && message.objectAnnotations.length) for (var i = 0; i < message.objectAnnotations.length; ++i) @@ -42204,21 +42204,21 @@ StreamingVideoConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.feature != null && message.hasOwnProperty("feature")) + if (message.feature != null && Object.hasOwnProperty.call(message, "feature")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.feature); - if (message.shotChangeDetectionConfig != null && message.hasOwnProperty("shotChangeDetectionConfig")) + if (message.shotChangeDetectionConfig != null && Object.hasOwnProperty.call(message, "shotChangeDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.encode(message.shotChangeDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.labelDetectionConfig != null && message.hasOwnProperty("labelDetectionConfig")) + if (message.labelDetectionConfig != null && Object.hasOwnProperty.call(message, "labelDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.encode(message.labelDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explicitContentDetectionConfig != null && message.hasOwnProperty("explicitContentDetectionConfig")) + if (message.explicitContentDetectionConfig != null && Object.hasOwnProperty.call(message, "explicitContentDetectionConfig")) $root.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig.encode(message.explicitContentDetectionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.objectTrackingConfig != null && message.hasOwnProperty("objectTrackingConfig")) + if (message.objectTrackingConfig != null && Object.hasOwnProperty.call(message, "objectTrackingConfig")) $root.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.encode(message.objectTrackingConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.automlClassificationConfig != null && message.hasOwnProperty("automlClassificationConfig")) + if (message.automlClassificationConfig != null && Object.hasOwnProperty.call(message, "automlClassificationConfig")) $root.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig.encode(message.automlClassificationConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.automlObjectTrackingConfig != null && message.hasOwnProperty("automlObjectTrackingConfig")) + if (message.automlObjectTrackingConfig != null && Object.hasOwnProperty.call(message, "automlObjectTrackingConfig")) $root.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig.encode(message.automlObjectTrackingConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.storageConfig != null && message.hasOwnProperty("storageConfig")) + if (message.storageConfig != null && Object.hasOwnProperty.call(message, "storageConfig")) $root.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.encode(message.storageConfig, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); return writer; }; @@ -42544,7 +42544,7 @@ /** * Feature enum. * @name google.cloud.videointelligence.v1p3beta1.Feature - * @enum {string} + * @enum {number} * @property {number} FEATURE_UNSPECIFIED=0 FEATURE_UNSPECIFIED value * @property {number} LABEL_DETECTION=1 LABEL_DETECTION value * @property {number} SHOT_CHANGE_DETECTION=2 SHOT_CHANGE_DETECTION value @@ -42576,7 +42576,7 @@ /** * LabelDetectionMode enum. * @name google.cloud.videointelligence.v1p3beta1.LabelDetectionMode - * @enum {string} + * @enum {number} * @property {number} LABEL_DETECTION_MODE_UNSPECIFIED=0 LABEL_DETECTION_MODE_UNSPECIFIED value * @property {number} SHOT_MODE=1 SHOT_MODE value * @property {number} FRAME_MODE=2 FRAME_MODE value @@ -42594,7 +42594,7 @@ /** * Likelihood enum. * @name google.cloud.videointelligence.v1p3beta1.Likelihood - * @enum {string} + * @enum {number} * @property {number} LIKELIHOOD_UNSPECIFIED=0 LIKELIHOOD_UNSPECIFIED value * @property {number} VERY_UNLIKELY=1 VERY_UNLIKELY value * @property {number} UNLIKELY=2 UNLIKELY value @@ -42616,7 +42616,7 @@ /** * StreamingFeature enum. * @name google.cloud.videointelligence.v1p3beta1.StreamingFeature - * @enum {string} + * @enum {number} * @property {number} STREAMING_FEATURE_UNSPECIFIED=0 STREAMING_FEATURE_UNSPECIFIED value * @property {number} STREAMING_LABEL_DETECTION=1 STREAMING_LABEL_DETECTION value * @property {number} STREAMING_SHOT_CHANGE_DETECTION=2 STREAMING_SHOT_CHANGE_DETECTION value @@ -42724,7 +42724,7 @@ if (message.rules != null && message.rules.length) for (var i = 0; i < message.rules.length; ++i) $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); return writer; }; @@ -43038,26 +43038,26 @@ HttpRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && message.hasOwnProperty("selector")) + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && message.hasOwnProperty("get")) + if (message.get != null && Object.hasOwnProperty.call(message, "get")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && message.hasOwnProperty("put")) + if (message.put != null && Object.hasOwnProperty.call(message, "put")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && message.hasOwnProperty("post")) + if (message.post != null && Object.hasOwnProperty.call(message, "post")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && message.hasOwnProperty("delete")) + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && message.hasOwnProperty("patch")) + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && message.hasOwnProperty("body")) + if (message.body != null && Object.hasOwnProperty.call(message, "body")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && message.hasOwnProperty("custom")) + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.additionalBindings != null && message.additionalBindings.length) for (var i = 0; i < message.additionalBindings.length; ++i) $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); return writer; }; @@ -43414,9 +43414,9 @@ CustomHttpPattern.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && message.hasOwnProperty("kind")) + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && message.hasOwnProperty("path")) + if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); return writer; }; @@ -43562,7 +43562,7 @@ /** * FieldBehavior enum. * @name google.api.FieldBehavior - * @enum {string} + * @enum {number} * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value * @property {number} OPTIONAL=1 OPTIONAL value * @property {number} REQUIRED=2 REQUIRED value @@ -43963,9 +43963,9 @@ FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && message.hasOwnProperty("package")) + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); if (message.dependency != null && message.dependency.length) for (var i = 0; i < message.dependency.length; ++i) @@ -43982,9 +43982,9 @@ if (message.extension != null && message.extension.length) for (var i = 0; i < message.extension.length; ++i) $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.publicDependency != null && message.publicDependency.length) for (var i = 0; i < message.publicDependency.length; ++i) @@ -43992,7 +43992,7 @@ if (message.weakDependency != null && message.weakDependency.length) for (var i = 0; i < message.weakDependency.length; ++i) writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && message.hasOwnProperty("syntax")) + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); return writer; }; @@ -44530,7 +44530,7 @@ DescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.field != null && message.field.length) for (var i = 0; i < message.field.length; ++i) @@ -44547,7 +44547,7 @@ if (message.extension != null && message.extension.length) for (var i = 0; i < message.extension.length; ++i) $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.oneofDecl != null && message.oneofDecl.length) for (var i = 0; i < message.oneofDecl.length; ++i) @@ -45012,11 +45012,11 @@ ExtensionRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -45240,9 +45240,9 @@ ReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); return writer; }; @@ -45733,25 +45733,25 @@ FieldDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && message.hasOwnProperty("extendee")) + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && message.hasOwnProperty("label")) + if (message.label != null && Object.hasOwnProperty.call(message, "label")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && message.hasOwnProperty("typeName")) + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); return writer; }; @@ -46098,7 +46098,7 @@ /** * Type enum. * @name google.protobuf.FieldDescriptorProto.Type - * @enum {string} + * @enum {number} * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value * @property {number} TYPE_INT64=3 TYPE_INT64 value @@ -46144,7 +46144,7 @@ /** * Label enum. * @name google.protobuf.FieldDescriptorProto.Label - * @enum {string} + * @enum {number} * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value @@ -46225,9 +46225,9 @@ OneofDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -46470,12 +46470,12 @@ EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.value != null && message.value.length) for (var i = 0; i < message.value.length; ++i) $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.reservedRange != null && message.reservedRange.length) for (var i = 0; i < message.reservedRange.length; ++i) @@ -46778,9 +46778,9 @@ EnumReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); return writer; }; @@ -47000,11 +47000,11 @@ EnumValueDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -47238,12 +47238,12 @@ ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.method != null && message.method.length) for (var i = 0; i < message.method.length; ++i) $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -47523,17 +47523,17 @@ MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && message.hasOwnProperty("inputType")) + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && message.hasOwnProperty("outputType")) + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); return writer; }; @@ -47962,45 +47962,45 @@ FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -48393,7 +48393,7 @@ /** * OptimizeMode enum. * @name google.protobuf.FileOptions.OptimizeMode - * @enum {string} + * @enum {number} * @property {number} SPEED=1 SPEED value * @property {number} CODE_SIZE=2 CODE_SIZE value * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value @@ -48502,13 +48502,13 @@ MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -48828,17 +48828,17 @@ FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && message.hasOwnProperty("ctype")) + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && message.hasOwnProperty("packed")) + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && message.hasOwnProperty("lazy")) + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && message.hasOwnProperty("jstype")) + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && message.hasOwnProperty("weak")) + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -49167,7 +49167,7 @@ /** * CType enum. * @name google.protobuf.FieldOptions.CType - * @enum {string} + * @enum {number} * @property {number} STRING=0 STRING value * @property {number} CORD=1 CORD value * @property {number} STRING_PIECE=2 STRING_PIECE value @@ -49183,7 +49183,7 @@ /** * JSType enum. * @name google.protobuf.FieldOptions.JSType - * @enum {string} + * @enum {number} * @property {number} JS_NORMAL=0 JS_NORMAL value * @property {number} JS_STRING=1 JS_STRING value * @property {number} JS_NUMBER=2 JS_NUMBER value @@ -49482,9 +49482,9 @@ EnumOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -49727,7 +49727,7 @@ EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -49976,14 +49976,14 @@ ServiceOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); return writer; }; @@ -50271,19 +50271,19 @@ MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) + if (message[".google.longrunning.operationInfo"] != null && Object.hasOwnProperty.call(message, ".google.longrunning.operationInfo")) $root.google.longrunning.OperationInfo.encode(message[".google.longrunning.operationInfo"], writer.uint32(/* id 1049, wireType 2 =*/8394).fork()).ldelim(); if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; @@ -50533,7 +50533,7 @@ /** * IdempotencyLevel enum. * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {string} + * @enum {number} * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value * @property {number} IDEMPOTENT=2 IDEMPOTENT value @@ -50663,17 +50663,17 @@ if (message.name != null && message.name.length) for (var i = 0; i < message.name.length; ++i) $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); return writer; }; @@ -51450,9 +51450,9 @@ writer.int32(message.span[i]); writer.ldelim(); } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) for (var i = 0; i < message.leadingDetachedComments.length; ++i) @@ -51983,11 +51983,11 @@ writer.int32(message.path[i]); writer.ldelim(); } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && message.hasOwnProperty("begin")) + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); return writer; }; @@ -52240,9 +52240,9 @@ Any.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type_url != null && message.hasOwnProperty("type_url")) + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; @@ -52459,9 +52459,9 @@ Duration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; @@ -52843,9 +52843,9 @@ Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; @@ -53320,15 +53320,15 @@ Operation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.metadata != null && message.hasOwnProperty("metadata")) + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) $root.google.protobuf.Any.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.done != null && message.hasOwnProperty("done")) + if (message.done != null && Object.hasOwnProperty.call(message, "done")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.done); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.response != null && message.hasOwnProperty("response")) + if (message.response != null && Object.hasOwnProperty.call(message, "response")) $root.google.protobuf.Any.encode(message.response, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -53588,7 +53588,7 @@ GetOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; @@ -53802,13 +53802,13 @@ ListOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.filter != null && message.hasOwnProperty("filter")) + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); - if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -54042,7 +54042,7 @@ if (message.operations != null && message.operations.length) for (var i = 0; i < message.operations.length; ++i) $root.google.longrunning.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; @@ -54260,7 +54260,7 @@ CancelOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; @@ -54447,7 +54447,7 @@ DeleteOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; @@ -54643,9 +54643,9 @@ WaitOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.timeout != null && message.hasOwnProperty("timeout")) + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -54858,9 +54858,9 @@ OperationInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseType != null && message.hasOwnProperty("responseType")) + if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseType); - if (message.metadataType != null && message.hasOwnProperty("metadataType")) + if (message.metadataType != null && Object.hasOwnProperty.call(message, "metadataType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadataType); return writer; }; @@ -55090,9 +55090,9 @@ Status.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); if (message.details != null && message.details.length) for (var i = 0; i < message.details.length; ++i) diff --git a/synth.metadata b/synth.metadata index 190810fc..98720318 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-video-intelligence.git", - "sha": "dfb36d2b24d32e6a8de41d4ecda9900de224b4d0" + "sha": "3b5ad804802d391c2e1d1e575b700d3d69391ef5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "bcc476396e799806d3355e87246c6becf6250a70", - "internalRef": "306974763" + "sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab", + "internalRef": "307114445" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "682c0c37d1054966ca662a44259e96cc7aea4413" + "sha": "19465d3ec5e5acdb01521d8f3bddd311bcbee28d" } } ],