Skip to content

Commit

Permalink
fix: sync vision v1 protos to get extra FaceAnnotation Landmark Types
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 356556588

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Feb 9 11:55:06 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 9b95bf0e95501ec98537e0d2d9d36bb763ebd5b9
Source-Link: googleapis/googleapis@9b95bf0
  • Loading branch information
yoshi-automation authored and jskeet committed Feb 10, 2021
1 parent e94047c commit c94c761
Show file tree
Hide file tree
Showing 8 changed files with 211 additions and 209 deletions.
351 changes: 185 additions & 166 deletions apis/Google.Cloud.Vision.V1/Google.Cloud.Vision.V1/ImageAnnotator.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ internal static ImageAnnotatorClient Create(grpccore::CallInvoker callInvoker, I
/// extracted.
/// </summary>
/// <param name="requests">
/// Required. The list of file annotation requests. Right now we support only one
/// AnnotateFileRequest in BatchAnnotateFilesRequest.
/// Required. The list of file annotation requests. Right now we support only
/// one AnnotateFileRequest in BatchAnnotateFilesRequest.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -451,8 +451,8 @@ internal static ImageAnnotatorClient Create(grpccore::CallInvoker callInvoker, I
/// extracted.
/// </summary>
/// <param name="requests">
/// Required. The list of file annotation requests. Right now we support only one
/// AnnotateFileRequest in BatchAnnotateFilesRequest.
/// Required. The list of file annotation requests. Right now we support only
/// one AnnotateFileRequest in BatchAnnotateFilesRequest.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -475,8 +475,8 @@ internal static ImageAnnotatorClient Create(grpccore::CallInvoker callInvoker, I
/// extracted.
/// </summary>
/// <param name="requests">
/// Required. The list of file annotation requests. Right now we support only one
/// AnnotateFileRequest in BatchAnnotateFilesRequest.
/// Required. The list of file annotation requests. Right now we support only
/// one AnnotateFileRequest in BatchAnnotateFilesRequest.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// source: google/cloud/vision/v1/image_annotator.proto
// </auto-generated>
// Original file comments:
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//
#pragma warning disable 0414, 1591
#region Designer generated code

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ public static partial class ProductSearchReflection {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Citnb29nbGUvY2xvdWQvdmlzaW9uL3YxL3Byb2R1Y3Rfc2VhcmNoLnByb3Rv",
"EhZnb29nbGUuY2xvdWQudmlzaW9uLnYxGiVnb29nbGUvY2xvdWQvdmlzaW9u",
"L3YxL2dlb21ldHJ5LnByb3RvGjNnb29nbGUvY2xvdWQvdmlzaW9uL3YxL3By",
"b2R1Y3Rfc2VhcmNoX3NlcnZpY2UucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90",
"aW1lc3RhbXAucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8a",
"GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iugEKE1Byb2R1Y3RTZWFyY2hQ",
"EhZnb29nbGUuY2xvdWQudmlzaW9uLnYxGhlnb29nbGUvYXBpL3Jlc291cmNl",
"LnByb3RvGiVnb29nbGUvY2xvdWQvdmlzaW9uL3YxL2dlb21ldHJ5LnByb3Rv",
"GjNnb29nbGUvY2xvdWQvdmlzaW9uL3YxL3Byb2R1Y3Rfc2VhcmNoX3NlcnZp",
"Y2UucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHGdv",
"b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8iugEKE1Byb2R1Y3RTZWFyY2hQ",
"YXJhbXMSOwoNYm91bmRpbmdfcG9seRgJIAEoCzIkLmdvb2dsZS5jbG91ZC52",
"aXNpb24udjEuQm91bmRpbmdQb2x5EjoKC3Byb2R1Y3Rfc2V0GAYgASgJQiX6",
"QSIKIHZpc2lvbi5nb29nbGVhcGlzLmNvbS9Qcm9kdWN0U2V0EhoKEnByb2R1",
Expand All @@ -53,7 +53,7 @@ public static partial class ProductSearchReflection {
"by9nb29nbGVhcGlzL2Nsb3VkL3Zpc2lvbi92MTt2aXNpb274AQGiAgRHQ1ZO",
"YgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Cloud.Vision.V1.GeometryReflection.Descriptor, global::Google.Cloud.Vision.V1.ProductSearchServiceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, },
new pbr::FileDescriptor[] { global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Vision.V1.GeometryReflection.Descriptor, global::Google.Cloud.Vision.V1.ProductSearchServiceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Vision.V1.ProductSearchParams), global::Google.Cloud.Vision.V1.ProductSearchParams.Parser, new[]{ "BoundingPoly", "ProductSet", "ProductCategories", "Filter" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Vision.V1.ProductSearchResults), global::Google.Cloud.Vision.V1.ProductSearchResults.Parser, new[]{ "IndexTime", "Results", "ProductGroupedResults" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Vision.V1.ProductSearchResults.Types.Result), global::Google.Cloud.Vision.V1.ProductSearchResults.Types.Result.Parser, new[]{ "Product", "Score", "Image" }, null, null, null, null),
Expand Down Expand Up @@ -114,7 +114,7 @@ public sealed partial class ProductSearchParams : pb::IMessage<ProductSearchPara
private global::Google.Cloud.Vision.V1.BoundingPoly boundingPoly_;
/// <summary>
/// The bounding polygon around the area of interest in the image.
/// Optional. If it is not specified, system discretion will be applied.
/// If it is not specified, system discretion will be applied.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Cloud.Vision.V1.BoundingPoly BoundingPoly {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. Resource name of the ProductSet to get.
///
/// Format is:
/// `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
/// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -1002,7 +1002,7 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. Resource name of the ProductSet to get.
///
/// Format is:
/// `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
/// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -1023,7 +1023,7 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. Resource name of the ProductSet to get.
///
/// Format is:
/// `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
/// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -1041,7 +1041,7 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. Resource name of the ProductSet to get.
///
/// Format is:
/// `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
/// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -1062,7 +1062,7 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. Resource name of the ProductSet to get.
///
/// Format is:
/// `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
/// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -1083,7 +1083,7 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. Resource name of the ProductSet to get.
///
/// Format is:
/// `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
/// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down Expand Up @@ -2671,7 +2671,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the reference image to delete.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand All @@ -2695,7 +2694,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the reference image to delete.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand All @@ -2719,7 +2717,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the reference image to delete.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
Expand All @@ -2740,7 +2737,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the reference image to delete.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand All @@ -2764,7 +2760,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the reference image to delete.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand All @@ -2788,7 +2783,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the reference image to delete.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
Expand Down Expand Up @@ -3008,7 +3002,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the ReferenceImage to get.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand All @@ -3030,7 +3023,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the ReferenceImage to get.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand All @@ -3052,7 +3044,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the ReferenceImage to get.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
Expand All @@ -3071,7 +3062,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the ReferenceImage to get.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand All @@ -3093,7 +3083,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the ReferenceImage to get.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand All @@ -3115,7 +3104,6 @@ internal static ProductSearchClient Create(grpccore::CallInvoker callInvoker, Pr
/// Required. The resource name of the ReferenceImage to get.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ public sealed partial class Product : pb::IMessage<Product>
private string productCategory_ = "";
/// <summary>
/// Immutable. The category for the product identified by the reference image. This should
/// be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
/// "homegoods", "apparel", and "toys" are still supported, but these should
/// not be used for new products.
/// be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
/// "general-v1". The legacy categories "homegoods", "apparel", and "toys" are
/// still supported, but these should not be used for new products.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ProductCategory {
Expand Down Expand Up @@ -1210,7 +1210,6 @@ public sealed partial class ReferenceImage : pb::IMessage<ReferenceImage>
/// The resource name of the reference image.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
///
/// This field is ignored when creating a reference image.
Expand Down Expand Up @@ -3542,7 +3541,7 @@ public sealed partial class GetProductSetRequest : pb::IMessage<GetProductSetReq
/// Required. Resource name of the ProductSet to get.
///
/// Format is:
/// `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
/// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
Expand Down Expand Up @@ -4921,7 +4920,6 @@ public sealed partial class GetReferenceImageRequest : pb::IMessage<GetReference
/// Required. The resource name of the ReferenceImage to get.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand Down Expand Up @@ -5103,7 +5101,6 @@ public sealed partial class DeleteReferenceImageRequest : pb::IMessage<DeleteRef
/// Required. The resource name of the reference image to delete.
///
/// Format is:
///
/// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// source: google/cloud/vision/v1/product_search_service.proto
// </auto-generated>
// Original file comments:
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//
#pragma warning disable 0414, 1591
#region Designer generated code

Expand Down
2 changes: 1 addition & 1 deletion apis/Google.Cloud.Vision.V1/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "69697504d9eba1d064820c3085b4750767be6d08"
"sha": "9b95bf0e95501ec98537e0d2d9d36bb763ebd5b9"
}
}
]
Expand Down

0 comments on commit c94c761

Please sign in to comment.