vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2018-06-17 17:59:12 +01:00
parent 3f0789e2db
commit 08021c4636
2474 changed files with 435818 additions and 282709 deletions
+1 -438
View File
@@ -60,11 +60,6 @@
"location": "query",
"type": "string"
},
"bearer_token": {
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
@@ -85,12 +80,6 @@
"location": "query",
"type": "string"
},
"pp": {
"default": "true",
"description": "Pretty-print response.",
"location": "query",
"type": "boolean"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
@@ -257,7 +246,7 @@
}
}
},
"revision": "20180502",
"revision": "20180604",
"rootUrl": "https://videointelligence.googleapis.com/",
"schemas": {
"GoogleCloudVideointelligenceV1_AnnotateVideoProgress": {
@@ -634,281 +623,6 @@
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress": {
"description": "Video annotation progress. Included in the `metadata`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
"id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress",
"properties": {
"annotationProgress": {
"description": "Progress metadata for all videos specified in `AnnotateVideoRequest`.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta1_AnnotateVideoResponse": {
"description": "Video annotation response. Included in the `response`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
"id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoResponse",
"properties": {
"annotationResults": {
"description": "Annotation results for all videos specified in `AnnotateVideoRequest`.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta1_LabelAnnotation": {
"description": "Label annotation.",
"id": "GoogleCloudVideointelligenceV1beta1_LabelAnnotation",
"properties": {
"description": {
"description": "Textual description, e.g. `Fixed-gear bicycle`.",
"type": "string"
},
"languageCode": {
"description": "Language code for `description` in BCP-47 format.",
"type": "string"
},
"locations": {
"description": "Where the label was detected and with what confidence.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1beta1_LabelLocation"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta1_LabelLocation": {
"description": "Label location.",
"id": "GoogleCloudVideointelligenceV1beta1_LabelLocation",
"properties": {
"confidence": {
"description": "Confidence that the label is accurate. Range: [0, 1].",
"format": "float",
"type": "number"
},
"level": {
"description": "Label level.",
"enum": [
"LABEL_LEVEL_UNSPECIFIED",
"VIDEO_LEVEL",
"SEGMENT_LEVEL",
"SHOT_LEVEL",
"FRAME_LEVEL"
],
"enumDescriptions": [
"Unspecified.",
"Video-level. Corresponds to the whole video.",
"Segment-level. Corresponds to one of `AnnotateSpec.segments`.",
"Shot-level. Corresponds to a single shot (i.e. a series of frames\nwithout a major camera position or background change).",
"Frame-level. Corresponds to a single video frame."
],
"type": "string"
},
"segment": {
"$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegment",
"description": "Video segment. Set to [-1, -1] for video-level labels.\nSet to [timestamp, timestamp] for frame-level labels.\nOtherwise, corresponds to one of `AnnotateSpec.segments`\n(if specified) or to shot boundaries (if requested)."
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation": {
"description": "Safe search annotation (based on per-frame visual signals only).\nIf no unsafe content has been detected in a frame, no annotations\nare present for that frame. If only some types of unsafe content\nhave been detected in a frame, the likelihood is set to `UNKNOWN`\nfor all other types of unsafe content.",
"id": "GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation",
"properties": {
"adult": {
"description": "Likelihood of adult content.",
"enum": [
"UNKNOWN",
"VERY_UNLIKELY",
"UNLIKELY",
"POSSIBLE",
"LIKELY",
"VERY_LIKELY"
],
"enumDescriptions": [
"Unknown likelihood.",
"Very unlikely.",
"Unlikely.",
"Possible.",
"Likely.",
"Very likely."
],
"type": "string"
},
"medical": {
"description": "Likelihood of medical content.",
"enum": [
"UNKNOWN",
"VERY_UNLIKELY",
"UNLIKELY",
"POSSIBLE",
"LIKELY",
"VERY_LIKELY"
],
"enumDescriptions": [
"Unknown likelihood.",
"Very unlikely.",
"Unlikely.",
"Possible.",
"Likely.",
"Very likely."
],
"type": "string"
},
"racy": {
"description": "Likelihood of racy content.",
"enum": [
"UNKNOWN",
"VERY_UNLIKELY",
"UNLIKELY",
"POSSIBLE",
"LIKELY",
"VERY_LIKELY"
],
"enumDescriptions": [
"Unknown likelihood.",
"Very unlikely.",
"Unlikely.",
"Possible.",
"Likely.",
"Very likely."
],
"type": "string"
},
"spoof": {
"description": "Likelihood that an obvious modification was made to the original\nversion to make it appear funny or offensive.",
"enum": [
"UNKNOWN",
"VERY_UNLIKELY",
"UNLIKELY",
"POSSIBLE",
"LIKELY",
"VERY_LIKELY"
],
"enumDescriptions": [
"Unknown likelihood.",
"Very unlikely.",
"Unlikely.",
"Possible.",
"Likely.",
"Very likely."
],
"type": "string"
},
"timeOffset": {
"description": "Video time offset in microseconds.",
"format": "int64",
"type": "string"
},
"violent": {
"description": "Likelihood of violent content.",
"enum": [
"UNKNOWN",
"VERY_UNLIKELY",
"UNLIKELY",
"POSSIBLE",
"LIKELY",
"VERY_LIKELY"
],
"enumDescriptions": [
"Unknown likelihood.",
"Very unlikely.",
"Unlikely.",
"Possible.",
"Likely.",
"Very likely."
],
"type": "string"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress": {
"description": "Annotation progress for a single video.",
"id": "GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress",
"properties": {
"inputUri": {
"description": "Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
"type": "string"
},
"progressPercent": {
"description": "Approximate percentage processed thus far.\nGuaranteed to be 100 when fully processed.",
"format": "int32",
"type": "integer"
},
"startTime": {
"description": "Time when the request was received.",
"format": "google-datetime",
"type": "string"
},
"updateTime": {
"description": "Time of the most recent update.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults": {
"description": "Annotation results for a single video.",
"id": "GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults",
"properties": {
"error": {
"$ref": "GoogleRpc_Status",
"description": "If set, indicates an error. Note that for a single `AnnotateVideoRequest`\nsome videos may succeed and some may fail."
},
"inputUri": {
"description": "Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
"type": "string"
},
"labelAnnotations": {
"description": "Label annotations. There is exactly one element for each unique label.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1beta1_LabelAnnotation"
},
"type": "array"
},
"safeSearchAnnotations": {
"description": "Safe search annotations.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation"
},
"type": "array"
},
"shotAnnotations": {
"description": "Shot annotations. Each shot is represented as a video segment.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegment"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta1_VideoSegment": {
"description": "Video segment.",
"id": "GoogleCloudVideointelligenceV1beta1_VideoSegment",
"properties": {
"endTimeOffset": {
"description": "End offset in microseconds (inclusive). Unset means 0.",
"format": "int64",
"type": "string"
},
"startTimeOffset": {
"description": "Start offset in microseconds (inclusive). Unset means 0.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress": {
"description": "Video annotation progress. Included in the `metadata`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
"id": "GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress",
@@ -1185,54 +899,6 @@
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute": {
"description": "Emotion attribute.",
"id": "GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute",
"properties": {
"emotion": {
"description": "Emotion entry.",
"enum": [
"EMOTION_UNSPECIFIED",
"AMUSEMENT",
"ANGER",
"CONCENTRATION",
"CONTENTMENT",
"DESIRE",
"DISAPPOINTMENT",
"DISGUST",
"ELATION",
"EMBARRASSMENT",
"INTEREST",
"PRIDE",
"SADNESS",
"SURPRISE"
],
"enumDescriptions": [
"Unspecified emotion.",
"Amusement.",
"Anger.",
"Concentration.",
"Contentment.",
"Desire.",
"Disappointment.",
"Disgust.",
"Elation.",
"Embarrassment.",
"Interest.",
"Pride.",
"Sadness.",
"Surprise."
],
"type": "string"
},
"score": {
"description": "Confidence score.",
"format": "float",
"type": "number"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_Entity": {
"description": "Detected entity from video analysis.",
"id": "GoogleCloudVideointelligenceV1p1beta1_Entity",
@@ -1298,75 +964,6 @@
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation": {
"description": "Face detection annotation.",
"id": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation",
"properties": {
"frames": {
"description": "All video frames where a face was detected.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame"
},
"type": "array"
},
"segments": {
"description": "All video segments where a face was detected.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1p1beta1_FaceSegment"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute": {
"description": "Face detection attribute.",
"id": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute",
"properties": {
"emotions": {
"description": "Emotion attributes.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute"
},
"type": "array"
},
"normalizedBoundingBox": {
"$ref": "GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox",
"description": "Normalized Bounding box."
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame": {
"description": "Video frame level annotation results for face detection.",
"id": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame",
"properties": {
"attributes": {
"description": "Face attributes in a frame.\nThere can be more than one attributes if the same face is detected in\nmultiple locations within the current frame.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute"
},
"type": "array"
},
"timeOffset": {
"description": "Time-offset, relative to the beginning of the video,\ncorresponding to the video frame for this location.",
"format": "google-duration",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_FaceSegment": {
"description": "Video segment level annotation results for face detection.",
"id": "GoogleCloudVideointelligenceV1p1beta1_FaceSegment",
"properties": {
"segment": {
"$ref": "GoogleCloudVideointelligenceV1p1beta1_VideoSegment",
"description": "Video segment where a face was detected."
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation": {
"description": "Label annotation.",
"id": "GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation",
@@ -1432,33 +1029,6 @@
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox": {
"description": "Normalized bounding box.\nThe normalized vertex coordinates are relative to the original image.\nRange: [0, 1].",
"id": "GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox",
"properties": {
"bottom": {
"description": "Bottom Y coordinate.",
"format": "float",
"type": "number"
},
"left": {
"description": "Left X coordinate.",
"format": "float",
"type": "number"
},
"right": {
"description": "Right X coordinate.",
"format": "float",
"type": "number"
},
"top": {
"description": "Top Y coordinate.",
"format": "float",
"type": "number"
}
},
"type": "object"
},
"GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative": {
"description": "Alternative hypotheses (a.k.a. n-best list).",
"id": "GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative",
@@ -1534,13 +1104,6 @@
"$ref": "GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation",
"description": "Explicit content annotation."
},
"faceDetectionAnnotations": {
"description": "Face detection annotations.",
"items": {
"$ref": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation"
},
"type": "array"
},
"frameLabelAnnotations": {
"description": "Label annotations on frame level.\nThere is exactly one element for each unique label.",
"items": {
@@ -792,376 +792,6 @@ func (s *GoogleCloudVideointelligenceV1VideoSegment) MarshalJSON() ([]byte, erro
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress: Video
// annotation progress. Included in the `metadata`
// field of the `Operation` returned by the `GetOperation`
// call of the `google::longrunning::Operations` service.
type GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress struct {
// AnnotationProgress: Progress metadata for all videos specified in
// `AnnotateVideoRequest`.
AnnotationProgress []*GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress `json:"annotationProgress,omitempty"`
// ForceSendFields is a list of field names (e.g. "AnnotationProgress")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AnnotationProgress") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse: Video
// annotation response. Included in the `response`
// field of the `Operation` returned by the `GetOperation`
// call of the `google::longrunning::Operations` service.
type GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse struct {
// AnnotationResults: Annotation results for all videos specified in
// `AnnotateVideoRequest`.
AnnotationResults []*GoogleCloudVideointelligenceV1beta1VideoAnnotationResults `json:"annotationResults,omitempty"`
// ForceSendFields is a list of field names (e.g. "AnnotationResults")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AnnotationResults") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1beta1LabelAnnotation: Label annotation.
type GoogleCloudVideointelligenceV1beta1LabelAnnotation struct {
// Description: Textual description, e.g. `Fixed-gear bicycle`.
Description string `json:"description,omitempty"`
// LanguageCode: Language code for `description` in BCP-47 format.
LanguageCode string `json:"languageCode,omitempty"`
// Locations: Where the label was detected and with what confidence.
Locations []*GoogleCloudVideointelligenceV1beta1LabelLocation `json:"locations,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1beta1LabelAnnotation) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1beta1LabelAnnotation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1beta1LabelLocation: Label location.
type GoogleCloudVideointelligenceV1beta1LabelLocation struct {
// Confidence: Confidence that the label is accurate. Range: [0, 1].
Confidence float64 `json:"confidence,omitempty"`
// Level: Label level.
//
// Possible values:
// "LABEL_LEVEL_UNSPECIFIED" - Unspecified.
// "VIDEO_LEVEL" - Video-level. Corresponds to the whole video.
// "SEGMENT_LEVEL" - Segment-level. Corresponds to one of
// `AnnotateSpec.segments`.
// "SHOT_LEVEL" - Shot-level. Corresponds to a single shot (i.e. a
// series of frames
// without a major camera position or background change).
// "FRAME_LEVEL" - Frame-level. Corresponds to a single video frame.
Level string `json:"level,omitempty"`
// Segment: Video segment. Set to [-1, -1] for video-level labels.
// Set to [timestamp, timestamp] for frame-level labels.
// Otherwise, corresponds to one of `AnnotateSpec.segments`
// (if specified) or to shot boundaries (if requested).
Segment *GoogleCloudVideointelligenceV1beta1VideoSegment `json:"segment,omitempty"`
// ForceSendFields is a list of field names (e.g. "Confidence") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Confidence") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1beta1LabelLocation) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1beta1LabelLocation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *GoogleCloudVideointelligenceV1beta1LabelLocation) UnmarshalJSON(data []byte) error {
type NoMethod GoogleCloudVideointelligenceV1beta1LabelLocation
var s1 struct {
Confidence gensupport.JSONFloat64 `json:"confidence"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Confidence = float64(s1.Confidence)
return nil
}
// GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation: Safe search
// annotation (based on per-frame visual signals only).
// If no unsafe content has been detected in a frame, no annotations
// are present for that frame. If only some types of unsafe content
// have been detected in a frame, the likelihood is set to `UNKNOWN`
// for all other types of unsafe content.
type GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation struct {
// Adult: Likelihood of adult content.
//
// Possible values:
// "UNKNOWN" - Unknown likelihood.
// "VERY_UNLIKELY" - Very unlikely.
// "UNLIKELY" - Unlikely.
// "POSSIBLE" - Possible.
// "LIKELY" - Likely.
// "VERY_LIKELY" - Very likely.
Adult string `json:"adult,omitempty"`
// Medical: Likelihood of medical content.
//
// Possible values:
// "UNKNOWN" - Unknown likelihood.
// "VERY_UNLIKELY" - Very unlikely.
// "UNLIKELY" - Unlikely.
// "POSSIBLE" - Possible.
// "LIKELY" - Likely.
// "VERY_LIKELY" - Very likely.
Medical string `json:"medical,omitempty"`
// Racy: Likelihood of racy content.
//
// Possible values:
// "UNKNOWN" - Unknown likelihood.
// "VERY_UNLIKELY" - Very unlikely.
// "UNLIKELY" - Unlikely.
// "POSSIBLE" - Possible.
// "LIKELY" - Likely.
// "VERY_LIKELY" - Very likely.
Racy string `json:"racy,omitempty"`
// Spoof: Likelihood that an obvious modification was made to the
// original
// version to make it appear funny or offensive.
//
// Possible values:
// "UNKNOWN" - Unknown likelihood.
// "VERY_UNLIKELY" - Very unlikely.
// "UNLIKELY" - Unlikely.
// "POSSIBLE" - Possible.
// "LIKELY" - Likely.
// "VERY_LIKELY" - Very likely.
Spoof string `json:"spoof,omitempty"`
// TimeOffset: Video time offset in microseconds.
TimeOffset int64 `json:"timeOffset,omitempty,string"`
// Violent: Likelihood of violent content.
//
// Possible values:
// "UNKNOWN" - Unknown likelihood.
// "VERY_UNLIKELY" - Very unlikely.
// "UNLIKELY" - Unlikely.
// "POSSIBLE" - Possible.
// "LIKELY" - Likely.
// "VERY_LIKELY" - Very likely.
Violent string `json:"violent,omitempty"`
// ForceSendFields is a list of field names (e.g. "Adult") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Adult") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress:
// Annotation progress for a single video.
type GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress struct {
// InputUri: Video file location in
// [Google Cloud Storage](https://cloud.google.com/storage/).
InputUri string `json:"inputUri,omitempty"`
// ProgressPercent: Approximate percentage processed thus
// far.
// Guaranteed to be 100 when fully processed.
ProgressPercent int64 `json:"progressPercent,omitempty"`
// StartTime: Time when the request was received.
StartTime string `json:"startTime,omitempty"`
// UpdateTime: Time of the most recent update.
UpdateTime string `json:"updateTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "InputUri") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InputUri") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1beta1VideoAnnotationResults: Annotation
// results for a single video.
type GoogleCloudVideointelligenceV1beta1VideoAnnotationResults struct {
// Error: If set, indicates an error. Note that for a single
// `AnnotateVideoRequest`
// some videos may succeed and some may fail.
Error *GoogleRpcStatus `json:"error,omitempty"`
// InputUri: Video file location in
// [Google Cloud Storage](https://cloud.google.com/storage/).
InputUri string `json:"inputUri,omitempty"`
// LabelAnnotations: Label annotations. There is exactly one element for
// each unique label.
LabelAnnotations []*GoogleCloudVideointelligenceV1beta1LabelAnnotation `json:"labelAnnotations,omitempty"`
// SafeSearchAnnotations: Safe search annotations.
SafeSearchAnnotations []*GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation `json:"safeSearchAnnotations,omitempty"`
// ShotAnnotations: Shot annotations. Each shot is represented as a
// video segment.
ShotAnnotations []*GoogleCloudVideointelligenceV1beta1VideoSegment `json:"shotAnnotations,omitempty"`
// ForceSendFields is a list of field names (e.g. "Error") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Error") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1beta1VideoAnnotationResults) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1beta1VideoSegment: Video segment.
type GoogleCloudVideointelligenceV1beta1VideoSegment struct {
// EndTimeOffset: End offset in microseconds (inclusive). Unset means 0.
EndTimeOffset int64 `json:"endTimeOffset,omitempty,string"`
// StartTimeOffset: Start offset in microseconds (inclusive). Unset
// means 0.
StartTimeOffset int64 `json:"startTimeOffset,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "EndTimeOffset") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTimeOffset") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1beta1VideoSegment) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1beta1VideoSegment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress: Video
// annotation progress. Included in the `metadata`
// field of the `Operation` returned by the `GetOperation`
@@ -1679,68 +1309,6 @@ func (s *GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse) MarshalJSON
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1p1beta1EmotionAttribute: Emotion
// attribute.
type GoogleCloudVideointelligenceV1p1beta1EmotionAttribute struct {
// Emotion: Emotion entry.
//
// Possible values:
// "EMOTION_UNSPECIFIED" - Unspecified emotion.
// "AMUSEMENT" - Amusement.
// "ANGER" - Anger.
// "CONCENTRATION" - Concentration.
// "CONTENTMENT" - Contentment.
// "DESIRE" - Desire.
// "DISAPPOINTMENT" - Disappointment.
// "DISGUST" - Disgust.
// "ELATION" - Elation.
// "EMBARRASSMENT" - Embarrassment.
// "INTEREST" - Interest.
// "PRIDE" - Pride.
// "SADNESS" - Sadness.
// "SURPRISE" - Surprise.
Emotion string `json:"emotion,omitempty"`
// Score: Confidence score.
Score float64 `json:"score,omitempty"`
// ForceSendFields is a list of field names (e.g. "Emotion") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Emotion") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1p1beta1EmotionAttribute) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *GoogleCloudVideointelligenceV1p1beta1EmotionAttribute) UnmarshalJSON(data []byte) error {
type NoMethod GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
var s1 struct {
Score gensupport.JSONFloat64 `json:"score"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Score = float64(s1.Score)
return nil
}
// GoogleCloudVideointelligenceV1p1beta1Entity: Detected entity from
// video analysis.
type GoogleCloudVideointelligenceV1p1beta1Entity struct {
@@ -1856,136 +1424,6 @@ func (s *GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame) MarshalJSON(
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation: Face
// detection annotation.
type GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation struct {
// Frames: All video frames where a face was detected.
Frames []*GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame `json:"frames,omitempty"`
// Segments: All video segments where a face was detected.
Segments []*GoogleCloudVideointelligenceV1p1beta1FaceSegment `json:"segments,omitempty"`
// ForceSendFields is a list of field names (e.g. "Frames") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Frames") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute: Face
// detection attribute.
type GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute struct {
// Emotions: Emotion attributes.
Emotions []*GoogleCloudVideointelligenceV1p1beta1EmotionAttribute `json:"emotions,omitempty"`
// NormalizedBoundingBox: Normalized Bounding box.
NormalizedBoundingBox *GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
// ForceSendFields is a list of field names (e.g. "Emotions") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Emotions") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame: Video frame
// level annotation results for face detection.
type GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame struct {
// Attributes: Face attributes in a frame.
// There can be more than one attributes if the same face is detected
// in
// multiple locations within the current frame.
Attributes []*GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute `json:"attributes,omitempty"`
// TimeOffset: Time-offset, relative to the beginning of the
// video,
// corresponding to the video frame for this location.
TimeOffset string `json:"timeOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attributes") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Attributes") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1p1beta1FaceSegment: Video segment level
// annotation results for face detection.
type GoogleCloudVideointelligenceV1p1beta1FaceSegment struct {
// Segment: Video segment where a face was detected.
Segment *GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segment,omitempty"`
// ForceSendFields is a list of field names (e.g. "Segment") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Segment") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1p1beta1FaceSegment) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1p1beta1FaceSegment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudVideointelligenceV1p1beta1LabelAnnotation: Label
// annotation.
type GoogleCloudVideointelligenceV1p1beta1LabelAnnotation struct {
@@ -2124,67 +1562,6 @@ func (s *GoogleCloudVideointelligenceV1p1beta1LabelSegment) UnmarshalJSON(data [
return nil
}
// GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox:
// Normalized bounding box.
// The normalized vertex coordinates are relative to the original
// image.
// Range: [0, 1].
type GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox struct {
// Bottom: Bottom Y coordinate.
Bottom float64 `json:"bottom,omitempty"`
// Left: Left X coordinate.
Left float64 `json:"left,omitempty"`
// Right: Right X coordinate.
Right float64 `json:"right,omitempty"`
// Top: Top Y coordinate.
Top float64 `json:"top,omitempty"`
// ForceSendFields is a list of field names (e.g. "Bottom") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Bottom") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox) UnmarshalJSON(data []byte) error {
type NoMethod GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
var s1 struct {
Bottom gensupport.JSONFloat64 `json:"bottom"`
Left gensupport.JSONFloat64 `json:"left"`
Right gensupport.JSONFloat64 `json:"right"`
Top gensupport.JSONFloat64 `json:"top"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Bottom = float64(s1.Bottom)
s.Left = float64(s1.Left)
s.Right = float64(s1.Right)
s.Top = float64(s1.Top)
return nil
}
// GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative:
// Alternative hypotheses (a.k.a. n-best list).
type GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative struct {
@@ -2335,9 +1712,6 @@ type GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults struct {
// ExplicitAnnotation: Explicit content annotation.
ExplicitAnnotation *GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation `json:"explicitAnnotation,omitempty"`
// FaceDetectionAnnotations: Face detection annotations.
FaceDetectionAnnotations []*GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation `json:"faceDetectionAnnotations,omitempty"`
// FrameLabelAnnotations: Label annotations on frame level.
// There is exactly one element for each unique label.
FrameLabelAnnotations []*GoogleCloudVideointelligenceV1p1beta1LabelAnnotation `json:"frameLabelAnnotations,omitempty"`