vendor: update all dependencies
* Update all dependencies * Remove all `[[constraint]]` from Gopkg.toml * Add in the minimum number of `[[override]]` to build * Remove go get of github.com/inconshreveable/mousetrap as it is vendored * Update docs with new policy on constraints
This commit is contained in:
+47
-5
@@ -165,7 +165,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180221",
|
||||
"revision": "20180416",
|
||||
"rootUrl": "https://vision.googleapis.com/",
|
||||
"schemas": {
|
||||
"Color": {
|
||||
@@ -195,6 +195,24 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleCloudVisionV1p2beta1AnnotateFileResponse": {
|
||||
"description": "Response to a single file annotation request. A file may contain one or more\nimages, which individually have their own responses.",
|
||||
"id": "GoogleCloudVisionV1p2beta1AnnotateFileResponse",
|
||||
"properties": {
|
||||
"inputConfig": {
|
||||
"$ref": "GoogleCloudVisionV1p2beta1InputConfig",
|
||||
"description": "Information about the file for which this response is generated."
|
||||
},
|
||||
"responses": {
|
||||
"description": "Individual responses to images found within the file.",
|
||||
"items": {
|
||||
"$ref": "GoogleCloudVisionV1p2beta1AnnotateImageResponse"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleCloudVisionV1p2beta1AnnotateImageRequest": {
|
||||
"description": "Request for performing Google Cloud Vision API tasks over a user-provided\nimage, with user-requested features.",
|
||||
"id": "GoogleCloudVisionV1p2beta1AnnotateImageRequest",
|
||||
@@ -431,6 +449,13 @@
|
||||
"description": "A bounding polygon for the detected image annotation.",
|
||||
"id": "GoogleCloudVisionV1p2beta1BoundingPoly",
|
||||
"properties": {
|
||||
"normalizedVertices": {
|
||||
"description": "The bounding polygon normalized vertices.",
|
||||
"items": {
|
||||
"$ref": "GoogleCloudVisionV1p2beta1NormalizedVertex"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"vertices": {
|
||||
"description": "The bounding polygon vertices.",
|
||||
"items": {
|
||||
@@ -916,7 +941,7 @@
|
||||
"id": "GoogleCloudVisionV1p2beta1GcsSource",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"description": "Google Cloud Storage URI for the input file. This must only be a GCS\nobject. Wildcards are not currently supported.",
|
||||
"description": "Google Cloud Storage URI for the input file. This must only be a\nGoogle Cloud Storage object. Wildcards are not currently supported.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@@ -971,7 +996,7 @@
|
||||
},
|
||||
"latLongRect": {
|
||||
"$ref": "GoogleCloudVisionV1p2beta1LatLongRect",
|
||||
"description": "lat/long rectangle that specifies the location of the image."
|
||||
"description": "Not used."
|
||||
},
|
||||
"webDetectionParams": {
|
||||
"$ref": "GoogleCloudVisionV1p2beta1WebDetectionParams",
|
||||
@@ -1047,6 +1072,23 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleCloudVisionV1p2beta1NormalizedVertex": {
|
||||
"description": "A vertex represents a 2D point in the image.\nNOTE: the normalized vertex coordinates are relative to the original image\nand range from 0 to 1.",
|
||||
"id": "GoogleCloudVisionV1p2beta1NormalizedVertex",
|
||||
"properties": {
|
||||
"x": {
|
||||
"description": "X coordinate.",
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
},
|
||||
"y": {
|
||||
"description": "Y coordinate.",
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleCloudVisionV1p2beta1OperationMetadata": {
|
||||
"description": "Contains metadata for the BatchAnnotateImages operation.",
|
||||
"id": "GoogleCloudVisionV1p2beta1OperationMetadata",
|
||||
@@ -1087,7 +1129,7 @@
|
||||
"id": "GoogleCloudVisionV1p2beta1OutputConfig",
|
||||
"properties": {
|
||||
"batchSize": {
|
||||
"description": "The max number of response protos to put into each output JSON file on GCS.\nThe valid range is [1, 100]. If not specified, the default value is 20.\n\nFor example, for one pdf file with 100 pages, 100 response protos will\nbe generated. If `batch_size` = 20, then 5 json files each\ncontaining 20 response protos will be written under the prefix\n`gcs_destination`.`uri`.\n\nCurrently, batch_size only applies to GcsDestination, with potential future\nsupport for other output configurations.",
|
||||
"description": "The max number of response protos to put into each output JSON file on\nGoogle Cloud Storage.\nThe valid range is [1, 100]. If not specified, the default value is 20.\n\nFor example, for one pdf file with 100 pages, 100 response protos will\nbe generated. If `batch_size` = 20, then 5 json files each\ncontaining 20 response protos will be written under the prefix\n`gcs_destination`.`uri`.\n\nCurrently, batch_size only applies to GcsDestination, with potential future\nsupport for other output configurations.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -1684,7 +1726,7 @@
|
||||
}
|
||||
},
|
||||
"servicePath": "",
|
||||
"title": "Google Cloud Vision API",
|
||||
"title": "Cloud Vision API",
|
||||
"version": "v1p2beta1",
|
||||
"version_module": true
|
||||
}
|
||||
+104
-15
@@ -1,4 +1,4 @@
|
||||
// Package vision provides access to the Google Cloud Vision API.
|
||||
// Package vision provides access to the Cloud Vision API.
|
||||
//
|
||||
// See https://cloud.google.com/vision/
|
||||
//
|
||||
@@ -298,6 +298,40 @@ func (s *Color) UnmarshalJSON(data []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GoogleCloudVisionV1p2beta1AnnotateFileResponse: Response to a single
|
||||
// file annotation request. A file may contain one or more
|
||||
// images, which individually have their own responses.
|
||||
type GoogleCloudVisionV1p2beta1AnnotateFileResponse struct {
|
||||
// InputConfig: Information about the file for which this response is
|
||||
// generated.
|
||||
InputConfig *GoogleCloudVisionV1p2beta1InputConfig `json:"inputConfig,omitempty"`
|
||||
|
||||
// Responses: Individual responses to images found within the file.
|
||||
Responses []*GoogleCloudVisionV1p2beta1AnnotateImageResponse `json:"responses,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "InputConfig") 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. "InputConfig") 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 *GoogleCloudVisionV1p2beta1AnnotateFileResponse) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod GoogleCloudVisionV1p2beta1AnnotateFileResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// GoogleCloudVisionV1p2beta1AnnotateImageRequest: Request for
|
||||
// performing Google Cloud Vision API tasks over a user-provided
|
||||
// image, with user-requested features.
|
||||
@@ -697,23 +731,27 @@ func (s *GoogleCloudVisionV1p2beta1Block) UnmarshalJSON(data []byte) error {
|
||||
// GoogleCloudVisionV1p2beta1BoundingPoly: A bounding polygon for the
|
||||
// detected image annotation.
|
||||
type GoogleCloudVisionV1p2beta1BoundingPoly struct {
|
||||
// NormalizedVertices: The bounding polygon normalized vertices.
|
||||
NormalizedVertices []*GoogleCloudVisionV1p2beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
|
||||
|
||||
// Vertices: The bounding polygon vertices.
|
||||
Vertices []*GoogleCloudVisionV1p2beta1Vertex `json:"vertices,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Vertices") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// ForceSendFields is a list of field names (e.g. "NormalizedVertices")
|
||||
// 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. "Vertices") 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 is a list of field names (e.g. "NormalizedVertices") 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:"-"`
|
||||
}
|
||||
|
||||
@@ -1434,9 +1472,9 @@ func (s *GoogleCloudVisionV1p2beta1GcsDestination) MarshalJSON() ([]byte, error)
|
||||
// GoogleCloudVisionV1p2beta1GcsSource: The Google Cloud Storage
|
||||
// location where the input will be read from.
|
||||
type GoogleCloudVisionV1p2beta1GcsSource struct {
|
||||
// Uri: Google Cloud Storage URI for the input file. This must only be a
|
||||
// GCS
|
||||
// object. Wildcards are not currently supported.
|
||||
// Uri: Google Cloud Storage URI for the input file. This must only be
|
||||
// a
|
||||
// Google Cloud Storage object. Wildcards are not currently supported.
|
||||
Uri string `json:"uri,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Uri") to
|
||||
@@ -1559,8 +1597,7 @@ type GoogleCloudVisionV1p2beta1ImageContext struct {
|
||||
// [supported languages](/vision/docs/languages).
|
||||
LanguageHints []string `json:"languageHints,omitempty"`
|
||||
|
||||
// LatLongRect: lat/long rectangle that specifies the location of the
|
||||
// image.
|
||||
// LatLongRect: Not used.
|
||||
LatLongRect *GoogleCloudVisionV1p2beta1LatLongRect `json:"latLongRect,omitempty"`
|
||||
|
||||
// WebDetectionParams: Parameters for web detection.
|
||||
@@ -1779,6 +1816,57 @@ func (s *GoogleCloudVisionV1p2beta1LocationInfo) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// GoogleCloudVisionV1p2beta1NormalizedVertex: A vertex represents a 2D
|
||||
// point in the image.
|
||||
// NOTE: the normalized vertex coordinates are relative to the original
|
||||
// image
|
||||
// and range from 0 to 1.
|
||||
type GoogleCloudVisionV1p2beta1NormalizedVertex struct {
|
||||
// X: X coordinate.
|
||||
X float64 `json:"x,omitempty"`
|
||||
|
||||
// Y: Y coordinate.
|
||||
Y float64 `json:"y,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "X") 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. "X") 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 *GoogleCloudVisionV1p2beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod GoogleCloudVisionV1p2beta1NormalizedVertex
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *GoogleCloudVisionV1p2beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
|
||||
type NoMethod GoogleCloudVisionV1p2beta1NormalizedVertex
|
||||
var s1 struct {
|
||||
X gensupport.JSONFloat64 `json:"x"`
|
||||
Y gensupport.JSONFloat64 `json:"y"`
|
||||
*NoMethod
|
||||
}
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
s.X = float64(s1.X)
|
||||
s.Y = float64(s1.Y)
|
||||
return nil
|
||||
}
|
||||
|
||||
// GoogleCloudVisionV1p2beta1OperationMetadata: Contains metadata for
|
||||
// the BatchAnnotateImages operation.
|
||||
type GoogleCloudVisionV1p2beta1OperationMetadata struct {
|
||||
@@ -1825,7 +1913,8 @@ func (s *GoogleCloudVisionV1p2beta1OperationMetadata) MarshalJSON() ([]byte, err
|
||||
// and metadata.
|
||||
type GoogleCloudVisionV1p2beta1OutputConfig struct {
|
||||
// BatchSize: The max number of response protos to put into each output
|
||||
// JSON file on GCS.
|
||||
// JSON file on
|
||||
// Google Cloud Storage.
|
||||
// The valid range is [1, 100]. If not specified, the default value is
|
||||
// 20.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user